771 lines
13 KiB
Plaintext
771 lines
13 KiB
Plaintext
@primary-color: #D52C26;
|
|
/* 页面不出全局滚动条的高度,如果在vue文件使用,就只能在style里引入common.less */
|
|
/*59px是用户信息那块,21px是面包屑,24px是上下的留白*/
|
|
@page-content-h: calc(100vh - 59px - 21px - 24px);
|
|
|
|
/*列表上方操作按钮区域*/
|
|
/*.ant-card-body .table-operator {
|
|
margin-bottom: 8px;
|
|
}*/
|
|
|
|
/* 列表可拖拽改变列宽 begin */
|
|
.nio-header-th {
|
|
position: relative;
|
|
isolation: isolate;
|
|
}
|
|
|
|
.nio-drag-handler {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 5px;
|
|
z-index: 1;
|
|
border-right: 1px #e8e8e8 solid;
|
|
}
|
|
|
|
.nio-drag-handler:hover,
|
|
.nio-drag-handler:focus {
|
|
cursor: col-resize !important;
|
|
border-right: 2px solid #0bd9d9 !important;
|
|
}
|
|
|
|
/* 列表可拖拽改变列宽 end */
|
|
|
|
/*列表上方操作按钮区域*/
|
|
.ant-card-body .table-operator,
|
|
.table-operator {
|
|
margin-bottom: 29px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
color: #040B29;
|
|
}
|
|
|
|
.operator-text {
|
|
cursor: pointer;
|
|
margin-right: 53px;
|
|
display: inline-block;
|
|
|
|
.ant-upload {
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
color: #040B29;
|
|
}
|
|
}
|
|
|
|
.operator-text:last-child {
|
|
margin-right: 16px;
|
|
}
|
|
|
|
/** Button按钮间距 */
|
|
.table-operator .ant-btn {
|
|
margin: 0 8px 8px 0;
|
|
}
|
|
|
|
.table-operator .ant-btn-group .ant-btn {
|
|
margin: 0;
|
|
}
|
|
|
|
.table-operator .ant-btn-group .ant-btn:last-child {
|
|
margin: 0 8px 8px 0;
|
|
}
|
|
|
|
/*列表td的padding设置 可以控制列表大小*/
|
|
.ant-table-tbody .ant-table-row td {
|
|
padding-top: 15px;
|
|
padding-bottom: 15px;
|
|
}
|
|
|
|
// 表格内操作列按钮的样式
|
|
.ant-table-tbody .table-action a {
|
|
margin: 0 8px;
|
|
}
|
|
|
|
.ant-table-tbody .table-action a:nth-of-type(1) {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.operate-icon-btn {
|
|
color: @primary-color;
|
|
}
|
|
|
|
.operate-icon-more {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.operate-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
|
color: #1D2129;
|
|
|
|
&-icon {
|
|
margin-right: 8px;
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
|
|
.action-span-cell > a:first-child {
|
|
margin-left: 0;
|
|
}
|
|
|
|
/*列表页面弹出modal*/
|
|
.ant-modal-cust-warp {
|
|
height: 100%
|
|
}
|
|
|
|
/*弹出modal Y轴滚动条*/
|
|
.ant-modal-cust-warp .ant-modal-body {
|
|
height: calc(100% - 110px) !important;
|
|
overflow-y: auto
|
|
}
|
|
|
|
/*弹出modal 先有content后有body 故滚动条控制在body上*/
|
|
.ant-modal-cust-warp .ant-modal-content {
|
|
height: 90% !important;
|
|
overflow-y: hidden
|
|
}
|
|
|
|
/*列表中有图片的加这个样式 参考用户管理*/
|
|
.anty-img-wrap {
|
|
height: 25px;
|
|
position: relative;
|
|
}
|
|
|
|
.anty-img-wrap > img {
|
|
max-height: 100%;
|
|
}
|
|
|
|
/*列表中范围查询样式*/
|
|
.query-group-cust {
|
|
width: calc(50% - 10px)
|
|
}
|
|
|
|
.query-group-split-cust:before {
|
|
content: "~";
|
|
width: 20px;
|
|
display: inline-block;
|
|
text-align: center
|
|
}
|
|
|
|
|
|
/*erp风格子表外框padding设置*/
|
|
.ant-card-wider-padding.cust-erp-sub-tab > .ant-card-body {
|
|
padding: 5px 12px
|
|
}
|
|
|
|
/* 内嵌子表背景颜色 */
|
|
.j-inner-table-wrapper /deep/ .ant-table-expanded-row .ant-table-wrapper .ant-table-tbody .ant-table-row {
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
/**隐藏样式-modal确定按钮 */
|
|
.jee-hidden {
|
|
display: none
|
|
}
|
|
|
|
// 抽屉按钮区域
|
|
.drawer-bootom-button {
|
|
position: absolute;
|
|
bottom: 0;
|
|
z-index: 100;
|
|
width: 100%;
|
|
border-top: 1px solid #e8e8e8;
|
|
padding: 10px 16px;
|
|
text-align: right;
|
|
left: 0;
|
|
background: #fff;
|
|
border-radius: 0 0 2px 2px;
|
|
}
|
|
|
|
// 新增编辑表单样式
|
|
.form-add {
|
|
margin-bottom: 40px;
|
|
|
|
/deep/ .ant-form-item-label {
|
|
width: 130px;
|
|
}
|
|
|
|
/deep/ .ant-form-item-control-wrapper {
|
|
display: inline-block;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.box-title-text {
|
|
line-height: 1.4;
|
|
display: flex;
|
|
/*align-items: center;*/
|
|
|
|
.title-text {
|
|
width: 114px;
|
|
text-align: right;
|
|
display: inline-block;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
margin-right: 16px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
height: 42px;
|
|
line-height: 42px;
|
|
|
|
.required {
|
|
color: red;
|
|
margin-right: 4px;
|
|
}
|
|
}
|
|
|
|
.item-model {
|
|
width: calc(100% - 130px);
|
|
display: inline-block;
|
|
margin-top: 2px;
|
|
height: 40px;
|
|
margin-bottom: 24px;
|
|
|
|
/deep/ .ant-form-item-control-wrapper {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.item-model-textarea {
|
|
width: calc(100% - 130px);
|
|
display: inline-block;
|
|
margin-top: 2px;
|
|
|
|
/deep/ .ant-form-item-control-wrapper {
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
|
|
/*.box-input {
|
|
display: inline-block;
|
|
height: 38px;
|
|
width: 100%;
|
|
|
|
/deep/ .ant-select-selection--single {
|
|
height: 38px;
|
|
}
|
|
|
|
/deep/ .ant-select-selection--multiple {
|
|
height: 38px;
|
|
|
|
.ant-select-selection__rendered > ul > li {
|
|
margin-top: 6px;
|
|
}
|
|
}
|
|
|
|
/deep/ .ant-select-selection__rendered {
|
|
line-height: 38px;
|
|
height: 38px;
|
|
}
|
|
|
|
/deep/ .ant-calendar-picker {
|
|
line-height: 38px;
|
|
height: 38px;
|
|
}
|
|
|
|
/deep/ .ant-calendar-picker-input {
|
|
height: 38px;
|
|
}
|
|
|
|
/deep/ .ant-input-number-input-wrap {
|
|
line-height: 38px;
|
|
height: 38px;
|
|
}
|
|
}*/
|
|
}
|
|
|
|
.title-text-text {
|
|
margin-top: 9px;
|
|
}
|
|
|
|
.header-text {
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
margin-left: 15px;
|
|
/*border-bottom: 1px #d9d9d9 dashed;*/
|
|
height: 30px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.button-text {
|
|
//height: 38px;
|
|
width: calc(100% - 100px);
|
|
//line-height: 38px;
|
|
background: #fff;
|
|
border: 1px #D52C26 solid;
|
|
color: #D52C26;
|
|
}
|
|
|
|
// 新增编辑表单样式--完
|
|
|
|
// 左树右表布局
|
|
.left-tree-div {
|
|
.div-left {
|
|
/*height: 100%;*/
|
|
width: 230px;
|
|
float: left;
|
|
padding-right: 20px;
|
|
/*border-right: 1px solid #E6E7EC;*/
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.div-right {
|
|
padding-left: 20px;
|
|
width: calc(100% - 230px);
|
|
float: right;
|
|
border-left: 1px solid #E6E7EC;
|
|
/*flex: 1;*/
|
|
|
|
.right-search-header {
|
|
margin-bottom: 20px;
|
|
|
|
.table-page-search-submitButtons {
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/*表格中换行文本的样式*/
|
|
.table-text {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.can-click-table-text {
|
|
color: @primary-color;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* switch的样式 */
|
|
.table-operator-tab {
|
|
width: fit-content;
|
|
background-color: #F0F2F4;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.table-operator-tab a {
|
|
border-radius: 4px;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 94px;
|
|
height: 32px;
|
|
color: #4E5969;
|
|
}
|
|
|
|
.table-operator-tab a.table-operator-tab-active {
|
|
background-color: #D52C26;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.table-operator-tab a:not(:first-child) {
|
|
//transform: translateX(-8px);
|
|
margin-left: -8px;
|
|
}
|
|
|
|
/* switch的样式--end */
|
|
|
|
/*分页的样式start*/
|
|
.ant-pagination-prev, .ant-pagination-next, .ant-pagination-jump-prev, .ant-pagination-jump-next {
|
|
height: 24px !important;
|
|
min-width: 24px !important;
|
|
line-height: 24px !important;
|
|
}
|
|
|
|
.ant-pagination-item {
|
|
width: 24px;
|
|
height: 24px !important;
|
|
min-width: 24px !important;
|
|
line-height: 22px !important;
|
|
|
|
a {
|
|
padding: 0 !important;
|
|
}
|
|
}
|
|
|
|
.ant-pagination-item-active a {
|
|
color: #ffffff !important;
|
|
background-color: @primary-color;
|
|
}
|
|
|
|
.ant-pagination-options-size-changer.ant-select {
|
|
height: 24px !important;
|
|
|
|
.ant-select-selection--single {
|
|
height: 24px;
|
|
|
|
.ant-select-selection__rendered {
|
|
line-height: 22px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ant-pagination-options-quick-jumper {
|
|
height: 24px !important;
|
|
line-height: 22px !important;
|
|
}
|
|
|
|
.ant-pagination-options-quick-jumper input {
|
|
height: 24px !important;
|
|
}
|
|
|
|
/*分页的样式end*/
|
|
|
|
/*页面左右布局*/
|
|
.page-left-right-layout {
|
|
height: @page-content-h;
|
|
width: 100%;
|
|
|
|
.ant-card-body {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
display: flex;
|
|
}
|
|
|
|
.page-left-box {
|
|
width: 248px;
|
|
height: 100%;
|
|
border-right: 1px solid #E5E6EB;
|
|
padding: 24px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.page-right-box {
|
|
flex: 1;
|
|
width: 0;
|
|
height: 100%;
|
|
padding: 24px;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
|
|
.page-tree-box {
|
|
height: 100%;
|
|
overflow: auto;
|
|
}
|
|
|
|
.page-tree-box-has-search {
|
|
height: calc(100% - 40px);
|
|
}
|
|
|
|
/*展开收起按钮颜色*/
|
|
.ant-tree.ant-tree-show-line li span.ant-tree-switcher {
|
|
color: #86909c;
|
|
}
|
|
|
|
.ant-tree-title {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: inline-block;
|
|
}
|
|
|
|
// 文件夹节点使用自定义
|
|
.tree-node {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
|
|
&-icon {
|
|
width: 16px;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
&-title {
|
|
flex: 1;
|
|
width: 0;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
.tree-node-custom-title {
|
|
display: inline-block;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
flex: 1;
|
|
}
|
|
|
|
// 鼠标移入树节点样式修改
|
|
.ant-tree li .ant-tree-node-content-wrapper:hover {
|
|
background: #FFFFFF;
|
|
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
|
|
border-radius: 4px 4px 4px 4px;
|
|
opacity: 1;
|
|
margin-left: -24px;
|
|
padding-left: 29px;
|
|
}
|
|
|
|
.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected {
|
|
background-color: #ffd9d1 !important;
|
|
}
|
|
|
|
.tree-operate-node {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
align-items: center;
|
|
|
|
&-btn-box {
|
|
display: inline-block;
|
|
|
|
.tree-operate-node-btn {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
&-btn-box-hide {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
&-btn {
|
|
width: 24px;
|
|
height: 24px;
|
|
background: rgba(213, 44, 38, 0.08);
|
|
border-radius: 2px 2px 2px 2px;
|
|
border: none;
|
|
margin-left: 4px;
|
|
padding: 0;
|
|
|
|
/deep/ .anticon {
|
|
margin-top: 2px;
|
|
color: #D52C26;
|
|
}
|
|
|
|
i {
|
|
color: @primary-color;
|
|
height: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.tree-search {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
/*抽屉样式修改*/
|
|
.custom-drawer-style {
|
|
height: 100%;
|
|
overflow: auto;
|
|
|
|
.ant-drawer-body {
|
|
height: calc(100% - 55px);
|
|
padding: 0;
|
|
}
|
|
|
|
&-scroll {
|
|
height: calc(100% - 61px);
|
|
overflow: auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
&-bottom-btn {
|
|
height: 60px;
|
|
padding: 12px 24px;
|
|
opacity: 1;
|
|
border-top: 1px solid #E5E6EB;
|
|
text-align: right;
|
|
|
|
.ant-btn {
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.ant-btn:first-child {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
/*详情样式start*/
|
|
.detail-page {
|
|
padding: 24px;
|
|
}
|
|
|
|
.detail-page-title {
|
|
font-size: 20px;
|
|
font-family: PingFang SC-Medium, PingFang SC, sans-serif;
|
|
color: #1D2129;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.detail-page-part {
|
|
border-radius: 8px;
|
|
border: 1px solid #E5E6EB;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.detail-page-part-title {
|
|
height: 56px;
|
|
background: rgba(245, 245, 245, 0.6);
|
|
border-radius: 8px 8px 0 0;
|
|
opacity: 1;
|
|
border-bottom: 1px solid #E5E6EB;
|
|
padding: 0 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.detail-page-part-title > span {
|
|
font-size: 16px;
|
|
font-family: PingFang SC-Medium, PingFang SC, sans-serif;
|
|
font-weight: 550;
|
|
color: #1D2129;
|
|
}
|
|
|
|
.detail-page-part-title-operate-box {
|
|
.ant-btn > .anticon + span {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.ant-btn > .iconfont + span {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.ant-btn > .iconfont {
|
|
height: 20px;
|
|
}
|
|
}
|
|
|
|
.detail-page-part-form {
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.detail-page-part-form-item {
|
|
width: calc((100% - 32px) / 3);
|
|
display: flex;
|
|
margin: 0 16px 16px 0;
|
|
|
|
label {
|
|
width: 7.5em;
|
|
font-size: 16px;
|
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
|
font-weight: 400;
|
|
color: #86909C;
|
|
}
|
|
|
|
span {
|
|
word-break: break-all;
|
|
font-size: 16px;
|
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
|
color: #1D2129;
|
|
flex: 1;
|
|
width: 0;
|
|
}
|
|
}
|
|
|
|
.detail-page-part-form-item:nth-child(3n) {
|
|
margin-right: 0;
|
|
}
|
|
|
|
/deep/ .detail-page-part-form-item {
|
|
width: calc((100% - 32px) / 3);
|
|
display: flex;
|
|
margin: 0 16px 16px 0;
|
|
|
|
label {
|
|
width: 40%;
|
|
font-size: 16px;
|
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
|
font-weight: 400;
|
|
color: #86909C;
|
|
}
|
|
|
|
span {
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
font-size: 16px;
|
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
|
color: #1D2129;
|
|
}
|
|
}
|
|
|
|
/deep/ .detail-page-part-form-item:nth-child(3n) {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.detail-page-process-manuscript {
|
|
padding: 20px;
|
|
|
|
&-item {
|
|
padding: 20px 0;
|
|
border-bottom: 1px solid #E5E6EB;
|
|
}
|
|
|
|
&-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
&-title {
|
|
font-size: 16px;
|
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
|
color: #86909C;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
&-file {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
&-file:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&-file-info {
|
|
display: flex;
|
|
align-items: center;
|
|
color: @primary-color;
|
|
cursor: pointer;
|
|
flex: 1;
|
|
width: 0;
|
|
}
|
|
|
|
&-file-info > .anticon {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
&-file-name {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
flex: 1;
|
|
width: 0;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
&-file-operate {
|
|
.ant-btn > .anticon + span, .ant-btn > .iconfont + span {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.ant-btn:first-child {
|
|
margin-left: 15px;
|
|
}
|
|
}
|
|
}
|
|
|
|
/*详情样式end*/
|