ATS显示调整

This commit is contained in:
fan 2021-05-17 14:39:16 +08:00
parent 5215d8ba2c
commit dfc5d50fbe

View File

@ -422,10 +422,10 @@ export default {
handleSectionList() {
const list = [];
this.sectionList.forEach(item => {
if (item.type === '01' || item.type === '04') {
if ((item.type === '01' && !item.parentCode) || item.type === '04') {
list.push({label: item.name, value: item.code});
} else if (item.type === '02') {
const parentSection = this.$store.getters['map/getDeviceByCode'](this.selectedObj.parentCode) || {};
const parentSection = this.$store.getters['map/getDeviceByCode'](item.parentCode) || {};
list.push({label: parentSection.name + item.name, value: item.code});
}
});