diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 6ef1e51..1d2ecf3 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -14,11 +14,15 @@ declare module 'vue' { ComplexProTable: typeof import('./src/components/proTable/complexProTable/index.vue')['default'] Default: typeof import('./src/components/echarts/pie/default.vue')['default'] Detail: typeof import('./src/components/proTable/useProTable/detail.vue')['default'] + Dialog: typeof import('./src/components/Dialog/index.vue')['default'] Document: typeof import('./src/components/proTable/document/index.vue')['default'] ElAside: typeof import('element-plus/es')['ElAside'] ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] ElButton: typeof import('element-plus/es')['ElButton'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] + ElCol: typeof import('element-plus/es')['ElCol'] ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] ElContainer: typeof import('element-plus/es')['ElContainer'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] @@ -40,8 +44,11 @@ declare module 'vue' { ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] ElRadio: typeof import('element-plus/es')['ElRadio'] + ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] + ElSegmented: typeof import('element-plus/es')['ElSegmented'] ElSelect: typeof import('element-plus/es')['ElSelect'] + ElSelectV2: typeof import('element-plus/es')['ElSelectV2'] ElSpace: typeof import('element-plus/es')['ElSpace'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] @@ -50,6 +57,7 @@ declare module 'vue' { ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] + ElTimePicker: typeof import('element-plus/es')['ElTimePicker'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElTree: typeof import('element-plus/es')['ElTree'] ElUpload: typeof import('element-plus/es')['ElUpload'] diff --git a/frontend/src/components/Dialog/index.vue b/frontend/src/components/Dialog/index.vue new file mode 100644 index 0000000..2445cff --- /dev/null +++ b/frontend/src/components/Dialog/index.vue @@ -0,0 +1,41 @@ + + + + diff --git a/frontend/src/layouts/components/Header/components/Avatar.vue b/frontend/src/layouts/components/Header/components/Avatar.vue index 005cbd2..ca9cd98 100644 --- a/frontend/src/layouts/components/Header/components/Avatar.vue +++ b/frontend/src/layouts/components/Header/components/Avatar.vue @@ -66,9 +66,9 @@ const logout = () => { userStore.setToken(""); // 3.重定向到登陆页 router.replace(LOGIN_URL); + ElMessage.success("退出登录成功!"); //重置菜单/导航栏权限 authStore.resetAuthStore(); - ElMessage.success("退出登录成功!"); }); }; diff --git a/frontend/src/styles/common.scss b/frontend/src/styles/common.scss index a72fa0a..08f8fd3 100644 --- a/frontend/src/styles/common.scss +++ b/frontend/src/styles/common.scss @@ -72,15 +72,19 @@ /* scroll bar */ ::-webkit-scrollbar { - width: 6px; - height: 6px; - background-color: var(--el-color-primary); + width: 8px; + height: 200px; + // background-color: var(--el-color-primary); } /* 滚动条实际可拖动部分的颜色 */ ::-webkit-scrollbar-thumb { - // background-color: var(--el-border-color-darker); - background-color: var(--el-color-primary); + width: 8px; + height: 100px; + background-color: var(--el-border-color-darker) !important; + // background-color: var(--el-color-primary); border-radius: 20px; + background-color: var(--el-color-primary) !important; + cursor: pointer; } /* nprogress */ diff --git a/frontend/src/styles/element.scss b/frontend/src/styles/element.scss index 03c7eea..80ccd70 100644 --- a/frontend/src/styles/element.scss +++ b/frontend/src/styles/element.scss @@ -261,17 +261,76 @@ } /* el-dialog */ +// .el-dialog { +// .el-dialog__header { +// padding: 15px 20px; +// margin: 0; +// border-bottom: 1px solid var(--el-border-color-lighter); +// .el-dialog__title { +// font-size: 17px; +// } +// } +// } + +//全局dialog修改 .el-dialog { + padding: 0px !important; + border: 2px solid #3665a0; .el-dialog__header { - padding: 15px 20px; - margin: 0; - border-bottom: 1px solid var(--el-border-color-lighter); + background: var(--el-color-primary); + padding: 15px; + margin-right: 0px; + // font-family:; + + .el-dialog__headerbtn { + top: 5px; + .el-icon { + color: var(--el-color-white); + } + } + .el-dialog__headerbtn:hover { + .el-icon { + color: #409eff; + } + } + .el-dialog__title { - font-size: 17px; + color: var(--el-color-white); + } + + .el-dialog__footer .el-button { + margin-left: 10px !important; } } -} + .el-dialog__body { + height: 200px; + max-height: 60vh; + overflow-y: auto; + padding: 10px 15px; + //设置dialog内部form样式 + .el-form { + .el-form-item { + margin-bottom: 20px; + .el-select, + .el-input, + .el-date-picker { + width: 100%; + height: 32px; + } + } + } + } + .el-dialog__footer { + padding: 15px; + box-shadow: var(--el-box-shadow); + border-top: 1px solid #cccccc; + width: 100%; + bottom: 0; + } +} +//全局el-form-item间距 .el-form-item { margin-right: 10px !important; + margin-bottom: 20px !important; } diff --git a/frontend/src/views/plan/planList/components/details.vue b/frontend/src/views/plan/planList/components/details.vue new file mode 100644 index 0000000..3e3504c --- /dev/null +++ b/frontend/src/views/plan/planList/components/details.vue @@ -0,0 +1,240 @@ + + + diff --git a/frontend/src/views/plan/planList/index.vue b/frontend/src/views/plan/planList/index.vue index 63b649a..80d030b 100644 --- a/frontend/src/views/plan/planList/index.vue +++ b/frontend/src/views/plan/planList/index.vue @@ -63,10 +63,18 @@ >查询 重置 - 导入 - 合并 - 新增 - 删除 + 导入 + 合并 + 新增 + 删除 @@ -116,7 +124,7 @@ type="primary" link :icon="View" - @click="openDrawer('查看', scope.row)" + @click="handleDetails('查看', scope.row)" >查看 +