'修改bug'
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 15:41:11
|
||||
* @LastEditors: fzq
|
||||
* @LastEditTime: 2022-03-05 11:01:57
|
||||
* @LastEditTime: 2022-03-10 15:09:41
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -93,7 +93,7 @@ const tableProps = [
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'equipmentType',
|
||||
prop: 'typeName',
|
||||
label: i18n.t('module.basicData.equipment.EquipmentType'),
|
||||
align: 'center'
|
||||
},
|
||||
@@ -130,12 +130,14 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
keyName: i18n.t('module.basicData.visual.keyword'),
|
||||
placeholderName: this.$t('module.basicData.equipment.EquipmentName') + this.$t('module.basicData.visual.Or') + this.$t('module.basicData.equipment.EquipmentCode'),
|
||||
keyName: this.$t('module.basicData.equipment.EquipmentCode'),
|
||||
placeholderName: this.$t('module.basicData.equipment.EquipmentCode'),
|
||||
tableBtn,
|
||||
trueWidth: 240,
|
||||
tableProps,
|
||||
list: [],
|
||||
list: [{
|
||||
typeName: ''
|
||||
}],
|
||||
total: 0,
|
||||
listLoading: true,
|
||||
listQuery: {
|
||||
@@ -180,11 +182,20 @@ export default {
|
||||
console.log(response)
|
||||
if (response.data.records) {
|
||||
this.list = response.data.records
|
||||
// 1是物流设备,2是工艺设备,与equipmentType进行替换
|
||||
for (var x = 0; x < this.list.length; x++) {
|
||||
if (this.list[x].equipmentType === '1') {
|
||||
this.list[x].typeName = this.$t('module.basicData.cache.logisticsEquipment')
|
||||
} else if (this.list[x].equipmentType === '2') {
|
||||
this.list[x].typeName = this.$t('module.basicData.cache.processEquipment')
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.list.splice(0, this.list.length)
|
||||
}
|
||||
this.total = response.data.total
|
||||
this.listLoading = false
|
||||
console.log(this.list)
|
||||
})
|
||||
},
|
||||
// 新增 / 修改
|
||||
|
||||
Reference in New Issue
Block a user