diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ - + diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ - + diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ - + diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ - + diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ - + diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ - + diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ - + diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue new file mode 100644 index 0000000..6c9c338 --- /dev/null +++ b/src/views/system/user/listUser.vue @@ -0,0 +1,393 @@ + + + + + diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue new file mode 100644 index 0000000..6c9c338 --- /dev/null +++ b/src/views/system/user/listUser.vue @@ -0,0 +1,393 @@ + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue new file mode 100644 index 0000000..6c9c338 --- /dev/null +++ b/src/views/system/user/listUser.vue @@ -0,0 +1,393 @@ + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue new file mode 100644 index 0000000..6c9c338 --- /dev/null +++ b/src/views/system/user/listUser.vue @@ -0,0 +1,393 @@ + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue new file mode 100644 index 0000000..6c9c338 --- /dev/null +++ b/src/views/system/user/listUser.vue @@ -0,0 +1,393 @@ + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue new file mode 100644 index 0000000..6c9c338 --- /dev/null +++ b/src/views/system/user/listUser.vue @@ -0,0 +1,393 @@ + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue new file mode 100644 index 0000000..6c9c338 --- /dev/null +++ b/src/views/system/user/listUser.vue @@ -0,0 +1,393 @@ + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue new file mode 100644 index 0000000..6c9c338 --- /dev/null +++ b/src/views/system/user/listUser.vue @@ -0,0 +1,393 @@ + + + + + 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/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] 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..113d712 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', @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', 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 @@ - - - - diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue new file mode 100644 index 0000000..335a6fb --- /dev/null +++ b/src/views/system/area/listArea.vue @@ -0,0 +1,170 @@ + + + + + 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 deleted file mode 100644 index 8c035ca..0000000 --- a/src/views/system/log/list.log.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index ce05c27..7607022 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, @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + 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..22c649d 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 @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@ 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 @@ - - - - - diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue new file mode 100644 index 0000000..6c9c338 --- /dev/null +++ b/src/views/system/user/listUser.vue @@ -0,0 +1,393 @@ + + + + + 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 -}