Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
wms
Commits
8fff25e0
Commit
8fff25e0
authored
Aug 21, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
集成
parent
ed6ec515
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
21 deletions
+99
-21
AvatarDropdown.jsx
src/components/RightContent/AvatarDropdown.jsx
+2
-2
global.less
src/global.less
+91
-16
Welcome.jsx
src/pages/Welcome.jsx
+2
-1
request.js
src/utils/request.js
+4
-2
No files found.
src/components/RightContent/AvatarDropdown.jsx
View file @
8fff25e0
...
...
@@ -161,11 +161,11 @@ const AvatarDropdown = ({ menu }) => {
const
menuHeaderDropdown
=
(
<
Menu
className=
{
styles
.
menu
}
selectedKeys=
{
[]
}
onClick=
{
onMenuClick
}
>
<
Menu
.
Item
key=
"changepwd"
>
{
/*
<Menu.Item key="changepwd">
<LockOutlined />
修改密码
</Menu.Item>
<
Menu
.
Divider
/>
<Menu.Divider />
*/
}
<
Menu
.
Item
key=
"logout"
>
<
LogoutOutlined
/>
退出登录
...
...
src/global.less
View file @
8fff25e0
...
...
@@ -9,6 +9,7 @@
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
html,
body,
#root {
...
...
@@ -19,6 +20,7 @@ body,
.colorWeak {
filter: invert(80%);
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
left: unset;
}
...
...
@@ -33,6 +35,15 @@ body {
-moz-osx-font-smoothing: grayscale;
}
main>div:nth-child(2)>div>div {
height: 100% !important;
>div {
height: 100% !important;
}
}
ul,
ol {
list-style: none;
...
...
@@ -42,12 +53,15 @@ ol {
.ant-table {
width: 100%;
overflow-x: auto;
&-thead > tr,
&-tbody > tr {
> th,
> td {
&-thead>tr,
&-tbody>tr {
>th,
>td {
white-space: pre;
> span {
>span {
display: block;
}
}
...
...
@@ -56,8 +70,9 @@ ol {
}
// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
body .ant-design-pro > .ant-layout {
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
body .ant-design-pro>.ant-layout {
min-height: 100vh;
}
}
...
...
@@ -83,10 +98,12 @@ ol {
.ant-card-body {
padding: 12px !important;
}
.ant-card-head {
padding: 0 20px !important;
}
}
.ant-drawer-content {
overflow-x: hidden !important;
}
...
...
@@ -96,6 +113,7 @@ ol {
padding: 0 !important;
}
}
.ant-pro-table-list-toolbar-container {
padding: 0px !important;
padding-bottom: 8px !important;
...
...
@@ -108,12 +126,14 @@ ol {
justify-content: space-between !important;
padding: 10px 0 10px 0 !important;
}
.ant-pro-form-login-container {
height: auto !important;
margin-top: -10vh;
padding: 0 !important;
background: transparent !important;
}
.ant-pro-form-login-main {
margin-top: 30px !important;
}
...
...
@@ -125,42 +145,51 @@ pre {
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
white-space: pre-wrap !important;
}
.gongyiStep {
height: 100%;
.ant-steps-item-title {
width: 100% !important;
}
}
.center {
display: flex;
align-items: center;
justify-content: center;
}
.spread {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.columns {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.specialpropertiesCard {
.ant-card-body {
padding: 5px !important;
}
}
.oneText {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ant-picker-cell-inner {
display: flex !important;
justify-content: center;
.ant-picker-calendar-date-content {
flex: 1 !important;
}
...
...
@@ -170,16 +199,17 @@ pre {
.ant-tabs-nav {
padding: 0 16px;
}
.ant-tabs-content-holder {
max-height: 520px;
padding: 0 16px;
overflow-y: auto;
}
}
.ant-input[disabled],
.ant-picker-input > input[disabled],
.ant-select-disabled.ant-select:not(.ant-select-customize-input)
.ant-select-selector,
.ant-picker-input>input[disabled],
.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector,
.ant-select-disabled.ant-select-multiple .ant-select-selection-item {
color: rgba(0, 0, 0, 0.85) !important;
}
...
...
@@ -191,6 +221,7 @@ pre {
}
}
}
.row-dragging {
z-index: 999999999999;
background: #fafafa;
...
...
@@ -204,6 +235,7 @@ pre {
.row-dragging .drag-visible {
visibility: visible;
}
//reset end
.img {
...
...
@@ -213,21 +245,26 @@ pre {
background-position: center;
background-size: cover;
}
.cover {
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
img {
width: 30%;
margin: 30px 0 0 30px;
}
}
.ant-pro-form-login-desc {
margin-bottom: 0 !important;
}
.ant-layout-footer {
background-color: transparent !important;
.ant-pro-global-footer {
margin: 0 !important;
padding: 0 !important;
...
...
@@ -238,62 +275,79 @@ pre {
.ant-tabs-nav-wrap {
display: inline-block !important;
}
.ant-tabs-tab-active {
font-size: 16px !important;
}
.ant-layout-footer {
background-color: #23394a !important;
.ant-pro-global-footer {
margin: 0 0 20px 0 !important;
padding: 0 !important;
* {
color: rgba(255, 255, 255, 0.6) !important;
}
.ant-pro-global-footer-copyright {
color: rgba(255, 255, 255, 0.3) !important;
}
}
}
.ant-input-affix-wrapper {
background-color: rgba(255, 255, 255, 0.3) !important;
border: none !important;
input {
color: #fff !important;
background-color: rgba(255, 255, 255, 0) !important;
}
}
.ant-select-selector {
background-color: rgba(255, 255, 255, 0.3) !important;
border: none !important;
input {
color: #fff !important;
background-color: rgba(255, 255, 255, 0) !important;
}
}
.ant-input {
color: #fff !important;
background-color: rgba(255, 255, 255, 0.3) !important;
border: none !important;
}
.ant-select-selection-item {
color: #fff !important;
}
.anticon-close-circle {
color: #fff !important;
}
.anticon {
color: #fff !important;
}
.ant-select-clear {
background-color: transparent !important;
}
.ant-select-selection-item-content,
.ant-select-selection-item-remove {
color: #000 !important;
.anticon {
color: #000 !important;
}
}
.ant-select-selection-overflow {
display: flex !important;
flex-wrap: nowrap !important;
...
...
@@ -306,38 +360,48 @@ pre {
font-weight: normal !important;
}
}
.ant-layout-header {
transition: all 200ms !important;
transition-timing-function: ease-out !important;
}
.ant-pro-global-header {
padding-left: 6px !important;
}
table {
min-width: calc(100% - 6px) !important;
}
.ant-drawer-open {
transform: none !important;
}
.ant-pro-table-list-toolbar {
overflow: hidden !important;
}
.ant-select-selector {
overflow: hidden !important;
}
.ant-breadcrumb {
span {
>
span {
>span {
max-width: 600px !important;
}
}
}
.ant-tree .ant-tree-treenode {
width: 100%;
> span:last-child {
>span:last-child {
flex: 1;
}
}
.ant-input-number-affix-wrapper,
.ant-input-number {
width: 100% !important;
...
...
@@ -350,6 +414,7 @@ table {
}
@media print {
html,
body {
height: initial !important;
...
...
@@ -365,20 +430,25 @@ table {
page-break-after: always;
}
}
.ant-pro-card-body {
padding: 12px !important;
}
.ant-pagination.ant-pagination-mini .ant-pagination-options-size-changer {
max-width: 100px !important;
}
.ant-pagination-options {
display: flex !important;
min-width: 210px !important;
}
#large {
.header {
background-color: transparent !important;
}
.header-item,
.ceil {
height: auto !important;
...
...
@@ -390,16 +460,20 @@ table {
word-break: break-all !important;
border: #000 1px solid !important;
}
.header-item{
.header-item {
font-weight: bolder !important;
}
.header-item + .header-item {
.header-item+.header-item {
margin-left: -1px !important;
}
.ceil {
margin-top: -1px;
}
.ceil + .ceil {
.ceil+.ceil {
margin-left: -1px !important;
}
...
...
@@ -409,10 +483,11 @@ table {
line-height: 1 !important;
background-color: transparent !important;
}
* {
overflow: visible !important;
font-size: 20px !important;
white-space: pre-wrap !important;
word-break: break-all !important;
}
}
}
\ No newline at end of file
src/pages/Welcome.jsx
View file @
8fff25e0
...
...
@@ -2,12 +2,13 @@ import React, { useState } from "react";
import
AutoTable
from
"@/components/AutoTable"
;
import
DrawInitForm
from
"@/components/DrawInitForm"
;
import
{
Button
}
from
"antd"
;
import
bg
from
"../../public/home.jpg"
;
function
Table
({
route
})
{
const
style
=
{
width
:
"100%"
,
height
:
"100%"
,
backgroundImage
:
`url(
${
require
(
"../../public/home.jpg"
)
}
)`
,
backgroundImage
:
`url(
${
bg
}
)`
,
backgroundPosition
:
"0 0"
,
backgroundSize
:
"cover"
,
backgroundRepeat
:
"no-repeat"
,
...
...
src/utils/request.js
View file @
8fff25e0
...
...
@@ -30,7 +30,7 @@ const codeMessage = {
const
errorHandler
=
(
error
)
=>
{
const
{
response
}
=
error
;
console
.
log
(
"异常处理"
,
error
);
console
.
log
(
"异常处理"
,
error
);
if
(
response
.
status
===
200
)
{
return
;
}
...
...
@@ -149,7 +149,9 @@ request.interceptors.response.use(async (response, options) => {
if
(
data
?.
code
!=
"0000"
)
{
message
.
destroy
();
message
.
warn
(
data
?.
msg
);
if
(
data
?.
code
==
"9999"
)
{
message
.
warn
(
data
?.
msg
);
}
if
(
data
?.
code
==
"0001"
&&
window
.
location
.
href
.
indexOf
(
"login"
)
==
-
1
)
{
localStorage
.
clear
();
history
.
replace
(
"/user/login"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment