'改bug更新'
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* @Author: fzq
|
||||
* @Date: 2022-03-05 15:55:45
|
||||
* @LastEditors: fzq
|
||||
* @LastEditTime: 2022-03-16 16:09:15
|
||||
* @LastEditTime: 2022-03-18 14:39:56
|
||||
-->
|
||||
<template>
|
||||
<div class="app-container">
|
||||
@@ -71,7 +71,7 @@ const tableProps = [
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'location',
|
||||
prop: 'locationName',
|
||||
label: i18n.t('module.report.substrate.location'),
|
||||
align: 'center'
|
||||
},
|
||||
@@ -81,9 +81,19 @@ const tableProps = [
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'substrateStatus',
|
||||
prop: 'status',
|
||||
label: i18n.t('module.report.substrate.substrateStatus'),
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'subStorageStatusName',
|
||||
label: i18n.t('module.report.substrate.subStorageStatus'),
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'machineHandID',
|
||||
label: i18n.t('module.report.substrate.machineHandID'),
|
||||
align: 'center'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -161,6 +171,13 @@ export default {
|
||||
// console.log(response)
|
||||
if (response.data) {
|
||||
this.list = response.data
|
||||
for (var x = 0; x < this.list.length; x++) {
|
||||
if (this.list[x].subStorageStatus === 1) {
|
||||
this.list[x].subStorageStatusName = this.$t('module.report.substrate.load')
|
||||
} else if (this.list[x].subStorageStatus === 2) {
|
||||
this.list[x].subStorageStatusName = this.$t('module.report.substrate.unload')
|
||||
}
|
||||
}
|
||||
console.log(this.list)
|
||||
} else {
|
||||
this.list.splice(0, this.list.length)
|
||||
|
||||
Reference in New Issue
Block a user