@modal-content-height: calc(100vh - 100px); // 弹窗内容高度 @braft-height: 350px; // 富文本框高度 @level-color-1: #d50000; // 严重 @level-color-2: #ff9800; // 紧急 @level-color-3: #2098ee; // 一般 @level-color-4: #009688; // 优化 // 通用样式 .workOrderSystem, .workOrderSystemDetail, .replyModal, .assignmentModal { padding: 20px; overflow-x: hidden; overflow-y: auto; :global { // form表单样式 .ant-form-item { margin-bottom: 15px; width: 100%; .ant-form-item-label { display: flex; justify-content: center; label { color: #4a495f !important; font-size: 14px !important; } } .ant-select { .ant-select-selector { min-height: 35px; .ant-select-selection-item { font-size: 14px; line-height: 32px; } .ant-select-selection-overflow-item { max-width: calc(100% - 4px); .ant-select-selection-item { height: 25px; line-height: 25px; } } .ant-select-selection-search { input { height: 35px; font-size: 14px; } span { font-size: 14px; } } .ant-select-selection-placeholder { font-size: 14px; line-height: 35px; } } } .ant-select-disabled { .ant-select-selector { .ant-select-selection-search { input { height: 33px; font-size: 14px; } } } } .ant-upload-list { max-height: 50px; max-width: 100%; overflow-x: auto; overflow-y: hidden; display: flex; .ant-upload-list-item-card-actions Button { opacity: 1; display: flex; align-items: center; justify-content: center; .anticon-delete { width: 12px; } } } .ant-btn { height: 32px; padding: 3px 15px; font-size: 14px; display: flex; align-items: center; justify-content: center; span[role='img'] { height: 16px; svg { width: 16px; height: 16px; } } } .ant-input-affix-wrapper { padding-top: 0; padding-bottom: 0; } .ant-picker { width: 100%; .ant-picker-input { height: 28px; input { font-size: 14px; } } } .ant-switch { scale: 1.2; } input[class*='ant-input'] { height: 33px; font-size: 14px; } } } // 富文本框样式 .braftEditor { height: @braft-height; background-color: #f6f6f6; border: 1px solid #d9d9d9; :global { .bf-content { height: calc(@braft-height - 94px); background-color: #fff; } } } .braftEditorReadOnly { height: auto; background-color: #f6f6f6; border: 1px solid #d9d9d9; :global { .bf-content { height: auto; background-color: #fff; } } } .detailBraftEditorReply { height: auto; width: calc(100% - 50px); margin-left: 50px; :global { .bf-content { height: auto; padding: 0; .public-DraftEditor-content, .public-DraftEditor-content>div { padding: 0; } } } } .formItemHalf { width: 50%; :global { .ant-form-item-label { align-items: center; flex: 0 0 25%; max-width: 25%; } .ant-form-item-control { flex: 0 0 75%; max-width: 75%; } } } .formItemAQuarter { width: 18%; :global { .ant-form-item-label { align-items: center; flex: 0 0 60%; max-width: 60%; } .ant-form-item-control { flex: 0 0 40%; max-width: 40%; } } } .formItemAQuarter1 { width: 25%; :global { .ant-form-item-label { align-items: center; flex: 0 0 50%; max-width: 50%; } .ant-form-item-control { flex: 0 0 50%; max-width: 50%; } } } .formItemBug { width: 14%; :global { .ant-form-item-label { align-items: center; flex: 0 0 55%; max-width: 55%; } .ant-form-item-control { flex: 0 0 45%; max-width: 45%; } // .ant-switch { // background: @level-color-3; // } // .ant-switch-checked { // background: @level-color-1; // } } } } .workOrderSystem { overflow: hidden; } // 居中布局 .flexCener { display: flex; align-items: center; justify-content: center; } // 悬浮按钮 .fixedBtns { display: flex; align-items: center; justify-content: center; position: absolute; width: calc(100% - 20px); bottom: 10px; z-index: 999; } // 自定义图标按钮 .iconBtn { display: flex; align-items: center; justify-content: center; :global { img { width: 16px; margin-right: 5px; } span[role='img'] { height: 16px; svg { width: 16px; height: 16px; } } } } // 附件图标 .annex { :global { .ant-form-item-label { background: url(../../../assets/annex.svg) no-repeat; background-position-x: 15%; background-position-y: 5px; background-size: 20px 20px; } } } // 工单新增弹窗 .workOrderSystem { height: @modal-content-height; display: flex; flex-wrap: wrap; :global { .ant-form-item:nth-child(1) { .ant-form-item-label { align-items: center; } } .ant-form-item:nth-child(n+2):nth-child(-n+5) { width: 50%; .ant-form-item-label { align-items: center; flex: 0 0 25%; max-width: 25%; } .ant-form-item-control { flex: 0 0 75%; max-width: 75%; } } .ant-form-item:nth-child(7), .ant-form-item:nth-child(9) { width: 18%; .ant-form-item-label { align-items: center; flex: 0 0 60%; max-width: 60%; } .ant-form-item-control { flex: 0 0 40%; max-width: 40%; } } .ant-form-item:nth-child(10), .ant-form-item:nth-child(11) { width: 25%; .ant-form-item-label { align-items: center; flex: 0 0 50%; max-width: 50%; } .ant-form-item-control { flex: 0 0 50%; max-width: 50%; } } } } // 优先级下拉 .sTypeSelect { :global { .ant-select-selection-item[title='严重'] { color: @level-color-1; } .ant-select-selection-item[title='紧急'] { color: @level-color-2; } .ant-select-selection-item[title='一般'] { color: @level-color-3; } .ant-select-selection-item[title='优化'] { color: @level-color-4; } } } .sTypedDropdown { :global { .ant-select-item-option:nth-child(1) { color: @level-color-1; } .ant-select-item-option:nth-child(2) { color: @level-color-2; } .ant-select-item-option:nth-child(3) { color: @level-color-3; } .ant-select-item-option:nth-child(4) { color: @level-color-4; } } } // 工单详情弹窗 .workOrderSystemDetail { height: @modal-content-height; display: flex; flex-wrap: wrap; .replyDiv { width: 100%; background: #f6f6f6; padding: 10px 0 0 10px; .replyTitle { font-size: 14px; } } } // 回复弹窗, 指派人弹窗 .replyModal:not(.antdV5), .assignmentModal:not(.antdV5) { :global { .ant-modal-body { padding: 20px !important; overflow: hidden; } } .replyBraftEditor { height: calc(70vh - 160px); background-color: #f6f6f6; border: 1px solid #d9d9d9; :global { .bf-content { height: calc(70vh - 254px); background-color: #fff; } } } }