|
@@ -783,7 +783,7 @@ export default {
|
|
|
}
|
|
|
console.log(data,'===999')
|
|
|
postJson(url, data).then(response => {
|
|
|
- if (response.data.list !== null) {
|
|
|
+ if (response.data.list !== null && response.data.list.length > 0) {
|
|
|
this.table.list = response.data.list
|
|
|
this.table.total = response.data.total
|
|
|
if (response.data.list[0].lpplantype == '预混计划') {
|
|
@@ -1237,7 +1237,7 @@ export default {
|
|
|
}
|
|
|
postJson(url, data).then(response => {
|
|
|
console.log('过程详情table数据', response.data.list)
|
|
|
- if (response.data.list !== null) {
|
|
|
+ if (response.data.list !== null && response.data.list.length > 0) {
|
|
|
this.table2.list = response.data.list
|
|
|
} else {
|
|
|
this.table2.list = []
|
|
@@ -1310,7 +1310,7 @@ export default {
|
|
|
}
|
|
|
postJson(url, data).then(response => {
|
|
|
console.log('混料详情table数据', response.data.list)
|
|
|
- if (response.data.list !== null) {
|
|
|
+ if (response.data.list !== null && response.data.list.length > 0) {
|
|
|
this.table3.list = response.data.list
|
|
|
var sumlweight = 0
|
|
|
var sumactualweightminus = 0
|
|
@@ -1400,7 +1400,7 @@ export default {
|
|
|
}
|
|
|
postJson(url, data).then(response => {
|
|
|
console.log('撒料详情table数据', response.data.list)
|
|
|
- if (response.data.list !== null) {
|
|
|
+ if (response.data.list !== null && response.data.list.length > 0) {
|
|
|
this.table4.list = response.data.list
|
|
|
var sumlweight = 0
|
|
|
var sumactualweightminus = 0
|
|
@@ -1518,7 +1518,7 @@ export default {
|
|
|
}
|
|
|
postJson(url, data).then(response => {
|
|
|
// GetReportform(this.chart1.getdataListParm).then(response => {
|
|
|
- if (response.data.list !== null) {
|
|
|
+ if (response.data.list !== null && response.data.list.length > 0) {
|
|
|
this.chart1.list = response.data.data
|
|
|
console.log('实时监控', response.data.list)
|
|
|
this.chart1.chartLine_data = response.data.list
|