Commit 3d0676a5 by zhaochengxiang

参数调整

parent 9cecb262
...@@ -199,27 +199,41 @@ class Dashboard extends Component { ...@@ -199,27 +199,41 @@ class Dashboard extends Component {
}); });
this.setState({ loadingOrder: true}, () => { this.setState({ loadingOrder: true}, () => {
PostJSON("/data/json/queryByCriteria",{ payload: { PostJSON("/data/json/queryByCriteria",{
"userName":"root", payload: {
"tableModelId":"5e967f53ed72724be6c0bbe8", "tableModelId":"60f97f82ed72725de379586d",
"whereCriterias":[{"operator":"eq","parameter":"lic_no","values":[_custId]}], "whereCriterias":[{"operator":"eq","parameter":"lic_no","values":[_custId]}],
"orderByCriterias":[{"order":"DESC","parameter":"order_num"}], "orderByCriterias":[{"order":"DESC","parameter":"order_num"}],
"pageNo":"1", "pageNo":"1",
"pageSize":"10" "pageSize":"10"
}}).then(function(data) { },
cfg: {
headers: {
'Cache-Control': 'no-cache,no-store,must-revalidate,max-age=-1,private',
'Authorization': 'Basic cDUyMDIxNDpkYXRhU2hhcmluZ0AxMjM='
}
}
}).then(function(data) {
this.setState({ loadingOrder: false, orderData: data.data||[] }); this.setState({ loadingOrder: false, orderData: data.data||[] });
}.bind(this)); }.bind(this));
}); });
this.setState({ loadingTrend: true}, () => { this.setState({ loadingTrend: true}, () => {
PostJSON("/data/json/queryByCriteria",{ payload: { PostJSON("/data/json/queryByCriteria",{
"userName":"root", payload: {
"tableModelId":"5e9feb08abc30a63724d8eb9", "tableModelId":"60f97f82ed72725de379586e",
"whereCriterias":[{"operator":"eq","parameter":"lic_no","values":[_custId]}], "whereCriterias":[{"operator":"eq","parameter":"lic_no","values":[_custId]}],
"orderByCriterias":[{"order":"DESC","parameter":"dt"}], "orderByCriterias":[{"order":"DESC","parameter":"dt"}],
"pageNo":"1", "pageNo":"1",
"pageSize":"3" "pageSize":"3"
}}).then(function(data) { },
cfg: {
headers: {
'Cache-Control': 'no-cache,no-store,must-revalidate,max-age=-1,private',
'Authorization': 'Basic cDUyMDIxNDpkYXRhU2hhcmluZ0AxMjM='
}
}
}).then(function(data) {
this.setState({ loadingTrend: false, trendData: (data.data||[]).reverse() },() => { this.setState({ loadingTrend: false, trendData: (data.data||[]).reverse() },() => {
this.handleTrendChange(curTrendKey); this.handleTrendChange(curTrendKey);
}); });
...@@ -286,19 +300,19 @@ class Dashboard extends Component { ...@@ -286,19 +300,19 @@ class Dashboard extends Component {
let series = []; let series = [];
let unit = ''; let unit = '';
trendData&&trendData.map((item,index) => { trendData&&trendData.map((item,index) => {
xAxis.push(item.dt); xAxis.push(item.DT);
if (value === '0') { if (value === '0') {
series.push(item.once_order_num||''); series.push(item.ONCE_ORDER_NUM||'');
unit = item.once_order_num_unit||''; unit = item.ONCE_ORDER_NUM_UNIT||'';
} else if (value === '1') { } else if (value === '1') {
series.push(item.month_order_s||''); series.push(item.MONTH_ORDER_S||'');
unit = item.month_order_s_unit||''; unit = item.MONTH_ORDER_S_UNIT||'';
} else if (value === '2') { } else if (value === '2') {
series.push(item.out_pro_wgt||''); series.push(item.OUT_PRO_WGT||'');
unit = item.out_pro_wgt_unit||''; unit = item.OUT_PRO_WGT_UNIT||'';
} else if (value === '3') { } else if (value === '3') {
series.push(item.month_utilization_rate||''); series.push(item.MONTH_UTILIZATION_RATE||'');
unit = item.month_utilization_rate_unit||''; unit = item.MONTH_UTILIZATION_RATE_UNIT||'';
} }
return item; return item;
...@@ -395,6 +409,10 @@ class Dashboard extends Component { ...@@ -395,6 +409,10 @@ class Dashboard extends Component {
<div>经营规模</div> <div>经营规模</div>
<div className="text-primary">{data.custSaleScope||''}</div> <div className="text-primary">{data.custSaleScope||''}</div>
</Col> </Col>
<Col md={12}>
<div>是否直送</div>
<div className="text-primary">{data.custIsInPoint||''}</div>
</Col>
</Row> </Row>
</> </>
) )
......
...@@ -209,27 +209,41 @@ class mDashboard extends Component { ...@@ -209,27 +209,41 @@ class mDashboard extends Component {
}); });
this.setState({ loadingOrder: true}, () => { this.setState({ loadingOrder: true}, () => {
PostJSON("/data/json/queryByCriteria",{ payload: { PostJSON("/data/json/queryByCriteria",{
"userName":"root", payload: {
"tableModelId":"5e967f53ed72724be6c0bbe8", "tableModelId":"60f97f82ed72725de379586d",
"whereCriterias":[{"operator":"eq","parameter":"lic_no","values":[_custId]}], "whereCriterias":[{"operator":"eq","parameter":"lic_no","values":[_custId]}],
"orderByCriterias":[{"order":"DESC","parameter":"order_num"}], "orderByCriterias":[{"order":"DESC","parameter":"order_num"}],
"pageNo":"1", "pageNo":"1",
"pageSize":"10" "pageSize":"10"
}}).then(function(data) { },
cfg: {
headers: {
'Cache-Control': 'no-cache,no-store,must-revalidate,max-age=-1,private',
'Authorization': 'Basic cDUyMDIxNDpkYXRhU2hhcmluZ0AxMjM='
}
}
}).then(function(data) {
this.setState({ loadingOrder: false, orderData: data.data||[] }); this.setState({ loadingOrder: false, orderData: data.data||[] });
}.bind(this)); }.bind(this));
}); });
this.setState({ loadingTrend: true}, () => { this.setState({ loadingTrend: true}, () => {
PostJSON("/data/json/queryByCriteria",{ payload: { PostJSON("/data/json/queryByCriteria",{
"userName":"root", payload: {
"tableModelId":"5e9feb08abc30a63724d8eb9", "tableModelId":"60f97f82ed72725de379586e",
"whereCriterias":[{"operator":"eq","parameter":"lic_no","values":[_custId]}], "whereCriterias":[{"operator":"eq","parameter":"lic_no","values":[_custId]}],
"orderByCriterias":[{"order":"DESC","parameter":"dt"}], "orderByCriterias":[{"order":"DESC","parameter":"dt"}],
"pageNo":"1", "pageNo":"1",
"pageSize":"3" "pageSize":"3"
}}).then(function(data) { },
cfg: {
headers: {
'Cache-Control': 'no-cache,no-store,must-revalidate,max-age=-1,private',
'Authorization': 'Basic cDUyMDIxNDpkYXRhU2hhcmluZ0AxMjM='
}
}
}).then(function(data) {
this.setState({ loadingTrend: false, trendData: (data.data||[]).reverse() },() => { this.setState({ loadingTrend: false, trendData: (data.data||[]).reverse() },() => {
this.handleTrendChange(curTrendKey); this.handleTrendChange(curTrendKey);
}); });
...@@ -296,19 +310,19 @@ class mDashboard extends Component { ...@@ -296,19 +310,19 @@ class mDashboard extends Component {
let series = []; let series = [];
let unit = ''; let unit = '';
trendData&&trendData.map((item,index) => { trendData&&trendData.map((item,index) => {
xAxis.push(item.dt); xAxis.push(item.DT);
if (value === '0') { if (value === '0') {
series.push(item.once_order_num||''); series.push(item.ONCE_ORDER_NUM||'');
unit = item.once_order_num_unit||''; unit = item.ONCE_ORDER_NUM_UNIT||'';
} else if (value === '1') { } else if (value === '1') {
series.push(item.month_order_s||''); series.push(item.MONTH_ORDER_S||'');
unit = item.month_order_s_unit||''; unit = item.MONTH_ORDER_S_UNIT||'';
} else if (value === '2') { } else if (value === '2') {
series.push(item.out_pro_wgt||''); series.push(item.OUT_PRO_WGT||'');
unit = item.out_pro_wgt_unit||''; unit = item.OUT_PRO_WGT_UNIT||'';
} else if (value === '3') { } else if (value === '3') {
series.push(item.month_utilization_rate||''); series.push(item.MONTH_UTILIZATION_RATE||'');
unit = item.month_utilization_rate_unit||''; unit = item.MONTH_UTILIZATION_RATE_UNIT||'';
} }
return item; return item;
...@@ -405,6 +419,10 @@ class mDashboard extends Component { ...@@ -405,6 +419,10 @@ class mDashboard extends Component {
<div>经营规模</div> <div>经营规模</div>
<div className="text-primary">{data.custSaleScope||''}</div> <div className="text-primary">{data.custSaleScope||''}</div>
</Col> </Col>
<Col md={12}>
<div>是否直送</div>
<div className="text-primary">{data.custIsInPoint||''}</div>
</Col>
</Row> </Row>
</> </>
) )
......
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