Commit 98fd6a11 authored by 单奇雲's avatar 单奇雲

样式

parent d812474a
...@@ -19,12 +19,12 @@ export const FscSerUrl = { ...@@ -19,12 +19,12 @@ export const FscSerUrl = {
view3dInitUrl: completePrefix(view3dURI, 'api/view3d/init3dViewNode?type={type}&riskSourceId={riskSourceId}'), // 初始化三维视图 get view3dInitUrl: completePrefix(view3dURI, 'api/view3d/init3dViewNode?type={type}&riskSourceId={riskSourceId}'), // 初始化三维视图 get
view3dInitLinkUrl: completePrefix(view3dURI, 'view3d/initViewLink'), // 初始化三维视图 获取link get view3dInitLinkUrl: completePrefix(view3dURI, 'view3d/initViewLink'), // 初始化三维视图 获取link get
searchRegionListUrl: completePrefix(patrolURI, 'api/group/queryDept'), //右侧菜单-检索-区域集合 searchRegionListUrl: completePrefix(patrolURI, 'api/group/queryDept'), //右侧菜单-检索-区域集合
searchViewUrl: completePrefix(view3dURI, 'api/view3d/retrieve/all?inputText={inputText}&dataLevel={dataLevel}&orgCode={orgCode}&nodeState={nodeState}&type={type}&current={page}&pageSize={pageSize}&routeName={routeName}&protectObjName={protectObjName}'), // 右侧菜单-检索 searchViewUrl: completePrefix(view3dURI, 'api/view3d/retrieve/all'), // 右侧菜单-检索
searchLinkUrl: completePrefix(view3dURI, 'view3d/link/searchView?linkId={linkId}'), // 根据单条巡检线 检索节点与线路 get searchLinkUrl: completePrefix(view3dURI, 'view3d/link/searchView?linkId={linkId}'), // 根据单条巡检线 检索节点与线路 get
monitorRegionListUrl: completePrefix(view3dURI, 'monitorRegionListUrl'), //右侧菜单-监控-区域集合 monitorRegionListUrl: completePrefix(view3dURI, 'monitorRegionListUrl'), //右侧菜单-监控-区域集合
monitorUrl: completePrefix(view3dURI, 'monitorUrl?current={page}&pageSize={size}'), //右侧菜单-监控 monitorUrl: completePrefix(view3dURI, 'monitorUrl?current={page}&pageSize={size}'), //右侧菜单-监控
recordStatusListUrl: completePrefix(patrolURI, 'api/spc/check/state'), //右侧菜单-记录-状态集合 recordStatusListUrl: completePrefix(patrolURI, 'api/spc/check/state'), //右侧菜单-记录-状态集合
recordUrl: completePrefix(patrolURI, 'api/check/list?current={page}&pageSize={size}'), //右侧菜单-记录 recordUrl: completePrefix(patrolURI, 'api/check/list?pageNumber={page}&pageSize={size}'), //右侧菜单-记录
trajectoryPersonListUrl: completePrefix(patrolURI, 'api/spc/queryConditions/init/{type}'), //右侧菜单-轨迹-人员集合 trajectoryPersonListUrl: completePrefix(patrolURI, 'api/spc/queryConditions/init/{type}'), //右侧菜单-轨迹-人员集合
trajectoryUrl: completePrefix(patrolURI, 'api/spc/trajectory/list?current={page}&pageSize={size}'), //右侧菜单-轨迹 trajectoryUrl: completePrefix(patrolURI, 'api/spc/trajectory/list?current={page}&pageSize={size}'), //右侧菜单-轨迹
msgCategoryListUrl: completePrefix(view3dURI, 'msgCategoryListUrl'), //右侧菜单-消息-类别集合 msgCategoryListUrl: completePrefix(view3dURI, 'msgCategoryListUrl'), //右侧菜单-消息-类别集合
......
...@@ -52,7 +52,7 @@ export const searchRegionListAction = () => { ...@@ -52,7 +52,7 @@ export const searchRegionListAction = () => {
* 右侧菜单-检索 * 右侧菜单-检索
*/ */
export const searchAction = (inputText, dataLevel, orgCode, nodeState, protectObjName, routeName, type, page, pageSize) => { export const searchAction = (inputText, dataLevel, orgCode, nodeState, protectObjName, routeName, type, page, pageSize) => {
return commonGet(formatUrl(FscSerUrl.searchViewUrl, { inputText, dataLevel, orgCode, nodeState, protectObjName, routeName, type, page, pageSize })); return commonPost(FscSerUrl.searchViewUrl, { inputText, dataLevel, orgCode, nodeState, protectObjName, routeName, type, current: page, pageSize });
}; };
/** /**
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
#app>div{ #app>div{
height: 100%; height: 100%;
overflow: hidden;
>div{ >div{
height: 100%; height: 100%;
} }
......
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
background-color: #13428f; background-color: #13428f;
border-radius: 5px; border-radius: 5px;
float: left; float: left;
padding: 0 2em 0 0.6em !important;
} }
.params-input-img{ .params-input-img{
...@@ -101,6 +102,7 @@ ...@@ -101,6 +102,7 @@
width: 28px; width: 28px;
height: 28px; height: 28px;
right: 14px; right: 14px;
cursor: pointer;
} }
.params-input-img1{ .params-input-img1{
...@@ -108,6 +110,7 @@ ...@@ -108,6 +110,7 @@
width: 28px; width: 28px;
height: 28px; height: 28px;
right: 160px; right: 160px;
cursor: pointer;
} }
// .params-datePicker{ // .params-datePicker{
.ant-input{ .ant-input{
......
...@@ -14,15 +14,14 @@ ...@@ -14,15 +14,14 @@
flex-direction: column; flex-direction: column;
.equipStatusList { .equipStatusList {
padding-left: 97px; margin-left: 87px;
padding-top: 10px; margin-top: 13px;
flex-grow: 1; height: 21.7%;
overflow-y: auto; overflow-y: auto;
.title-child{ .title-child{
width: 100%; width: 100%;
height: 55px; margin-bottom: 5px;
//margin-top: 5px;
} }
.title-date{ .title-date{
height: 20px; height: 20px;
...@@ -35,12 +34,26 @@ ...@@ -35,12 +34,26 @@
::-webkit-scrollbar { ::-webkit-scrollbar {
/* 隐藏滚轮 */ height: 3px;
width: 3px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
background: rgba(255, 0, 0, 0.466);
}
::-webkit-scrollbar-track {
border-radius:10px;
background: #0000006e;
}
::-webkit-scrollbar-button{
display: none;
}
::-webkit-scrollbar-corner{
display: none; display: none;
} }
.safetyExecuteList{ .safetyExecuteList{
flex: 2; height: 45%;
margin-left: 37px; margin-left: 37px;
.up{ .up{
height: 90px; height: 90px;
...@@ -73,12 +86,11 @@ ...@@ -73,12 +86,11 @@
} }
} }
.down{ .down{
width: 98%; height: calc(100% - 90px);
height: 245px; margin-left: 20px;
background-image: url('/mods/components/3dviewConvertor/assets/panoramic/main_bg_warning.png'); background-image: url('/mods/components/3dviewConvertor/assets/panoramic/main_bg_warning.png');
background-repeat: repeat; background-repeat: repeat;
background-size: 100% 100%; background-size: 100% 100%;
margin-top: 10px;
.title{ .title{
text-align: left; text-align: left;
...@@ -102,7 +114,7 @@ ...@@ -102,7 +114,7 @@
position: absolute; position: absolute;
width: 70px; width: 70px;
margin-top: -5px; margin-top: -5px;
margin-left: 60px; margin-left: 36px;
font-size: 16px; font-size: 16px;
color: rgba(240,223,45,1); color: rgba(240,223,45,1);
} }
...@@ -116,8 +128,9 @@ ...@@ -116,8 +128,9 @@
} }
.content{ .content{
padding-left: 30px; padding: 0px 30px;
width: 90%; height: calc(100% - 60px);
overflow: auto;
span{ span{
margin-top: 3px; margin-top: 3px;
...@@ -126,8 +139,8 @@ ...@@ -126,8 +139,8 @@
} }
.title-child{ .title-child{
height: 35px;
border-bottom: 1px solid rgba(196,86,86,0.3); border-bottom: 1px solid rgba(196,86,86,0.3);
padding-top: 7px;
} }
} }
} }
...@@ -144,7 +157,7 @@ ...@@ -144,7 +157,7 @@
display: flex; display: flex;
margin-left: 37px; margin-left: 37px;
padding-top: 65px; padding-top: 65px;
flex: 1; height: 33.3%;
.safetyIndex-icon { .safetyIndex-icon {
width: 36px; width: 36px;
...@@ -213,7 +226,6 @@ ...@@ -213,7 +226,6 @@
position: absolute; position: absolute;
height: 100%; height: 100%;
width: 355px; width: 355px;
//float: right;
padding-top: 40px; padding-top: 40px;
right: 0; right: 0;
top: 0; top: 0;
...@@ -506,7 +518,7 @@ ...@@ -506,7 +518,7 @@
height: 88%; height: 88%;
margin-top: 5px; margin-top: 5px;
text-align: center; text-align: center;
flex: 1; width: 33.3%;
&-img { &-img {
height: 30px; height: 30px;
...@@ -520,12 +532,13 @@ ...@@ -520,12 +532,13 @@
.model-content { .model-content {
height: calc(100% - 60px); height: calc(100% - 60px);
padding-left: 10px; padding: 0 17px;
margin-left: 5px;
margin-right: 3px;
overflow: auto; overflow: auto;
.content-div { .content-div {
min-width: 80px; min-width: 80px;
min-height: 120px;
padding-top: 20px; padding-top: 20px;
text-align: left; text-align: left;
...@@ -547,6 +560,11 @@ ...@@ -547,6 +560,11 @@
.row { .row {
display: inline-block; display: inline-block;
height: 28px; height: 28px;
>span{
display: block;
white-space: nowrap;
margin-right: 15px;
}
} }
.date { .date {
......
...@@ -52,8 +52,8 @@ export default class ModelContent extends Component { ...@@ -52,8 +52,8 @@ export default class ModelContent extends Component {
{(content || []).map(itemA => { {(content || []).map(itemA => {
return ( return (
<div className='row'> <div className='row'>
<span>{itemA.name}</span> <span>{itemA.name}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{this.formatData(itemA.changeDate)}</span>
<span className='date'>{this.formatData(itemA.changeDate)}</span> {/* <span className='date'>{this.formatData(itemA.changeDate)}</span> */}
</div> </div>
); );
})} })}
......
...@@ -103,7 +103,6 @@ class SearchPane extends Component { ...@@ -103,7 +103,6 @@ class SearchPane extends Component {
dataList: [], dataList: [],
retrieveType: undefined, retrieveType: undefined,
totalCount: 0, totalCount: 0,
filter: [],
msgDataList: [], msgDataList: [],
recordDataList: [], recordDataList: [],
trajectoryDataList: [] trajectoryDataList: []
...@@ -156,7 +155,7 @@ class SearchPane extends Component { ...@@ -156,7 +155,7 @@ class SearchPane extends Component {
}else if(value === 'trajectory'){ }else if(value === 'trajectory'){
this.fetchTrajectoryData() this.fetchTrajectoryData()
} }
this.setState({ activeKey:value }); this.setState({ activeKey:value ,filter: []});
} }
getPanelHeight = () => { getPanelHeight = () => {
......
...@@ -54,6 +54,18 @@ class paramsHeader extends Component { ...@@ -54,6 +54,18 @@ class paramsHeader extends Component {
recordStatusListAction().then(d => this.setState({ statusList: d || [] })); recordStatusListAction().then(d => this.setState({ statusList: d || [] }));
} }
componentWillReceiveProps(nextProps) {
if (this.props.activeKey !== nextProps.activeKey){
this.setState({
textValue: undefined,
msgTextValue: undefined,
recordTextValue: undefined,
filter: [],
recordFilter: [],
})
}
}
onChange = (e) => { onChange = (e) => {
this.setState({ value: e.target.value }); this.setState({ value: e.target.value });
} }
...@@ -73,12 +85,6 @@ class paramsHeader extends Component { ...@@ -73,12 +85,6 @@ class paramsHeader extends Component {
onPamarmsChange = (name,value) => { onPamarmsChange = (name,value) => {
let { filter } = this.state; let { filter } = this.state;
if(name === 'inputText'){
this.setState({ textValue: value });
}
if(name === 'title'){
this.setState({ msgTextValue: value });
}
if(name === 'time'){ if(name === 'time'){
value = value == null ? '' : moment(value).format("YYYY-MM-DD"); value = value == null ? '' : moment(value).format("YYYY-MM-DD");
} }
...@@ -93,21 +99,17 @@ class paramsHeader extends Component { ...@@ -93,21 +99,17 @@ class paramsHeader extends Component {
} else { } else {
filter = filter.filter(e => e.name !== name); filter = filter.filter(e => e.name !== name);
} }
this.setState({ filter }, this.props.paramsOnChange(filter)); if(name === 'inputText'){
this.setState({ textValue: value,filter });
}else if(name === 'title'){
this.setState({ msgTextValue: value,filter });
}else{
this.setState({ filter }, this.props.paramsOnChange(filter));
}
} }
paramsTypeonChange = (name,value,type,key) => { paramsTypeonChange = (name,value,type,key) => {
let {recordFilter} = this.state; let {recordFilter} = this.state;
if(name === 'contingencyName'){
this.setState({recordTextValue:value})
}
if(name === 'pointName'){
if(key === 'record'){
this.setState({ recordTextValue:value });
}else{
this.setState({ trajectoryTextValue: value });
}
}
if(name === 'checkTime'){ if(name === 'checkTime'){
value = value == null ? '' : moment(value).format("YYYY-MM-DD"); value = value == null ? '' : moment(value).format("YYYY-MM-DD");
} }
...@@ -123,11 +125,22 @@ class paramsHeader extends Component { ...@@ -123,11 +125,22 @@ class paramsHeader extends Component {
} else { } else {
recordFilter = recordFilter.filter(e => e.name !== name); recordFilter = recordFilter.filter(e => e.name !== name);
} }
this.setState({ recordFilter }, this.props.paramsOnChange(recordFilter)); debugger;
if(name === 'contingencyName'){
this.setState({recordTextValue:value,recordFilter})
}else if(name === 'pointName'){
if(key === 'record'){
this.setState({ recordTextValue:value,recordFilter });
}else{
this.setState({ trajectoryTextValue: value,recordFilter });
}
}else{//不为input时直接查询
this.setState({ recordFilter }, this.props.paramsOnChange(recordFilter));
}
} }
getSearchContent = () => { getSearchContent = () => {
const { showRiskLevel, showImpEquiList, impEquiList } = this.state; const { showRiskLevel, showImpEquiList, impEquiList,filter } = this.state;
let levelStyle = { width: '20%', minWidth: '15%', height: '28px', marginRight:'14px' }; let levelStyle = { width: '20%', minWidth: '15%', height: '28px', marginRight:'14px' };
let implStyle = { width: '35%', minWidth: '20%', height: '28px', marginRight:'14px' }; let implStyle = { width: '35%', minWidth: '20%', height: '28px', marginRight:'14px' };
return (<Group style={groupStyle}> return (<Group style={groupStyle}>
...@@ -146,7 +159,7 @@ class paramsHeader extends Component { ...@@ -146,7 +159,7 @@ class paramsHeader extends Component {
onChange={(e) => this.onPamarmsChange('inputText',e.target.value)} onChange={(e) => this.onPamarmsChange('inputText',e.target.value)}
placeholder="输入关键字" placeholder="输入关键字"
/> />
<img className="params-input-img" src={imgStatic.datapane.searchPane} alt="" /> <img className="params-input-img" src={imgStatic.datapane.searchPane} alt="" onClick={() => this.props.paramsOnChange(filter)}/>
</div> </div>
{ {
showRiskLevel && showRiskLevel &&
...@@ -175,7 +188,7 @@ class paramsHeader extends Component { ...@@ -175,7 +188,7 @@ class paramsHeader extends Component {
} }
getMessageContent = () => { getMessageContent = () => {
const { filter } = this.state;
return (<Group style={groupStyle}> return (<Group style={groupStyle}>
<Select <Select
key="messageType" key="messageType"
...@@ -192,7 +205,7 @@ class paramsHeader extends Component { ...@@ -192,7 +205,7 @@ class paramsHeader extends Component {
onChange={(e) => this.onPamarmsChange('title',e.target.value)} onChange={(e) => this.onPamarmsChange('title',e.target.value)}
placeholder="输入关键字" placeholder="输入关键字"
/> />
<img className="params-input-img1" src={imgStatic.datapane.searchPane} alt="" /> <img className="params-input-img1" src={imgStatic.datapane.searchPane} alt="" onClick={() => this.props.paramsOnChange(filter)}/>
</div> </div>
<DatePicker <DatePicker
key="time" key="time"
...@@ -208,7 +221,7 @@ class paramsHeader extends Component { ...@@ -208,7 +221,7 @@ class paramsHeader extends Component {
} }
getRecordContent = () =>{ getRecordContent = () =>{
const { impEquiList } = this.state; const { recordFilter } = this.state;
return (<Group style={groupStyle}> return (<Group style={groupStyle}>
{/* <Select {/* <Select
key="recordImpl" key="recordImpl"
...@@ -225,7 +238,7 @@ class paramsHeader extends Component { ...@@ -225,7 +238,7 @@ class paramsHeader extends Component {
onChange={(e) => this.paramsTypeonChange('pointName', e.target.value, SingleQueryEnum.LIKE,'record')} onChange={(e) => this.paramsTypeonChange('pointName', e.target.value, SingleQueryEnum.LIKE,'record')}
placeholder="输入关键字" placeholder="输入关键字"
/> />
<img className="params-input-img1" src={imgStatic.datapane.searchPane} alt="" /> <img className="params-input-img1" src={imgStatic.datapane.searchPane} alt="" onClick={()=> this.props.paramsOnChange(recordFilter)}/>
</div> </div>
<DatePicker <DatePicker
key="createTime" key="createTime"
...@@ -239,7 +252,7 @@ class paramsHeader extends Component { ...@@ -239,7 +252,7 @@ class paramsHeader extends Component {
} }
getTrajectoryContent = () => { getTrajectoryContent = () => {
const { statusList } = this.state; const { statusList,recordFilter } = this.state;
return (<Group style={groupStyle}> return (<Group style={groupStyle}>
<Select <Select
key="statusSel" key="statusSel"
...@@ -256,7 +269,7 @@ class paramsHeader extends Component { ...@@ -256,7 +269,7 @@ class paramsHeader extends Component {
onChange={(e) => this.paramsTypeonChange('pointName', e.target.value, SingleQueryEnum.LIKE)} onChange={(e) => this.paramsTypeonChange('pointName', e.target.value, SingleQueryEnum.LIKE)}
placeholder="输入关键字" placeholder="输入关键字"
/> />
<img className="params-input-img1" src={imgStatic.datapane.searchPane} alt="" /> <img className="params-input-img1" src={imgStatic.datapane.searchPane} alt="" onClick={()=>this.props.paramsOnChange(recordFilter)}/>
</div> </div>
<DatePicker <DatePicker
key="createTime" key="createTime"
......
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