|
@@ -159,14 +159,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- const hasCompose = false;
|
|
|
+ let hasCompose = false;
|
|
|
const jxIndex = this.companies.findIndex((item) => item.label === "北京锦兴弘昌科技有限公司");
|
|
|
const prIndex = this.companies.findIndex((item) => item.label === "北京普润心堂商贸有限公司");
|
|
|
const zsIndex = this.companies.findIndex((item) => item.label === "北京知事文化产业发展有限公司");
|
|
|
|
|
|
- if (jxIndex !== -1 || prIndex !== -1) this.hasCompose = true;
|
|
|
+ if (jxIndex !== -1 || prIndex !== -1 || zsIndex !== -1) hasCompose = true;
|
|
|
this.cp_companies = this.companies.filter((item) => item.label !== "北京锦兴弘昌科技有限公司" && item.label !== "北京普润心堂商贸有限公司" && item.label !== "北京知事文化产业发展有限公司")
|
|
|
- if (this.hasCompose) this.cp_companies = [...this.cp_companies, { value: "GS2302231124114965", label: "普润&锦兴&知事" }]
|
|
|
+ if (hasCompose) this.cp_companies = [...this.cp_companies, { value: "GS2302231124114965", label: "普润&锦兴&知事" }]
|
|
|
if (this.cp_companies.length === 4) this.cp_companies = [{ value: "", label: "所有公司" }, ...this.cp_companies];
|
|
|
|
|
|
this.isEmpty = this.cp_companies.length === 0;
|
|
@@ -174,7 +174,6 @@ export default {
|
|
|
|
|
|
this.cp_companies = this.cp_companies.map((item, index) => {
|
|
|
let label = '';
|
|
|
-
|
|
|
if (item.label === '所有公司') {
|
|
|
label = '所有公司'
|
|
|
}
|
|
@@ -184,7 +183,6 @@ export default {
|
|
|
label = '平台公司: 万宇'
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if (item.label === "普润&锦兴&知事") label = `业务公司: 普润&锦兴&知事`
|
|
|
if (label === '') label = `业务公司: ${mapCompany[item.label]}`;
|
|
|
return ({ ...item, label })
|