|
|
@@ -198,19 +198,24 @@
|
|
|
},
|
|
|
|
|
|
getQualityType(row) {
|
|
|
- console.log(row.type);
|
|
|
- console.log(this.typeList);
|
|
|
if (row.type) {
|
|
|
- let label = '';
|
|
|
- this.typeList.forEach((item) => {
|
|
|
- if (item.value == row.type) {
|
|
|
- label = item.label;
|
|
|
- }
|
|
|
- console.log(label, 'label');
|
|
|
- return label;
|
|
|
- });
|
|
|
+ const data = this.typeList.filter((item) => item.value == row.type);
|
|
|
+ return data[0].label;
|
|
|
}
|
|
|
+
|
|
|
return '';
|
|
|
+
|
|
|
+ // if (row.type) {
|
|
|
+ // let label = '';
|
|
|
+ // this.typeList.forEach((item) => {
|
|
|
+ // if (item.value == row.type) {
|
|
|
+ // label = item.label;
|
|
|
+ // }
|
|
|
+ // console.log(label, 'label');
|
|
|
+ // return label;
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // return '123';
|
|
|
},
|
|
|
|
|
|
// 多选
|