diff --git a/src/assets/css/index.css b/src/assets/css/index.css index 902e8f1ca61d8c19f7bf970dd64b4c98cfef3147..1e808b6b805508c36f8fdb3ed8358e4d99977576 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -274,8 +274,8 @@ div { } .el-dialog__body { - font-size: 18px; - color: #242c43; + font-size: 16px; + color: #404a62; text-align: center; padding: 0 16px; } @@ -285,12 +285,6 @@ div { .dialog_box .el-dialog__footer { padding: 16px; } -.result_box .el-dialog__body { - padding: 0px; -} -.sold_up_dialog .el-dialog__body { - padding: 24px 24px 4px; -} /* 设置tab切换的样式 */ .el-tabs__item.is-disabled { color: #8890a7 !important; @@ -332,9 +326,17 @@ div { } /* 设置tree的样式 */ +.el-tree { + position: static!important; +} .el-tree-node__content{ height: 36px; } +.el-tree-node__content:hover { + background-image: linear-gradient(90deg, + rgba(255, 255, 255, 0.05) 83%, + rgba(0, 0, 0, 0.05) 86%); +} /* .usrrole .el-tree-node:focus>.el-tree-node__content{ background: rgb(248, 249, 253) !important; } @@ -994,39 +996,32 @@ border-radius:8px; display: flex; } -.top_fliter .filter_list { +.filter_list { flex-grow: 1; - min-width: 550px; font-size: 0; - padding-left: 16px; } - -.filter_list>.filter_item { - display: inline-block; - vertical-align: middle; - margin-top: 16px; -} - .filter_list>.filter_item { - margin-right:34px; + display: flex; + align-items: center; + margin: 0 34px 16px 0; } -.filter_list>.filter_item>* { +/* .filter_list>.filter_item>* { display: inline-block; vertical-align: middle; -} +} */ .filter_list>.filter_item>.filter_title { - min-width: 56px; text-align: right; font-size: 14px; - font-weight: 700; color: #242c43; margin-right: 10px; - white-space: nowrap; + width: 84px; + white-space: pre-wrap; + font-weight: normal; } -.filter_list>.filter_item>.filter_title+* { +/* .filter_list>.filter_item>.filter_title+* { width: 300px; } @@ -1038,7 +1033,7 @@ border-radius:8px; position: absolute; right: 5px; top: 1px; -} +} */ .top_fliter .filter_action { flex-shrink: 0; @@ -1478,14 +1473,24 @@ border-radius:8px; } .flex_left { +<<<<<<< HEAD height: calc(100% - 20px); +======= + background-color: #fff; + height: calc(100% - 16px); +>>>>>>> 133893b61e0b75788c7111d07959c747c7a0fa2d width: 320px; margin-right: 10px; overflow: hidden; } .flex_right { +<<<<<<< HEAD height: calc(100% - 20px); +======= + background-color: #fff; + height: calc(100% - 16px); +>>>>>>> 133893b61e0b75788c7111d07959c747c7a0fa2d flex: 1; overflow: hidden; @@ -1500,13 +1505,13 @@ border-radius:8px; } .tree::-webkit-scrollbar { - width: 5px; - height: 5px; + width: 6px; + height: 6px; } .tree::-webkit-scrollbar-thumb { background: #bcc1d0; border-radius: 10px; - height: 5px; + height: 6px; } .tree::-webkit-scrollbar-track { background: transparent; @@ -1528,3 +1533,7 @@ border-radius:8px; .pl-1 { padding-left: 1rem; } +.label-text { + font-size: 14px; + color: #404a62; +} diff --git a/src/assets/item.css b/src/assets/item.css index c137c3e0248e4849c7e8f517da3aab5832e3effb..f5de29d9b6735bd1dc6fb908a3d668eb8f76ee35 100644 --- a/src/assets/item.css +++ b/src/assets/item.css @@ -1,83 +1,82 @@ :root { - --font-color: #404a62; - /* --el-color-primary-light-9: #f7f7f9; */ + --font-color: #404a62; + /* --el-color-primary-light-9: #f7f7f9; */ + --el-color-white: #ffffff; + --el-color-black: #1a1a1a; + --el-color-primary: #2b4695; + --el-color-primary-light-3: #6b7eb5; + --el-color-primary-light-5: #95a3ca; + --el-color-primary-light-7: #c0c8df; + --el-color-primary-light-8: #d5daea; + --el-color-primary-light-9: #eaedf5; + --el-color-primary-dark-2: #223877; + --el-color-success: #429e8a; + --el-color-success-light-3: #7bbbad; + --el-color-success-light-5: #a1cfc5; + --el-color-success-light-7: #c7e2dc; + --el-color-success-light-8: #d9ece8; + --el-color-success-light-9: #ecf5f4; + --el-color-success-dark-2: #357e6e; + --el-color-warning: #e56600; + --el-color-warning-light-3: #ed944d; + --el-color-warning-light-5: #f2b380; + --el-color-warning-light-7: #f7d1b3; + --el-color-warning-light-8: #fae0cc; + --el-color-warning-light-9: #fcf0e6; + --el-color-warning-dark-2: #b75200; + --el-color-danger: #d75138; + --el-color-danger-light-3: #e38674; + --el-color-danger-light-5: #eba89c; + --el-color-danger-light-7: #f3cbc4; + --el-color-danger-light-8: #f7dcd7; + --el-color-danger-light-9: #fbeeeb; + --el-color-danger-dark-2: #ac412d; + --el-color-error: #d75138; + --el-color-error-light-3: #e38674; + --el-color-error-light-5: #eba89c; + --el-color-error-light-7: #f3cbc4; + --el-color-error-light-8: #f7dcd7; + --el-color-error-light-9: #fbeeeb; + --el-color-error-dark-2: #ac412d; + --el-color-info: #404a62; + --el-color-info-light-3: #7a8191; + --el-color-info-light-5: #a0a5b1; + --el-color-info-light-7: #c6c9d0; + --el-color-info-light-8: #d9dbe0; + --el-color-info-light-9: #ecedf0; + --el-color-info-dark-2: #333b4e; + --el-bg-color: #ffffff; + --el-bg-color-page: #f2f3f5; + --el-bg-color-overlay: #ffffff; + --el-text-color-primary: #202531; + --el-text-color-regular: #404a62; + --el-text-color-secondary: #909bb6; + --el-text-color-placeholder: #a9b1c7; + --el-text-color-disabled: #a9b1c7; + --el-border-color: #dadee7; + --el-border-color-light: #e3e5eb; + --el-border-color-lighter: #e6e9ef; + --el-border-color-extra-light: #edf0f5; + --el-border-color-dark: #d1d5de; + --el-border-color-darker: #cbced7; + --el-fill-color: #f0f2f5; + --el-fill-color-light: #f2f3f7; + --el-fill-color-lighter: #f7f7f9; + --el-fill-color-extra-light: #fafcff; + --el-fill-color-dark: #ebedf0; + --el-fill-color-darker: #e6e8eb; + --el-fill-color-blank: #ffffff; + --el-component-size: 36px; +} - --el-color-white: #ffffff; - --el-color-black: #1a1a1a; - --el-color-primary: #2b4695; - --el-color-primary-light-3: #6b7eb5; - --el-color-primary-light-5: #95a3ca; - --el-color-primary-light-7: #c0c8df; - --el-color-primary-light-8: #d5daea; - --el-color-primary-light-9: #eaedf5; - --el-color-primary-dark-2: #223877; - --el-color-success: #429e8a; - --el-color-success-light-3: #7bbbad; - --el-color-success-light-5: #a1cfc5; - --el-color-success-light-7: #c7e2dc; - --el-color-success-light-8: #d9ece8; - --el-color-success-light-9: #ecf5f4; - --el-color-success-dark-2: #357e6e; - --el-color-warning: #e56600; - --el-color-warning-light-3: #ed944d; - --el-color-warning-light-5: #f2b380; - --el-color-warning-light-7: #f7d1b3; - --el-color-warning-light-8: #fae0cc; - --el-color-warning-light-9: #fcf0e6; - --el-color-warning-dark-2: #b75200; - --el-color-danger: #d75138; - --el-color-danger-light-3: #e38674; - --el-color-danger-light-5: #eba89c; - --el-color-danger-light-7: #f3cbc4; - --el-color-danger-light-8: #f7dcd7; - --el-color-danger-light-9: #fbeeeb; - --el-color-danger-dark-2: #ac412d; - --el-color-error: #d75138; - --el-color-error-light-3: #e38674; - --el-color-error-light-5: #eba89c; - --el-color-error-light-7: #f3cbc4; - --el-color-error-light-8: #f7dcd7; - --el-color-error-light-9: #fbeeeb; - --el-color-error-dark-2: #ac412d; - --el-color-info: #404a62; - --el-color-info-light-3: #7a8191; - --el-color-info-light-5: #a0a5b1; - --el-color-info-light-7: #c6c9d0; - --el-color-info-light-8: #d9dbe0; - --el-color-info-light-9: #ecedf0; - --el-color-info-dark-2: #333b4e; - --el-bg-color: #ffffff; - --el-bg-color-page: #f2f3f5; - --el-bg-color-overlay: #ffffff; - --el-text-color-primary: #202531; - --el-text-color-regular: #404a62; - --el-text-color-secondary: #909bb6; - --el-text-color-placeholder: #a9b1c7; - --el-text-color-disabled: #a9b1c7; - --el-border-color: #dadee7; - --el-border-color-light: #e3e5eb; - --el-border-color-lighter: #e6e9ef; - --el-border-color-extra-light: #edf0f5; - --el-border-color-dark: #d1d5de; - --el-border-color-darker: #cbced7; - --el-fill-color: #f0f2f5; - --el-fill-color-light: #f2f3f7; - --el-fill-color-lighter: #f7f7f9; - --el-fill-color-extra-light: #fafcff; - --el-fill-color-dark: #ebedf0; - --el-fill-color-darker: #e6e8eb; - --el-fill-color-blank: #ffffff; - } - - .text-hide1{ - overflow: hidden; - text-overflow:ellipsis; - white-space: nowrap; - } - - .log_content_nor::-webkit-scrollbar { - width: 0px; /*对垂直流动条有效*/ - height: 0px; /*对水平流动条有效*/ - } \ No newline at end of file +.text-hide1{ + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; +} +.log_content_nor::-webkit-scrollbar { + width: 0px; /*对垂直流动条有效*/ + height: 0px; /*对水平流动条有效*/ +} \ No newline at end of file diff --git a/src/bg-ui/bg-filter-group.vue b/src/bg-ui/bg-filter-group.vue index ed64fd5314a84a7ad0dc723f01e41ac4dd821664..ba07db9ba24d18965c018048196141ddf6d6eb8d 100644 --- a/src/bg-ui/bg-filter-group.vue +++ b/src/bg-ui/bg-filter-group.vue @@ -5,7 +5,7 @@
- + \ No newline at end of file diff --git a/src/bg-ui/bg-switch-ele.vue b/src/bg-ui/bg-switch-ele.vue new file mode 100644 index 0000000000000000000000000000000000000000..1646344ef262edfe42d8369b896394a732a5c81f --- /dev/null +++ b/src/bg-ui/bg-switch-ele.vue @@ -0,0 +1,54 @@ + + + diff --git a/src/bg-ui/bg-switch.vue b/src/bg-ui/bg-switch.vue index 62c03cd44c95e545cf2ce235d981c101ab37532f..5578a31b72810b86dc2b8bb63075cce6b2d10273 100644 --- a/src/bg-ui/bg-switch.vue +++ b/src/bg-ui/bg-switch.vue @@ -58,24 +58,22 @@ export default { }, now_style() { return { - color: this.colors[this.now_index], borderColor: this.colors[this.now_index], + backgroundColor: this.colors[this.now_index], }; }, now_label_style() { return this.now_index == 0 ? { left: this.circle_height + this.gap + 5 + "px" } - : { left: "10px" }; + : { left: "6px" }; }, now_circle_style() { return this.now_index == 0 ? { left: this.gap + "px", - backgroundColor: this.colors[this.now_index], } : { right: this.gap + "px", - backgroundColor: this.colors[this.now_index], }; }, }, diff --git a/src/bg-ui/bg-table-btns-more.vue b/src/bg-ui/bg-table-btns-more.vue new file mode 100644 index 0000000000000000000000000000000000000000..c24d3e1704e7c6587ef93c4f988fb97e39b9b602 --- /dev/null +++ b/src/bg-ui/bg-table-btns-more.vue @@ -0,0 +1,69 @@ + + + diff --git a/src/bg-ui/bg-table-btns.vue b/src/bg-ui/bg-table-btns.vue new file mode 100644 index 0000000000000000000000000000000000000000..2849bdab0cc851aec72e0a5ecd23432615b0fae1 --- /dev/null +++ b/src/bg-ui/bg-table-btns.vue @@ -0,0 +1,91 @@ + + + diff --git a/src/bg-ui/bg-table.vue b/src/bg-ui/bg-table.vue index 437e28f311c70c346f18ced289dac29bcb7504f8..1239ccb9236e5c6737083b117aed0025f779180a 100644 --- a/src/bg-ui/bg-table.vue +++ b/src/bg-ui/bg-table.vue @@ -7,6 +7,8 @@ @select="selectActionRow" @select-all="selectActionAll" :stripe="stripe" + :row-class-name="stripe ? tableRowClassName : ''" + tooltip-effect="light" > + @@ -111,7 +117,11 @@ export default { stripe: { type: Boolean, default: false - } + }, + paddingLeft: { + type: [Number, String], + default: () => 33, + }, }, /* filters: { ellipsis(value, max) { @@ -172,7 +182,14 @@ export default { this.allSelectData={} this.nowSelectData=[] this.clearSelection(); - } + }, + tableRowClassName({ row, rowIndex }) { + if (rowIndex % 2 == 0) { + return "white-row"; + } else { + return "stripe-row"; + } + }, }, }; diff --git a/src/bg-ui/index.js b/src/bg-ui/index.js index 62c577995b0a6231c0d4ebf8c2ea6c69f692f923..7b487be6e3786ac62c369c86c1f25c72b7a861f3 100644 --- a/src/bg-ui/index.js +++ b/src/bg-ui/index.js @@ -32,6 +32,9 @@ import debounce from './debounce' import BgPagination from './bg-pagination.vue' import BgInnerTabs from './bg-inner-tabs.vue' + import BgFilterGroup from './bg-filter-group.vue' + import BgSwitchEle from './bg-switch-ele.vue' + import BgTableBtns from './bg-table-btns.vue' const components = { BgIcon,//字体图标 @@ -65,6 +68,9 @@ const components = { debounce,//防抖组件 BgPagination,// 分页组件 BgInnerTabs,//内部tab + BgFilterGroup,//高级搜索 + BgSwitchEle, + BgTableBtns, }; const install = (Vue) => { diff --git a/src/bg-ui/index.scss b/src/bg-ui/index.scss index 6c40e06d0f63b096decfe1a1637692278f367fd9..c51a51f8375a51636c943ea57f9329183e228b84 100644 --- a/src/bg-ui/index.scss +++ b/src/bg-ui/index.scss @@ -659,17 +659,16 @@ a { } th, td { - padding: 12px 0!important; + padding: 11px 0!important; > .cell { padding: 0 10px !important; color: #404a62; - line-height: 18px; + line-height: 14px; } } &.el-table--border { border-top-color: #b0bee8; - border-bottom: 1px solid #ebeef5; .el-table__header-wrapper { position: relative; @@ -687,7 +686,7 @@ a { &::after { content: ""; - width: 1px; + width: 0px; height: 100%; background-color: #b0bee8; position: absolute; @@ -705,7 +704,12 @@ a { } } } - + .stripe-row td { + background-color: #fff!important; + } + .white-row td { + background-color: #f7f7f9!important; + } .el-table--striped .el-table__body tr.el-table__row--striped td { background-color: #f7f7f9; } @@ -738,6 +742,15 @@ a { margin: 0 !important; } } + .el-popper { + max-width: 388px; + padding: 15px 12px; + color: #202531; + box-shadow: 0px 4px 12px 0px + rgba(18, 30, 63, 0.1); + border: solid 1px #e6e9ef; + font-size: 14px; + } } .bg-table-pro{ @@ -2023,29 +2036,31 @@ a { .bg-switch { display: inline-block; vertical-align: middle; - width: 64px; - height: 28px; - border-radius: 14px; - border: solid 2px #275a9d; + width: 44px; + height: 20px; + border-radius: 10px; + border: solid 2px #2b4695; position: relative; - color: #275a9d; + color: #fff; + background-color: #2b4695; cursor: pointer; user-select: none; > .label { font-size: 12px; - font-weight: 600; - line-height: 24px; + font-weight: 400; + line-height: 15px; position: absolute; + color: #fff; } > .circle { - width: 18px; - height: 18px; + width: 16px; + height: 16px; border-radius: 50%; position: absolute; - top: 3px; - background-color: #275a9d; + // top: 2px; + background-color: #fff; } &.disabled { @@ -2312,9 +2327,8 @@ a { .bg-pagination { height: 32px; - position: absolute; - right: 24px; - bottom: 16px; + margin-top: 16px; + float: right; .el-pagination { text-align: center; margin: 0 auto; @@ -2459,4 +2473,64 @@ a { border: 1px solid #e6e9ef; padding: 24px 16px 8px; } +} +// 表格操作按钮组 +.bg-table-btns { + position: relative; + display: inline-block; + vertical-align: middle; +} + +.bg-table-btns-more { + position: absolute; + top: 28px; + right: -16px; + z-index: 19; + padding: 4px 0; + background-color: #ffffff; + box-shadow: 0px 4px 12px 0px rgba(18, 30, 63, 0.1); + border-radius: 4px; + border: solid 1px #e6e9ef; + width: 88px; + + .bg-table-btn { + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + display: block; + padding: 0 16px; + margin: 0; + color: #202531; + line-height: 34px; + padding-left: 16px; + &:hover { + background-color: #f2f3f7; + color: #202531; + } + + &.disabled { + color: #a9b1c7; + } + &::before { + display: none; + } + } + + &::before { + content: ""; + position: absolute; + top: -10px; + left: 0; + height: 10px; + width: 100%; + } +} + +.bg-switch-ele { + width: 44px; + height: 20px; + .el-switch__core { + width: 100%; + } } \ No newline at end of file diff --git a/src/page/main/config/dict/index.vue b/src/page/main/config/dict/index.vue index 0791bec0e4ed8f6aefe8a48daa347beae721b912..2fb0b6170827f4e6bba7cab68ce72c2c6c4341d8 100644 --- a/src/page/main/config/dict/index.vue +++ b/src/page/main/config/dict/index.vue @@ -6,91 +6,180 @@ 字典配置
-
-
- +
+
+
+ -
-
- {{item.name}} +
+
+ {{item.classify_name}} +
-
- -
- - - 新建 - -
-
- - -