style changed

VRTKSSUP-229
Осьмаков Денис 5 years ago
parent 40a53f7d99
commit 67aff2a3ad
  1. 2
      src/webparts/summaryWebPart/components/Structure/Structure.tsx
  2. 1
      src/webparts/summaryWebPart/components/SummaryGlobalComponent/SummaryGlobalComponent.module.scss
  3. 6
      src/webparts/summaryWebPart/components/SummaryGlobalComponent/SummaryGlobalComponent.tsx
  4. 4
      src/webparts/summaryWebPart/components/SummaryWebPart.module.scss
  5. 4
      src/webparts/summaryWebPart/components/SummaryWebPart.tsx
  6. 3
      src/webparts/summaryWebPart/components/TrafficLight/TrafficLight.tsx

@ -86,6 +86,7 @@ export default class TrafficLight extends React.Component<IComponentProps, IComp
return ( return (
<div style={{display: 'flex', flexDirection: 'column',marginTop:'15px'}}> <div style={{display: 'flex', flexDirection: 'column',marginTop:'15px'}}>
<h1 style={{textAlign: 'center', fontSize: '13px', color: '#666',textTransform: 'uppercase'}}>Основные исполнители</h1> <h1 style={{textAlign: 'center', fontSize: '13px', color: '#666',textTransform: 'uppercase'}}>Основные исполнители</h1>
<div style={{ background: 'rgb(243, 243, 243)', border: '1px solid #ccc', padding: '2px' }}>
<DetailsList <DetailsList
onRenderDetailsHeader={this.renderHeader} onRenderDetailsHeader={this.renderHeader}
items={items} items={items}
@ -110,6 +111,7 @@ export default class TrafficLight extends React.Component<IComponentProps, IComp
selectionMode={SelectionMode.none} selectionMode={SelectionMode.none}
className={styles.listElement} className={styles.listElement}
/> />
</div>
</div> </div>
); );

@ -46,4 +46,5 @@
max-width: 200px; max-width: 200px;
font-size: 13px !important; font-size: 13px !important;
overflow-x: hidden !important; overflow-x: hidden !important;
background: rgb(243,243,243);
} }

@ -24,27 +24,33 @@ export default class SummaryGlobalComponent extends React.Component<IComponentPr
<div className={styles.SummaryPageContainer}> <div className={styles.SummaryPageContainer}>
<div className={styles.SummaryPageColumnOne}> <div className={styles.SummaryPageColumnOne}>
<h1 className={styles.Title} style={{ fontSize: '13px' }}>СОСТОЯНИЕ ПРОЕКТА</h1> <h1 className={styles.Title} style={{ fontSize: '13px' }}>СОСТОЯНИЕ ПРОЕКТА</h1>
<div style={{ background: 'rgb(243, 243, 243)', border: '1px solid #ccc', padding: '2px'}}>
<TrafficLight <TrafficLight
statuses={data.Status} statuses={data.Status}
taskStats={data.TaskStats} taskStats={data.TaskStats}
dateInfo={data.HighLvlPrjInfo} dateInfo={data.HighLvlPrjInfo}
/> />
<TaskStatusesChart taskStats={data.TaskStats} /> <TaskStatusesChart taskStats={data.TaskStats} />
</div>
<Structure structureData={data.MainExec} /> <Structure structureData={data.MainExec} />
</div> </div>
<div className={styles.SummaryPageColumnTwo}> <div className={styles.SummaryPageColumnTwo}>
<h1 className={styles.Title} style={{ fontSize: '13px' }}>ЗАДАЧИ С ОТКЛОНЕНИЕМ</h1> <h1 className={styles.Title} style={{ fontSize: '13px' }}>ЗАДАЧИ С ОТКЛОНЕНИЕМ</h1>
<div style={{ background: 'rgb(243, 243, 243)', border: '1px solid #ccc', padding: '2px', width: '103%' }}>
<RejectTasks structureData={data.DeviationTasks} /> <RejectTasks structureData={data.DeviationTasks} />
</div> </div>
</div>
<div className={styles.SummaryPageColumnThree}> <div className={styles.SummaryPageColumnThree}>
<h1 className={styles.Title} style={{fontSize: '13px'}}>ОБЩИЕ СВЕДЕНИЯ</h1> <h1 className={styles.Title} style={{fontSize: '13px'}}>ОБЩИЕ СВЕДЕНИЯ</h1>
<div style={{ background: 'rgb(243, 243, 243)', border: '1px solid #ccc', padding: '2px' }}>
<SummaryContainer <SummaryContainer
order={rowsOrder} order={rowsOrder}
context={context} context={context}
/> />
</div> </div>
</div>
</div> </div>

@ -1,6 +1,8 @@
.listElement{ .listElement{
font-size: 13px !important; font-size: 13px !important;
.ms-DetailsHeader-cellName{ background: rgb(243,243,243) !important;
.ms-DetailsHeader-cell{
font-size: 13px !important; font-size: 13px !important;
background: rgb(243,243,243) !important;
} }
} }

@ -51,7 +51,7 @@ export default class SummaryWebPart extends React.Component<ISummaryWebPartProps
document.body.appendChild(scripts); document.body.appendChild(scripts);
let relUrl = context.pageContext.web.serverRelativeUrl; let relUrl = context.pageContext.web.serverRelativeUrl;
let projectCode = relUrl ? relUrl.split('/')[relUrl.split('/').length - 1] : ''; /* 'NEW_UNI_002' */ let projectCode = relUrl ? relUrl.split('/')[relUrl.split('/').length - 1] : ''; /* 'UNI_UNI_002' */
let web = new Web('http://portal.vertex.spb.ru/PMIS'); let web = new Web('http://portal.vertex.spb.ru/PMIS');
let thisWeb = new Web('http://portal.vertex.spb.ru/PMIS/' + projectCode); let thisWeb = new Web('http://portal.vertex.spb.ru/PMIS/' + projectCode);
@ -109,7 +109,7 @@ export default class SummaryWebPart extends React.Component<ISummaryWebPartProps
style={{ fontSize: '13px', marginRight: '10px', marginLeft: '10px'}} style={{ fontSize: '13px', marginRight: '10px', marginLeft: '10px'}}
/>} />}
<PrimaryButton <PrimaryButton
text="Просмотреть все свойства" text="Просмотр карточки проекта"
onClick={() => this.relocate('DispForm')} onClick={() => this.relocate('DispForm')}
style={{ fontSize: '13px' }} style={{ fontSize: '13px' }}
/> />

@ -53,7 +53,7 @@ export default class TrafficLight extends React.Component<IComponentProps, {}> {
result.push( result.push(
{ {
key: index, key: index,
fieldName: "Статус по сроку", fieldName: "% выполнения",
status: statuses.percCompl status: statuses.percCompl
}); });
} }
@ -65,6 +65,7 @@ export default class TrafficLight extends React.Component<IComponentProps, {}> {
<DetailsHeader <DetailsHeader
{...detailsHeaderProps} {...detailsHeaderProps}
onRenderColumnHeaderTooltip={this.renderCustomHeaderTooltip} onRenderColumnHeaderTooltip={this.renderCustomHeaderTooltip}
style={{background: 'rgb(243,243,243)'}}
/> />
); );
} }

Loading…
Cancel
Save