|
@@ -262,9 +262,10 @@ export default {
|
|
|
this.single = selection.length !== 1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
|
-
|
|
|
- companyNameFormatter(row){
|
|
|
- return this.formatterCompanyOptions.filter(item => item.dictValue === row.companyId)[0].dictLabel
|
|
|
+ companyNameFormatter(row) {
|
|
|
+ if (!row.companyId) return '';
|
|
|
+ const company = this.formatterCompanyOptions.find(item => item.dictValue === row.companyId);
|
|
|
+ return company ? company.dictLabel : '';
|
|
|
},
|
|
|
|
|
|
/** 导出按钮操作 */
|