Commit 8705d045 authored by taabe's avatar taabe

解决bug#1114

parent 6acb07ee
......@@ -139,7 +139,6 @@ class RiskModel extends Component {
}
reload =(risk, data) => {
debugger
let { activeKey, subActiveKey } = this.state;
if (risk) {
this.setState({ editRiskSource: data }, () => this.queryRiskSourceTree());
......@@ -413,7 +412,7 @@ class RiskModel extends Component {
bindEquipIndexCallback = (importantEquipId, equipmentId) => {
const { fmeaId } = this.state;
let { selectData } = this.model.state;
selectData = selectData.filter(data => data.equipmentId === equipmentId);
// selectData = selectData.filter(data => data.equipmentId === equipmentId);
fmeaId && this.bindEquipIndexs(fmeaId, importantEquipId, equipmentId, selectData);
}
......
......@@ -63,7 +63,7 @@ class EquipModel extends Component {
let { bindingEquips, importantEquipId } = this.props;
let bindingEquipIds = [];
bindingEquips.map(b => {
if (b.importantEquipId === equipmentId) {
if (b.importantEquipId == equipmentId) {
bindingEquipIds.push(b.equipmentId);
}
});
......
......@@ -26,7 +26,7 @@ const getEquipColumns = () => {
/**
* 关联对象-设备
* 关联对象-重点设备
*/
class EquipTable extends Component {
constructor(props) {
......
......@@ -16,7 +16,7 @@ const getAssoEquipColumns = () => {
/**
* 关联对象-配套设备
* 关联对象-指标项
*/
class FireEquipIndexTable extends Component {
constructor(props) {
......
......@@ -23,7 +23,7 @@ const getAssoEquipColumns = () => {
/**
* 关联对象-配套设备
* 关联对象-监测设备
*/
class FireEquipTable extends Component {
constructor(props) {
......
......@@ -40,7 +40,6 @@ class RiskSourceModel extends Component {
}
componentWillMount = () => {
debugger
let { form } = this.state;
let { selectedRow } = this.props;
if (selectedRow) {
......
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