报错更改error Handler.js#109
This commit is contained in:
parent
d4fb4ca081
commit
4d122d9ad7
|
@ -8,7 +8,10 @@ export default (error, vm)=>{
|
|||
if(error.status || error.status==0){
|
||||
return false
|
||||
}
|
||||
|
||||
let errorString = error.toString();
|
||||
console.log('error,')
|
||||
console.log(error.toString())
|
||||
console.log('error0000000000')
|
||||
var errorMap = {
|
||||
InternalError: "Javascript引擎内部错误",
|
||||
ReferenceError: "未找到对象",
|
||||
|
@ -25,9 +28,12 @@ export default (error, vm)=>{
|
|||
//throw error;
|
||||
|
||||
vm.$nextTick(() => {
|
||||
vm.$notify.error({
|
||||
title: errorName,
|
||||
message: error
|
||||
});
|
||||
if(errorString=="TypeError: Cannot read properties of undefined (reading 'splice')"){}else{
|
||||
vm.$notify.error({
|
||||
title: errorName,
|
||||
message: error
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
|
|
@ -143,7 +143,7 @@ export default {
|
|||
right: 0,
|
||||
data: [{
|
||||
backgroundColor: 'rgb(1,235,239)',
|
||||
name: '生产数',
|
||||
name: '合格数',
|
||||
itemStyle: {
|
||||
// color:'rgb(1,235,239)',
|
||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||
|
@ -215,7 +215,7 @@ export default {
|
|||
},
|
||||
series: [
|
||||
{
|
||||
name: '生产数',
|
||||
name: '合格数',
|
||||
type: 'bar',
|
||||
stack: 'Ad',
|
||||
barWidth: 30,
|
||||
|
@ -451,13 +451,13 @@ export default {
|
|||
if(list1.length>0){
|
||||
list1.forEach(item1=>{
|
||||
let index1 = item1.月-1;
|
||||
seriesData1[index1] = item1.生产数;
|
||||
seriesData1[index1] = item1.合格数;
|
||||
})
|
||||
}
|
||||
let chart1Option = deepCopy(this.basicOption)
|
||||
chart1Option.xAxis.data = xAxisData1;
|
||||
chart1Option.series[0].data = seriesData1;
|
||||
chart1Option.yAxis.name='生产数';
|
||||
// chart1Option.yAxis.name='合格数';
|
||||
let chart1 = this.setChart("chart1", chart1Option);
|
||||
let index1 = 0
|
||||
this.chartInterval1 = setInterval(function () {
|
||||
|
@ -501,7 +501,7 @@ export default {
|
|||
console.log('xAxisData2',xAxisData2)
|
||||
let chart2Option = deepCopy(this.basicOption);
|
||||
chart2Option.xAxis.data = xAxisData2;
|
||||
chart2Option.yAxis.name='合格率';
|
||||
// chart2Option.yAxis.name='合格率';
|
||||
chart2Option.legend = {
|
||||
icon: "stack",
|
||||
right: 0,
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="合格数量" prop="count_ok">
|
||||
</el-table-column>
|
||||
<el-table-column label="操作人" prop="">
|
||||
<el-table-column label="提交人" prop="submit_user_name">
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" fixed="right" width="60">
|
||||
<template #default="scope">
|
||||
|
|
Loading…
Reference in New Issue