Skip to content

Commit 8a73fed

Browse files
committed
small change
1 parent 0f2f638 commit 8a73fed

File tree

16 files changed

+193
-100
lines changed

16 files changed

+193
-100
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
.left-menu{
1+
.left-menu {
22
float: left;
33
width: 240px;
44
margin-right: -240px;
55
}
6-
.main-contain{
6+
7+
.main-contain {
78
float: left;
89
width: 100%;
910
margin-left: 240px;
1011
min-height: 700px;
1112
border-left: solid 1px #009688;
1213
}
13-
.main-frame{
14+
15+
.main-frame {
16+
1417
}

webpack1-react14-antd1-echarts-upload-youka2012-ie8-spa/src/components/business-components/antd-demos/components/DemoSelect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ class MyComponent extends Component {
206206

207207
render() {
208208
return (
209-
<div>
209+
<div className="p-10">
210210
<div id="echarts-test" style={{height: "500px", width: "700px"}}/>
211211
</div>
212212
)
213213
}
214214
}
215215

216-
export default MyComponent;
216+
export default MyComponent;

webpack1-react14-antd1-echarts-upload-youka2012-ie8-spa/src/components/common-views/Footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "./Footer.css"
33

44
const Footer = () =>
55
<div className="ant-col-24 app-footer">
6-
<span>上海辰华网络技术服务有限公司 All Rights Reserved</span>
6+
<span>xxx技术支持公司 All Rights Reserved</span>
77
</div>;
88

99
export default Footer;

webpack1-react14-antd1-echarts-upload-youka2012-ie8-spa/src/components/common-views/Header.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Menu, Dropdown, Icon} from 'antd';
33
import {Link, withRouter} from "react-router-dom";
44
import Cookies from 'js-cookie';
55
import myAxios from '../../utils/myAxios'
6-
import "./Header.css"
6+
import "./Header.less"
77

88
class HeaderMenuWrap extends Component {
99
constructor(props) {
@@ -95,13 +95,15 @@ class Header extends Component {
9595
const userName = userCode ? userCode : '';
9696
return (
9797
<div className="header-wrap">
98-
<span className="header-title"></span>
99-
<div className="tab-wrap"><RightDrop userName={userName} history={this.props.history}/>
100-
<HeaderMenu/>
98+
<div className="header-wrap__container">
99+
<span className="header-title"></span>
100+
<div className="tab-wrap"><RightDrop userName={userName} history={this.props.history}/>
101+
<HeaderMenu/>
102+
</div>
101103
</div>
102104
</div>
103105
);
104106
}
105107
}
106108

107-
export default Header;
109+
export default Header;

webpack1-react14-antd1-echarts-upload-youka2012-ie8-spa/src/components/common-views/Header.css renamed to webpack1-react14-antd1-echarts-upload-youka2012-ie8-spa/src/components/common-views/Header.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@
2222
height: 80px;
2323
position: relative;
2424
background: url("../../assets/url-img/login/header_bg.jpg") no-repeat;
25+
width: 100%;
26+
27+
&__container {
28+
width: 1100px;
29+
margin: 0 auto;
30+
}
31+
2532
}
33+
2634
.header-title{
2735
color:#bbc9cd;
2836
font-size: 24px;
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
.main-wrapper{
1+
.main-wrapper {
22
overflow: hidden;
33
}
4-
.left-menu{
5-
padding-top: 6px;
4+
5+
.left-menu {
6+
/*padding-top: 6px;*/
67
float: left;
78
width: 240px;
89
/*margin-right: -240px;*/
910
}
10-
.main-contain{
11+
12+
.main-contain {
1113
/*float: left;*/
1214
margin-left: 244px;
1315
min-height: 700px;
1416
border-left: solid 6px #ececec;
1517
}
16-
.main-frame{
18+
19+
.main-frame {
20+
1721
}

webpack1-react14-antd1-echarts-upload-youka2012-ie8-spa/src/components/login/Login.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ class Login extends Component {
4040
<ul className='login-footer'>
4141
<li>Powered by ChenHua Technology</li>
4242
<li>电话:021-00000000</li>
43-
<li>@2018 上海辰华网络技术服务有限公司</li>
43+
<li>@2018 xxx技术支持公司</li>
4444
</ul>
4545
</div>
4646
);
4747
}
4848
}
4949

50-
export default Login;
50+
export default Login;

webpack1-react14-antd1-echarts-upload-youka2012-ie8-spa/src/components/password-change/PasswordChange.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ class PasswordChange extends Component {
2828
<ul className='login-footer'>
2929
<li>Powered by ChenHua Technology</li>
3030
<li>电话:021-00000000</li>
31-
<li>@2018 上海辰华网络技术服务有限公司</li>
31+
<li>@2018 xxx技术支持公司</li>
3232
</ul>
3333
</div>
3434
);
3535
}
3636
}
3737

38-
export default PasswordChange;
38+
export default PasswordChange;

webpack1-react14-antd1-echarts-upload-youka2012-ie8-spa/src/utils/antd.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Antd功能
3+
*/
4+
15
import { verIE } from "./fns";
26

37
const horizontalScroll = e => {
@@ -25,4 +29,4 @@ export const shimAntdTable = () => {
2529
$(".ant-table-scroll .ant-table-header,.ant-table-scroll .ant-table-body").each(checkBind("scroll", horizontalScroll));
2630
$(".ant-table-fixed-left .ant-table-body-inner,.ant-table-scroll .ant-table-body,.ant-table-fixed-right .ant-table-body-inner").each(checkBind("scroll", verticalScroll));
2731
}
28-
};
32+
};

webpack1-react14-antd1-echarts-upload-youka2012-ie8-spa/src/utils/data-tools.js

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1-
export const arrayToTree = function (_data, id, pid, childrenName, itemMap) //将ID、ParentID这种数据格式转换为树格式
1+
/**
2+
* 将ID、ParentID这种数据格式转换为树格式
3+
*
4+
* @param _data
5+
* @param id
6+
* @param pid
7+
* @param childrenName
8+
* @param itemMap
9+
* @returns {Array}
10+
*/
11+
export const arrayToTree = function (_data, id, pid, childrenName, itemMap)
212
{
13+
14+
function getKey(key) {
15+
if (typeof (key) == "string") key = key.replace(/[.]/g, '').toLowerCase();
16+
return key;
17+
}
18+
319
var id = id || "id";
420
var pid = pid || "parent_id";
521
var childrenName = childrenName || "children";
@@ -27,9 +43,4 @@ export const arrayToTree = function (_data, id, pid, childrenName, itemMap)
2743
// data[i] = null;
2844
}
2945
return targetData;
30-
31-
function getKey(key) {
32-
if (typeof (key) == "string") key = key.replace(/[.]/g, '').toLowerCase();
33-
return key;
34-
}
35-
};
46+
};

0 commit comments

Comments
 (0)