From b8b07fea39b477b1b246d231d5a7285e0e1b6531 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Wed, 12 Apr 2023 17:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E9=97=A8=E7=B1=BB=20/=20?= =?UTF-8?q?=E5=B2=97=E4=BD=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/mixin.scss | 105 ++++++- src/assets/styles/yxk-admin.scss | 290 ++++++++++++------ src/views/components/category/PreviewForm.vue | 35 ++- src/views/components/category/SettingForm.vue | 96 +++--- .../descriptionPreview/index.vue | 96 +++--- .../fileNoFormat/module/form.vue | 2 +- .../listBrowsing/module/form.vue | 3 +- src/views/system/job/index.vue | 37 +-- src/views/system/job/module/form.vue | 24 +- src/views/system/job/module/header.vue | 8 +- 10 files changed, 438 insertions(+), 258 deletions(-) diff --git a/src/assets/styles/mixin.scss b/src/assets/styles/mixin.scss index c004482..50629f6 100644 --- a/src/assets/styles/mixin.scss +++ b/src/assets/styles/mixin.scss @@ -492,7 +492,6 @@ [data-theme="light"] & { border-color:#D6D8DD; background-color: #E6E7E9; - &::after{ border-color:#D1D3D7; } @@ -512,7 +511,6 @@ background-color: #0348F3; // border-color:#D6D8DD; // background-color: #D6D8DD; - &::after{ border-color: #fff; } @@ -747,6 +745,7 @@ color: #fff; border-radius: 4px; margin-right: 20px; + border: none; } [data-theme="light"] & { color: #0C0E1E; @@ -758,3 +757,105 @@ margin-top: -20px; } } + +@mixin des-title{ + [data-theme="dark"] & { + padding-left: 46px; + p{ + position: absolute; + left: 46px; + top: 0; + background-image: -webkit-gradient( + linear, + 0 0, + 0 bottom, + from(rgba(255, 255, 255, 1)), + to(rgba(46, 143, 237, 1)) + ); + background-clip: text; + -webkit-text-fill-color: transparent; + z-index: 2; + i{ + -webkit-text-fill-color: #fff; + } + } + &::before { + top: 0; + width: 93px; + height: 28px; + background: url(~@/assets/images/des_title.png) no-repeat; + background-size: contain; + } + } + [data-theme="light"] & { + padding-left: 8px; + p{ + color: #000; + i{ + -webkit-text-fill-color: #9098A4; + } + } + &::before { + top: 50%; + width: 3px; + height: 14px; + margin-top: -7px; + background-color: #0348F3; + } + } +} + +@mixin des-fields{ + [data-theme="dark"] & { + color: #3a99fd; + border: 1px solid #339cff; + &:hover, + &.fields-active { + color: #fff; + background-color: #339cff; + } + } + [data-theme="light"] & { + color: #545B65; + border: 1px solid #E6E8ED; + &:hover, + &.fields-active { + color: #0348F3; + background-color: #E8F2FF; + } + } +} + + +@mixin des-preview-label{ + font-weight: normal; + [data-theme="dark"] & { + color: #3a99fd; + } +} + +@mixin des-preview-input-num{ + [data-theme="dark"] & { + margin-right: 24px !important; + } + [data-theme="light"] & { + margin-right: 10px !important; + } +} + +@mixin des-preview-input-cont{ + [data-theme="dark"] & { + margin-right: 10px !important; + width: 50px !important; + .el-input__inner{ + width: 50px !important; + } + } + [data-theme="light"] & { + margin-right: 6px !important; + width: 40px !important; + .el-input__inner{ + width: 40px !important; + } + } +} \ No newline at end of file diff --git a/src/assets/styles/yxk-admin.scss b/src/assets/styles/yxk-admin.scss index 71d40a8..5ab449d 100644 --- a/src/assets/styles/yxk-admin.scss +++ b/src/assets/styles/yxk-admin.scss @@ -909,77 +909,79 @@ // 著录界面表单 .des-form{ - .el-form-item__label{ - font-weight: normal; - color: $desPreviewColor; - } - .el-input__inner{ - color: $desPreviewColor; - background: #021941 !important; - border: none; - &::placeholder{ - color: $desPreviewColor !important; - } - &::-webkit-input-placeholder{ - color: $desPreviewColor !important; - } - } - .el-input.is-disabled .el-input__inner{ - color: $desPreviewColor !important; - border: none; - background-color: #02255f!important; - } - .el-input__icon{ - color: $desPreviewColor !important; - } - .checkbox-item{ - height: 36px; - line-height: 36px; - text-align: right; - .el-form-item__content{ - margin-left: 0 !important; - } - .el-checkbox__input.is-disabled .el-checkbox__inner{ - background-color: transparent; - border-color: $mainColor; - &::after{ - border-color: $desPreviewColor; - } - } - span{ - color: $desPreviewColor; - } - } - .input-num{ - display: flex; - justify-content: flex-end; - .el-input__inner{ - width: 50px; - } - .el-form-item__content{ - display: flex; - justify-content: flex-start; - margin-left: 0 !important; - .el-input, - .el-input-number--small{ - width: 60px; - } - .el-input-number.is-controls-right { - .el-input-number__decrease, - .el-input-number__increase{ - display: none; - } - .el-input__inner{ - padding-left: 0; - padding-right: 0; - } - } - } - span{ - color: $desPreviewColor; - line-height: 36px; - } - } + // .el-form-item__label{ + // font-weight: normal; + // color: $desPreviewColor; + // } + // .el-input__inner{ + // // color: $desPreviewColor; + // // background: #021941 !important; + // @include input_style; + // border: none; + // &::placeholder{ + // color: $desPreviewColor !important; + // } + // &::-webkit-input-placeholder{ + // color: $desPreviewColor !important; + // } + // } + // .el-input.is-disabled .el-input__inner{ + // color: $desPreviewColor !important; + // border: none; + // background-color: #02255f!important; + // } + // .el-input__icon{ + // color: $desPreviewColor !important; + // } + // .checkbox-item{ + // height: 36px; + // line-height: 36px; + // // text-align: right; + // .el-form-item__content{ + // margin-left: 0 !important; + // } + // .el-checkbox__input.is-disabled .el-checkbox__inner{ + // // background-color: transparent; + // // border-color: $mainColor; + // @include checkbox-disabled-style; + // // &::after{ + // // border-color: $desPreviewColor; + // // } + // } + // span{ + // color: $desPreviewColor; + // } + // } + // .input-num{ + // display: flex; + // justify-content: flex-end; + // .el-input__inner{ + // width: 50px; + // } + // .el-form-item__content{ + // display: flex; + // justify-content: flex-start; + // margin-left: 0 !important; + // .el-input, + // .el-input-number--small{ + // width: 60px; + // } + // .el-input-number.is-controls-right { + // .el-input-number__decrease, + // .el-input-number__increase{ + // display: none; + // } + // .el-input__inner{ + // padding-left: 0; + // padding-right: 0; + // } + // } + // } + // span{ + // color: $desPreviewColor; + // line-height: 36px; + // } + // } } // 提示框-dialog .tip-dialog{ @@ -1010,45 +1012,122 @@ width: 708px; } } -.field-setting-dialog{ + +// 门类-字段管理 +.field-setting-dialog, +.edit-form-dialog{ .el-dialog{ width: 536px; + .el-dialog__body { + .el-form-item{ + &:nth-child(odd){ + margin-right: 0; + } + .el-form-item__content{ + // width: 264px; + .el-input__inner, + .el-textarea__inner{ + width: 264px; + } + } + } + } } .des-form{ - width: 100% !important; - margin-top: 0 !important; - padding: 20px 38px 0 20px !important; - background-color: transparent !important; - .el-select, - .el-input__inner{ - width: 100% !important; + // width: 100% !important; + // margin-top: 0 !important; + // padding: 20px 38px 0 20px !important; + // background-color: transparent !important; + // .el-form-item__content, + // .el-select, + // .el-input__inner{ + // width: 264px; + // } + .checkbox-item{ + height: 33px; + line-height: 33px; + .el-checkbox__inner{ + border-color: #D6D8DD; + } + .el-checkbox__input.is-checked .el-checkbox__inner{ + border-color: #0348f3; + background-color: #0348f3; + &::after{ + border-color: #fff; + } + } + .el-checkbox__input.is-disabled .el-checkbox__inner { + border-color: #D6D8DD; + background-color:#f5f7fa; + &::after{ + border-color: #fff; + } + } + span{ + font-weight: bold; + color: #0C0E1E; + } + } + + } +} +.des-form{ + .input-num{ + .el-form-item__content{ + display: flex; + justify-content: flex-start; + width: 50px !important; + .el-input, + .el-input-number--small, + .el-input-number.is-controls-right { + width: 50px !important; + margin-right: 10px; + .el-input__inner{ + width: 50px !important; + padding-left: 5px; + padding-right: 5px; + text-align: center; + } + .el-input-number__decrease, + .el-input-number__increase{ + display: none; + } + } } - .input-num{ - .el-input{ - margin-right: 10px !important; + } +} +.des-preview-left{ + .el-form-item__label{ + @include des-preview-label; + } + .el-form-item__content{ + span{ + @include des-preview-label; + } + } + .el-input__inner{ + @include category-info-text; + } +} + +.preview-dialog{ + .el-dialog{ + width: 758px !important; + .preview-content{ + max-height: calc(100vh - 330px) !important; + overflow: hidden !important; + overflow-y: auto !important; + border: none !important; + .el-form-item__label{ + color: #0C0E1E !important; } } + .dialog-footer{ + margin-top: 10px !important; + } } } // .preview-dialog{ -// .el-dialog{ -// width: 680px !important; -// .preview-content{ -// max-height: calc(100vh - 330px) !important; -// overflow: hidden !important; -// overflow-y: auto !important; -// border: none !important; -// .el-textarea__inner{ -// border: 1px solid $mainColor !important; -// background-color: transparent !important; -// } -// } -// .el-dialog__header{ -// width: 420px !important; -// } -// } -// } -// .preview-dialog{ // .el-dialog__body{ // padding: 30px 0 !important; // } @@ -1685,4 +1764,15 @@ input[type ='number'] { .format-main-right { flex-grow: 1; } +} + +.addEdit-category-form{ + .setting-dialog{ + .el-form{ + max-height: 600px; + padding-right: 10px; + overflow: hidden; + overflow-y: scroll; + } + } } \ No newline at end of file diff --git a/src/views/components/category/PreviewForm.vue b/src/views/components/category/PreviewForm.vue index fd86e5d..be5c376 100644 --- a/src/views/components/category/PreviewForm.vue +++ b/src/views/components/category/PreviewForm.vue @@ -1,6 +1,6 @@