|
|
@@ -11,6 +11,10 @@ import { fetchGet } from '../../../utils/common/fetchRequest'
|
|
|
import { saveChartState } from '../../../redux/actions/chartState'
|
|
|
import { API } from '../../../configs/api.config'
|
|
|
import { message } from 'antd'
|
|
|
+import {
|
|
|
+ FolderOpenOutlined,
|
|
|
+} from '@ant-design/icons'
|
|
|
+import './kanban.less'
|
|
|
|
|
|
class KanBan extends Component {
|
|
|
|
|
|
@@ -42,6 +46,11 @@ class KanBan extends Component {
|
|
|
)
|
|
|
}
|
|
|
})
|
|
|
+ if (subsData.length == 0) {
|
|
|
+ chartItem.push(
|
|
|
+ this.getNoneElement(),
|
|
|
+ )
|
|
|
+ }
|
|
|
|
|
|
return (
|
|
|
<>
|
|
|
@@ -65,6 +74,23 @@ class KanBan extends Component {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ getNoneElement = () => {
|
|
|
+ return (
|
|
|
+ <div className="kanban-panel-nodata" key='nodata'>
|
|
|
+ <div className="nodata-box">
|
|
|
+ <FolderOpenOutlined
|
|
|
+ style={{ fontSize: '50px', color: '#DCDCDC' }}
|
|
|
+ />
|
|
|
+ <p>暂无数据,<span onClick={this.addChart} className="addchart">立即添加</span></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ addChart = () => {
|
|
|
+ this.props.KanbanManage()
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
let mapStateToProps = (state) => ({
|