This commit is contained in:
2024-11-25 16:34:29 +08:00
parent 69b83be6c7
commit a27fe8f098
2 changed files with 12 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分
baseURL: process.env.VUE_APP_BASE_API,
// 超时
timeout: 30000,
timeout: 1000 * 60 * 5,
})
// request拦截器

View File

@@ -79,7 +79,6 @@
<span style="margin-left: 20px">打磨数:{{ totalDamoTotal }}</span>
<span style="margin-left: 20px">报废数:{{ totalBaofeiTotal }}</span>
<span style="margin-left: 20px">倒车雷达:{{ parkingSensor }}</span>
</div>
</div>
<!-- 表格部分 -->
@@ -348,7 +347,7 @@ export default {
// 统计数据
allDataList: [],
// 倒车雷达
parkingSensor:0,
parkingSensor: 0,
// 自适应
screenWidth: '1920px',
screenHeight: '1080px',
@@ -375,31 +374,31 @@ export default {
computed: {
// 投入数
totalQuantity() {
return (
return Math.trunc(
this.allDataList.reduce((acc, data) => {
if (!data.productDescription.includes('倒车雷达')) {
return acc + data.requireNumber
} else {
return acc
}
}, 0) / 3
}, 0) / 3,
)
},
// 合格数
totalQualifiedNumber() {
return (
return Math.trunc(
this.allDataList.reduce((acc, data) => {
if (!data.productDescription.includes('倒车雷达')) {
return acc + data.qualifiedNumber
} else {
return acc
}
}, 0) / 3
}, 0) / 3,
)
},
// 抛光数
totalPaoguangTotal() {
return (
return Math.trunc(
this.allDataList.reduce((acc, data) => {
let str = data.productDescription
if (!str.includes('倒车雷达')) {
@@ -407,12 +406,12 @@ export default {
} else {
return acc
}
}, 0) / 3
}, 0) / 3,
)
},
// 打磨数
totalDamoTotal() {
return (
return Math.trunc(
this.allDataList.reduce((acc, data) => {
let str = data.productDescription
if (!str.includes('倒车雷达')) {
@@ -420,12 +419,12 @@ export default {
} else {
return acc
}
}, 0) / 3
}, 0) / 3,
)
},
// 报废数
totalBaofeiTotal() {
return (
return Math.trunc(
this.allDataList.reduce((acc, data) => {
let str = data.productDescription
if (!str.includes('倒车雷达')) {
@@ -433,7 +432,7 @@ export default {
} else {
return acc
}
}, 0) / 3
}, 0) / 3,
)
},
// 总合格率