Commit 838f3033 by wufan Committed by zhangleyuan

style:样式优化

parent 0487f2d6
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
color: #666; color: #666;
} }
.nc_iconfont { .nc_iconfont {
color: #FF8534; color: #FFB714;
font-weight: bold; font-weight: bold;
border-color: #e8e8e8; border-color: #e8e8e8;
height: 40px; height: 40px;
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px;
} }
.nc_scale .btn_ok { .nc_scale .btn_ok {
color: #FF8534; color: #FFB714;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
box-sizing: border-box; box-sizing: border-box;
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
.nc-lang-cnt { .nc-lang-cnt {
color: #666; color: #666;
a { a {
color: #FC9C6B; color: #FFB714;
} }
} }
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
@import './variables.less'; @import './variables.less';
@active-color: #ff8534; @active-color: #ffb000;
// 消息提示框 // 消息提示框
.ant-message { .ant-message {
...@@ -224,18 +224,11 @@ ...@@ -224,18 +224,11 @@
.ant-btn { .ant-btn {
height: 28px; height: 28px;
font-weight: 400 !important; font-weight: 400 !important;
padding: 0 12px !important;
// border-radius: 2px !important;
border: 1px solid #e8e8e8; border: 1px solid #e8e8e8;
// &:hover {
// border: 1px solid #fdb089 !important;
// color: #fdb089 !important;
// }
&:focus, &:focus,
:active { :active {
border: 1px solid #ff8534 !important; border: 1px solid #ffb000 !important;
color: #ff8534 !important; color: #ffb000 !important;
} }
} }
...@@ -291,7 +284,7 @@ ...@@ -291,7 +284,7 @@
position: absolute; position: absolute;
width: 30px; width: 30px;
height: 2px; height: 2px;
background: #ff8534 !important; background: #ffb000 !important;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
} }
...@@ -367,29 +360,18 @@ mr0 { ...@@ -367,29 +360,18 @@ mr0 {
border-color: @xm-color-border !important; border-color: @xm-color-border !important;
} }
// .ant-table-body {
// .ant-select-dropdown-menu-item-selected,
// .ant-select-dropdown-menu-item-selected:hover {
// background-color: @xm-select-item-hover !important;
// }
// }
// .dropdown-active-background {
// .ant-select-dropdown-menu-item-active {
// background-color: @xm-select-item-hover !important;
// }
// }
.ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled) { .ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled) {
background: #F3F6FA; background: #F3F6FA;
.ant-select-selected-icon { .ant-select-selected-icon {
color: #FE8534 !important; color:#ffb000 !important;
} }
} }
.ant-select-dropdown-menu-item-selected { .ant-select-dropdown-menu-item-selected {
background: none; background: none;
font-weight: 400 !important; font-weight: 400 !important;
color: #FE8534; color:#ffb000;
} }
.ant-btn-primary.ant-btn { .ant-btn-primary.ant-btn {
...@@ -489,13 +471,6 @@ mr0 { ...@@ -489,13 +471,6 @@ mr0 {
margin-right: 24px; margin-right: 24px;
} }
} }
// &:hover {
// &::-webkit-scrollbar-thumb {
// /*滚动条里面小方块*/
// background: rgba(204, 204, 204, 1);
// }
// }
} }
.no-scrollbar { .no-scrollbar {
...@@ -521,7 +496,7 @@ mr0 { ...@@ -521,7 +496,7 @@ mr0 {
.ant-modal { .ant-modal {
.ant-input { .ant-input {
&:focus { &:focus {
border: 1px solid #ffbb94 !important; border: 1px solid #ffb000 !important;
} }
} }
} }
...@@ -553,12 +528,12 @@ mr0 { ...@@ -553,12 +528,12 @@ mr0 {
.ant-btn-danger:hover, .ant-btn-danger:hover,
.ant-btn-danger:focus { .ant-btn-danger:focus {
color: #fff !important; color: #fff !important;
background-color: #ff7875 !important; background-color: #ffb000 !important;
border-color: #ff7875 !important; border-color: #ffb000 !important;
} }
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon { .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
color: #fdb089!important; color: #ffb000!important;
} }
.ant-breadcrumb > span:last-child .ant-breadcrumb-separator { .ant-breadcrumb > span:last-child .ant-breadcrumb-separator {
...@@ -586,7 +561,7 @@ mr0 { ...@@ -586,7 +561,7 @@ mr0 {
font-size: 22px !important; font-size: 22px !important;
line-height: 22px !important; line-height: 22px !important;
float: left !important; float: left !important;
color: #FC9C6B !important; color:#ffb000 !important;
margin-right: 16px !important; margin-right: 16px !important;
&.blue { &.blue {
color: #5CBAFF !important; color: #5CBAFF !important;
...@@ -612,7 +587,7 @@ mr0 { ...@@ -612,7 +587,7 @@ mr0 {
margin-right: 16px; margin-right: 16px;
} }
>.confirm-icon{ >.confirm-icon{
color: #FC9C6B; color: #ffb000;
} }
.ant-modal-confirm-content { .ant-modal-confirm-content {
margin-left: 38px; margin-left: 38px;
......
...@@ -11,16 +11,19 @@ ...@@ -11,16 +11,19 @@
font-weight: 400; font-weight: 400;
color: #5289FA; color: #5289FA;
line-height: 20px; line-height: 20px;
cursor: pointer;
} }
.edit-btn{ .edit-btn{
font-weight: 400; font-weight: 400;
color: #5289FA; color: #5289FA;
line-height: 20px; line-height: 20px;
cursor: pointer;
} }
.delete-btn{ .delete-btn{
font-weight: 400; font-weight: 400;
color: #5289FA; color: #5289FA;
line-height: 20px; line-height: 20px;
cursor: pointer;
} }
.empty-child{ .empty-child{
color:#666; color:#666;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-11-27 16:21:49 * @Date: 2020-11-27 16:21:49
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2020-12-09 10:56:50 * @LastEditTime: 2020-12-09 20:01:00
* @Description: Description * @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -148,6 +148,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -148,6 +148,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
case "phone": case "phone":
form.setFieldsValue({ phone: value }); form.setFieldsValue({ phone: value });
setPhone(value); setPhone(value);
setPhoneErrorMessage("");
setPhoneStatus("");
return; return;
case "role": case "role":
...@@ -220,6 +222,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -220,6 +222,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
style={{ width: 200 }} style={{ width: 200 }}
placeholder="请输入员工名称" placeholder="请输入员工名称"
maxLength={15} maxLength={15}
autoComplete="off"
onChange={(e) => handleChangeValues("nickName", e.target.value)} onChange={(e) => handleChangeValues("nickName", e.target.value)}
/> />
</Form.Item> </Form.Item>
...@@ -231,12 +234,21 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -231,12 +234,21 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
validateStatus={phoneStatus} validateStatus={phoneStatus}
help={phoneErrorMessage} help={phoneErrorMessage}
> >
<InputNumber <Input
style={{ width: 200 }} style={{ width: 200 }}
placeholder="请输入手机号" placeholder="请输入手机号"
maxLength={11} maxLength={11}
autoComplete="off"
disabled={!!props.choosedItem.nickName} disabled={!!props.choosedItem.nickName}
onChange={(value) => handleChangeValues("phone", value)} onChange={(e) => {
if((e.target.value).match(/^\d+$/)){
handleChangeValues("phone", e.target.value);
} else {
setPhoneErrorMessage("只能输入数字");
setPhoneStatus("error");
}
}
}
/> />
</Form.Item> </Form.Item>
......
/* /*
* @Author: wufan * @Author: wufan
* @Date: 2020-11-27 16:21:49 * @Date: 2020-11-27 16:21:49
* @LastEditors: zhangleyuan * @LastEditors: wufan
* @LastEditTime: 2020-12-08 18:05:52 * @LastEditTime: 2020-12-09 20:01:24
* @Description: Description * @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -129,6 +129,7 @@ function SecondCatalogAddOrEditModal(props: SecondCatalogAddOrEditModalProps) { ...@@ -129,6 +129,7 @@ function SecondCatalogAddOrEditModal(props: SecondCatalogAddOrEditModalProps) {
maxLength={10} maxLength={10}
style={{ width: 240 }} style={{ width: 240 }}
defaultValue={secondCatalogName} defaultValue={secondCatalogName}
autoComplete="off"
onChange={(e) => { onChange={(e) => {
setSecondCatalogName(e.target.value); setSecondCatalogName(e.target.value);
}} }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment