|
@@ -36,6 +36,7 @@ class DepartmentStatistics extends Component{
|
|
dataIndex: "userCount",
|
|
dataIndex: "userCount",
|
|
key: "userCount",
|
|
key: "userCount",
|
|
className: 'tableRowStyle',
|
|
className: 'tableRowStyle',
|
|
|
|
+ width: 120,
|
|
render: (text, record) => {
|
|
render: (text, record) => {
|
|
return (
|
|
return (
|
|
<div
|
|
<div
|
|
@@ -60,6 +61,7 @@ class DepartmentStatistics extends Component{
|
|
dataIndex: "channelCount",
|
|
dataIndex: "channelCount",
|
|
key: "channelCount",
|
|
key: "channelCount",
|
|
className: 'tableRowStyle',
|
|
className: 'tableRowStyle',
|
|
|
|
+ width: 120,
|
|
render: (text, record) => {
|
|
render: (text, record) => {
|
|
return (
|
|
return (
|
|
<div
|
|
<div
|
|
@@ -84,6 +86,7 @@ class DepartmentStatistics extends Component{
|
|
dataIndex: "signCount",
|
|
dataIndex: "signCount",
|
|
key: "signCount",
|
|
key: "signCount",
|
|
className: 'tableRowStyle',
|
|
className: 'tableRowStyle',
|
|
|
|
+ width: 120,
|
|
render: (text, record) => {
|
|
render: (text, record) => {
|
|
return (
|
|
return (
|
|
<div
|
|
<div
|
|
@@ -108,6 +111,7 @@ class DepartmentStatistics extends Component{
|
|
dataIndex: "newCount",
|
|
dataIndex: "newCount",
|
|
key: "newCount",
|
|
key: "newCount",
|
|
className: 'tableRowStyle',
|
|
className: 'tableRowStyle',
|
|
|
|
+ width: 120,
|
|
render: (text, record) => {
|
|
render: (text, record) => {
|
|
return (
|
|
return (
|
|
<div
|
|
<div
|
|
@@ -132,6 +136,7 @@ class DepartmentStatistics extends Component{
|
|
dataIndex: "channelNewCount",
|
|
dataIndex: "channelNewCount",
|
|
key: "channelNewCount",
|
|
key: "channelNewCount",
|
|
className: 'tableRowStyle',
|
|
className: 'tableRowStyle',
|
|
|
|
+ width: 120,
|
|
render: (text, record) => {
|
|
render: (text, record) => {
|
|
return (
|
|
return (
|
|
<div
|
|
<div
|
|
@@ -156,6 +161,7 @@ class DepartmentStatistics extends Component{
|
|
dataIndex: "completeCount",
|
|
dataIndex: "completeCount",
|
|
key: "completeCount",
|
|
key: "completeCount",
|
|
className: 'tableRowStyle',
|
|
className: 'tableRowStyle',
|
|
|
|
+ width: 120,
|
|
render: (text, record) => {
|
|
render: (text, record) => {
|
|
return (
|
|
return (
|
|
<div
|
|
<div
|
|
@@ -180,6 +186,7 @@ class DepartmentStatistics extends Component{
|
|
dataIndex: "channelCompleteCount",
|
|
dataIndex: "channelCompleteCount",
|
|
key: "channelCompleteCount",
|
|
key: "channelCompleteCount",
|
|
className: 'tableRowStyle',
|
|
className: 'tableRowStyle',
|
|
|
|
+ width: 120,
|
|
render: (text, record) => {
|
|
render: (text, record) => {
|
|
return (
|
|
return (
|
|
<div
|
|
<div
|
|
@@ -204,6 +211,7 @@ class DepartmentStatistics extends Component{
|
|
dataIndex: "receiveCount",
|
|
dataIndex: "receiveCount",
|
|
key: "receiveCount",
|
|
key: "receiveCount",
|
|
className: 'tableRowStyle',
|
|
className: 'tableRowStyle',
|
|
|
|
+ width: 120,
|
|
render: (text, record) => {
|
|
render: (text, record) => {
|
|
return (
|
|
return (
|
|
<div
|
|
<div
|
|
@@ -239,11 +247,14 @@ class DepartmentStatistics extends Component{
|
|
}
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
componentDidMount() {
|
|
- // this.loadData();
|
|
|
|
this.selectSuperId();
|
|
this.selectSuperId();
|
|
}
|
|
}
|
|
|
|
|
|
loadData() {
|
|
loadData() {
|
|
|
|
+ if(!this.state.superId){
|
|
|
|
+ message.warning('请选择部门后再搜索')
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.setState({
|
|
this.setState({
|
|
loading: true,
|
|
loading: true,
|
|
});
|
|
});
|
|
@@ -322,7 +333,6 @@ class DepartmentStatistics extends Component{
|
|
|
|
|
|
reset(){
|
|
reset(){
|
|
this.setState({
|
|
this.setState({
|
|
- superId:undefined,
|
|
|
|
nameSearch: '',
|
|
nameSearch: '',
|
|
releaseDate: [],
|
|
releaseDate: [],
|
|
},()=>{
|
|
},()=>{
|
|
@@ -364,6 +374,13 @@ class DepartmentStatistics extends Component{
|
|
theId: theId,
|
|
theId: theId,
|
|
orderStatusOptions:data.data,
|
|
orderStatusOptions:data.data,
|
|
});
|
|
});
|
|
|
|
+ if(!this.state.superId){
|
|
|
|
+ this.setState({
|
|
|
|
+ superId:data.data[0].id
|
|
|
|
+ },()=>{
|
|
|
|
+ this.loadData();
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
|
|
}.bind(this),
|
|
}.bind(this),
|
|
}).always(function () {
|
|
}).always(function () {
|
|
@@ -461,6 +478,7 @@ class DepartmentStatistics extends Component{
|
|
<Spin spinning={this.state.loading}>
|
|
<Spin spinning={this.state.loading}>
|
|
<Table
|
|
<Table
|
|
size="middle"
|
|
size="middle"
|
|
|
|
+ scroll={{ y: 550 }}
|
|
columns={
|
|
columns={
|
|
this.state.changeList
|
|
this.state.changeList
|
|
? this.state.changeList
|
|
? this.state.changeList
|