|
|
@@ -2,7 +2,7 @@
|
|
2
|
2
|
* @Author: dayan_hjm 产供销价值链
|
|
3
|
3
|
* @Date: 2023-11-10 10:19:34
|
|
4
|
4
|
* @Last Modified by: dayan_hjm
|
|
5
|
|
- * @Last Modified time: 2024-07-21 18:00:14
|
|
|
5
|
+ * @Last Modified time: 2024-07-22 09:56:30
|
|
6
|
6
|
*/
|
|
7
|
7
|
|
|
8
|
8
|
import React, { useState, useEffect, Component } from "react";
|
|
|
@@ -77,7 +77,6 @@ class Gvc extends Component {
|
|
77
|
77
|
}
|
|
78
|
78
|
componentDidMount() {
|
|
79
|
79
|
this.getUrl();
|
|
80
|
|
- this.getUrl2()
|
|
81
|
80
|
this.getUrl4()
|
|
82
|
81
|
this.getUrl3();
|
|
83
|
82
|
setTimeout(() => {
|
|
|
@@ -177,7 +176,8 @@ class Gvc extends Component {
|
|
177
|
176
|
}
|
|
178
|
177
|
);
|
|
179
|
178
|
});
|
|
180
|
|
- LeftHtml.unshift({ txt_name: '锂辉石(化学级)', num1: 40532.23, num2: '' })
|
|
|
179
|
+ this.getUrl2()
|
|
|
180
|
+ // LeftHtml.unshift({ txt_name: '锂辉石(化学级)', num1: 40532.23, num2: '' })
|
|
181
|
181
|
this.setState({ LeftHtml });
|
|
182
|
182
|
}
|
|
183
|
183
|
});
|
|
|
@@ -200,11 +200,13 @@ class Gvc extends Component {
|
|
200
|
200
|
const d_1 = data.filter(x => { return x.warehouseNameCode == 3 })[0];
|
|
201
|
201
|
const d_2 = data.filter(x => { return x.warehouseNameCode == 2 })[0];
|
|
202
|
202
|
const d_3 = data.filter(x => { return x.warehouseNameCode == 1 })[0];
|
|
|
203
|
+ const d_4 = data.filter(x => { return x.warehouseNameCode == 4 })[0];
|
|
203
|
204
|
let old_imgMsgData = this.store.state.imgMsgData;
|
|
204
|
205
|
old_imgMsgData[0] = d_1;
|
|
205
|
206
|
old_imgMsgData[1] = d_2;
|
|
206
|
207
|
old_imgMsgData[2] = d_3;
|
|
207
|
208
|
|
|
|
209
|
+ this.setState({ LeftHtml:[...[{txt_name:'锂辉石(化学级)',num1:d_4?.indexValue}],...this.state.LeftHtml] });
|
|
208
|
210
|
this.store.saveState({ imgMsgData: old_imgMsgData });
|
|
209
|
211
|
}
|
|
210
|
212
|
});
|