|
|
|
@ -843,38 +843,39 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
async getFab() {
|
|
|
|
|
// let res = await this.postApiReturn({
|
|
|
|
|
// apiKey: 'selectFabCodeList',
|
|
|
|
|
// resKey: 'fabCodeLists',
|
|
|
|
|
// sendParam: {},
|
|
|
|
|
// });
|
|
|
|
|
this.selectValueList02 = [
|
|
|
|
|
{ text: '온도 센서', value: 'ECC001' },
|
|
|
|
|
{ text: '압력 센서', value: 'ECC002' },
|
|
|
|
|
{ text: '유량 센서', value: 'ECC003' },
|
|
|
|
|
{ text: '습도 센서', value: 'ECC004' },
|
|
|
|
|
{ text: '전압 센서', value: 'ECC005' }
|
|
|
|
|
];
|
|
|
|
|
// if (res.length > 0) {
|
|
|
|
|
// // this.selectValueList02 = await res.map(item => {
|
|
|
|
|
// // return {
|
|
|
|
|
// // text: item.eccNm,
|
|
|
|
|
// // value: item.eccId,
|
|
|
|
|
// // };
|
|
|
|
|
// // });
|
|
|
|
|
// this.selectValueList02.unshift({
|
|
|
|
|
// text: '전체',
|
|
|
|
|
// value: null,
|
|
|
|
|
// });
|
|
|
|
|
// if (this.routeData.fabId != null && this.routeData.fabId != '') {
|
|
|
|
|
// this.selectValue02 = this.routeData.fabId;
|
|
|
|
|
// } else if (this.routeData.fabId == null || this.routeData.fabId == '') {
|
|
|
|
|
// this.selectValue02 = this.selectValueList02[0].value;
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// this.selectValueList02 = [];
|
|
|
|
|
// this.selectValue02 = null;
|
|
|
|
|
// }
|
|
|
|
|
let res = await this.postApiReturn({
|
|
|
|
|
apiKey: 'selectFabCodeList',
|
|
|
|
|
resKey: 'fabCodeLists',
|
|
|
|
|
sendParam: {},
|
|
|
|
|
});
|
|
|
|
|
// this.selectValueList02 = [
|
|
|
|
|
// { text: '온도 센서', value: 'ECC001' },
|
|
|
|
|
// { text: '압력 센서', value: 'ECC002' },
|
|
|
|
|
// { text: '유량 센서', value: 'ECC003' },
|
|
|
|
|
// { text: '습도 센서', value: 'ECC004' },
|
|
|
|
|
// { text: '전압 센서', value: 'ECC005' }
|
|
|
|
|
// ];
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res.length > 0) {
|
|
|
|
|
// this.selectValueList02 = await res.map(item => {
|
|
|
|
|
// return {
|
|
|
|
|
// text: item.eccNm,
|
|
|
|
|
// value: item.eccId,
|
|
|
|
|
// };
|
|
|
|
|
// });
|
|
|
|
|
this.selectValueList02.unshift({
|
|
|
|
|
text: '전체',
|
|
|
|
|
value: null,
|
|
|
|
|
});
|
|
|
|
|
if (this.routeData.fabId != null && this.routeData.fabId != '') {
|
|
|
|
|
this.selectValue02 = this.routeData.fabId;
|
|
|
|
|
} else if (this.routeData.fabId == null || this.routeData.fabId == '') {
|
|
|
|
|
this.selectValue02 = this.selectValueList02[0].value;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.selectValueList02 = [];
|
|
|
|
|
this.selectValue02 = null;
|
|
|
|
|
}
|
|
|
|
|
this.setPageData({
|
|
|
|
|
fabIdList: this.selectValueList02,
|
|
|
|
|
fabId: this.selectValue02,
|
|
|
|
|