|
@@ -1204,8 +1204,9 @@ const setCommodityChart = () => {
|
|
|
let haveContract = obj_item.XEdbInfoIdList[index];
|
|
|
if(haveContract) {
|
|
|
// 利润曲线指标名
|
|
|
+ const isEdb=commodityEdbList.some(_=>_.EdbInfoId===haveContract)
|
|
|
let edb_name = chartInfo.Source === 5
|
|
|
- ? (index === 0 ? obj_item.NameList[index] : `${chartInfo.ProfitName}(${obj_item.NameList[index]})`)
|
|
|
+ ? (isEdb? obj_item.NameList[index] : `${chartInfo.ProfitName}(${obj_item.NameList[index]})`)
|
|
|
: commodityEdbList.find(_ => _.EdbInfoId === obj_item.XEdbInfoIdList[index]).EdbName;
|
|
|
str+=`<b>${ edb_name }</b>`
|
|
|
|
|
@@ -1224,9 +1225,9 @@ const setCommodityChart = () => {
|
|
|
|
|
|
let haveContract = obj_item.XEdbInfoIdList[index];
|
|
|
if(haveContract) {
|
|
|
-
|
|
|
+ const isEdb=commodityEdbList.some(_=>_.EdbInfoId===haveContract)
|
|
|
let edb_name = chartInfo.Source === 5
|
|
|
- ? (index === 0 ? obj_item.NameList[index] : `${chartInfo.ProfitNameEn}(${obj_item.NameList[index]})`)
|
|
|
+ ? (isEdb? obj_item.NameList[index] : `${chartInfo.ProfitNameEn}(${obj_item.NameList[index]})`)
|
|
|
: commodityEdbList.find(_ => _.EdbInfoId === obj_item.XEdbInfoIdList[index]).EdbNameEn;
|
|
|
str+=`<b>${ edb_name }</b>`
|
|
|
|