Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/smartBuilding
| | |
| | | } |
| | | |
| | | getEntityList(pageInfo, listBody) { |
| | | if (listBody.startDate) { |
| | | listBody.time = listBody.startDate + " - " + listBody.endDate; |
| | | } |
| | | return getCheckList(pageInfo, listBody); |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | |
| | | getRangePickerShowTime() { |
| | | return true |
| | | } |
| | | |
| | | handleImagePreviewClose = () => { |
| | | this.setState({ |
| | | imagePreviewVisible: false |
| | |
| | | } |
| | | } |
| | | |
| | | getRangePickerShowTime() { |
| | | return false |
| | | } |
| | | |
| | | getEntityList(pageInfo, listBody) { |
| | | return getCorrectPracticeList(pageInfo, listBody) |
| | | } |
| | |
| | | } |
| | | |
| | | getTitle() { |
| | | const showTime = this.getRangePickerShowTime && this.getRangePickerShowTime() |
| | | return ( |
| | | <div className="title flex"> |
| | | <div> |
| | |
| | | |
| | | |
| | | <LocaleProvider locale={zh_CN}> |
| | | <RangePicker onChange={(date, dateString) => { |
| | | <RangePicker {...(showTime ? { showTime: true } : {})} onChange={(date, dateString) => { |
| | | this.handleListBodyDateRangeChange(dateString[0], dateString[1]) |
| | | }} /> |
| | | </LocaleProvider> |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { visible, onCancel, onOk, form, currentRowData } = this.props; |
| | | const { visible, onCancel, onOk, form, currentRowData, confirmLoading } = this.props; |
| | | const { getFieldDecorator } = form; |
| | | const { name, type, usageType, departmentPath, client, constructionLicense, itemCode, branchCompany, constructionCompanyInfo, supervisorCompanyInfo, developmentCompanyInfo, addressInfo, projectCost, scale } = this.state.editableData; |
| | | return ( |
| | |
| | | visible={visible} |
| | | onCancel={onCancel} |
| | | onOk={onOk} |
| | | confirmLoading={confirmLoading} |
| | | width={900} |
| | | destroyOnClose |
| | | > |
| | |
| | | </div> |
| | | <div style={{ padding: '0 10px' }}> |
| | | <div style={{ marginBottom: 10, display: 'flex' }}> |
| | | <Input |
| | | placeholder="请输入搜索关键字" |
| | | value={this.state.keyword} |
| | | onChange={(e) => this.setState({ keyword: e.target.value })} |
| | | style={{ marginRight: 10 }} |
| | | /> |
| | | <div style={{ flex: 1, marginRight: 10 }}> |
| | | <Input |
| | | placeholder="请输入搜索关键字" |
| | | value={this.state.keyword} |
| | | onChange={(e) => this.setState({ keyword: e.target.value })} |
| | | /> |
| | | <div id="mapContainer" className="mapBox" style={{ height: '400px', width: '100%', border: '1px solid #d9d9d9', marginTop: 10 }}></div> |
| | | </div> |
| | | <Button type="primary" onClick={this.handleSearch}>搜索</Button> |
| | | </div> |
| | | <div id="mapContainer" className="mapBox" style={{ height: '400px', width: '100%', border: '1px solid #d9d9d9' }}></div> |
| | | </div> |
| | | </Form> |
| | | </Modal> |
| | |
| | | } |
| | | } |
| | | |
| | | getRangePickerShowTime() { |
| | | return true |
| | | } |
| | | |
| | | getEntityList(pageInfo, listBody) { |
| | | if (listBody.startDate) { |
| | | listBody.time = listBody.startDate + " - " + listBody.endDate; |
| | | } |
| | | return getDuty(pageInfo, listBody); |
| | | } |
| | | |
| | |
| | | // 项目风险趋势数据 |
| | | riskTrendData: { |
| | | xAxisData: [], |
| | | seriesData: [] |
| | | seriesData: [], |
| | | statusData: [], |
| | | }, |
| | | // 9各分项隐患趋势 10隐患数量 11设备数量 12查看报告入口 13人员在岗率 14重大风险源 15 项目风险趋势 |
| | | permissionProject: |
| | |
| | | this.riskTrendData.seriesData = res.map((item) => { |
| | | const value = this.levelToValue(item.level) |
| | | |
| | | return value |
| | | }) |
| | | return value; |
| | | }); |
| | | this.riskTrendData.statusData = res.map((item) => item.status); |
| | | |
| | | // 更新图表 |
| | | this.updateRiskChart() |
| | |
| | | } catch (error) { |
| | | console.error('获取项目风险趋势失败:', error) |
| | | // 设置默认值,确保图表可以正常显示 |
| | | this.riskTrendData.xAxisData = [] |
| | | this.riskTrendData.seriesData = [] |
| | | this.riskTrendData.xAxisData = []; |
| | | this.riskTrendData.seriesData = []; |
| | | this.riskTrendData.statusData = []; |
| | | } |
| | | }, |
| | | // 更新风险趋势图表 |
| | |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | color: '#fff', |
| | | color: function (value, index) { |
| | | const status = |
| | | Array.isArray(self.riskTrendData.statusData) && |
| | | typeof index === "number" |
| | | ? self.riskTrendData.statusData[index] |
| | | : undefined; |
| | | return Number(status) === 2 ? "#999" : "#fff"; |
| | | }, |
| | | fontSize: 12, |
| | | interval: 0, |
| | | rotate: 0, |
| | |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | color: '#fff', |
| | | color: function (value, index) { |
| | | const status = |
| | | Array.isArray(this.riskTrendData.statusData) && |
| | | typeof index === "number" |
| | | ? this.riskTrendData.statusData[index] |
| | | : undefined; |
| | | return Number(status) === 2 ? "#999" : "#fff"; |
| | | }, |
| | | fontSize: 12, |
| | | interval: 0, // 强制显示所有标签 |
| | | rotate: 0, // 不旋转 |