fix(SwapTrade2): 为保证业务不受影响,暂时取消新版互换交易标的按类型筛选,两个标的输入框均返回全部标的
- consUnderlyingFlagNonBond 和 consUnderlyingFlagBond 去掉品种位,仅保留行为位 - 非债券和债券两个输入框不再按 Stock/Fund/CreditBonds 等类型过滤 - 与旧版 SwapTrade 行为对齐:不过滤标的类型,全量返回
This commit is contained in:
@@ -21,11 +21,18 @@ const consUnderlyingFlagBase = (function () {
|
||||
}());
|
||||
const consUnderlyingFlagNonBond = (function () {
|
||||
let unSelFlag = tradeHelper.UnderlyingSelectFlag;
|
||||
return consUnderlyingFlagBase | unSelFlag.Stock | unSelFlag.StockIndex | unSelFlag.StockIF | unSelFlag.CommodityFutures | unSelFlag.CommoditySpot;
|
||||
//临时注释,保证业务不受影响
|
||||
//return consUnderlyingFlagBase | unSelFlag.Stock | unSelFlag.StockIndex | unSelFlag.StockIF | unSelFlag.Fund | unSelFlag.CommodityFutures | unSelFlag.CommoditySpot;
|
||||
return consUnderlyingFlagBase;
|
||||
}());
|
||||
const consUnderlyingFlagBond = (function () {
|
||||
let unSelFlag = tradeHelper.UnderlyingSelectFlag;
|
||||
return consUnderlyingFlagBase | unSelFlag.CreditBonds | unSelFlag.Bonds | unSelFlag.TBonds | unSelFlag.OtherBonds;
|
||||
const consUnderlyingFlagNonBond = (function () {
|
||||
let unSelFlag = tradeHelper.UnderlyingSelectFlag;
|
||||
//临时注释,保证业务不受影响
|
||||
//return consUnderlyingFlagBase | unSelFlag.Stock | unSelFlag.StockIndex | unSelFlag.StockIF | unSelFlag.Fund | unSelFlag.CommodityFutures | unSelFlag.CommoditySpot;
|
||||
return consUnderlyingFlagBase;
|
||||
}());
|
||||
}());
|
||||
|
||||
const inputFormatDouble2 = Object.freeze({ precision: 2, append: '' });
|
||||
@@ -57,7 +64,13 @@ const createVueUnderlying = function (selectFlag) {
|
||||
return { autoUnderlying: null };
|
||||
},
|
||||
mounted() {
|
||||
this.autoUnderlying = tradeHelper.UnderlyingAutoComplete(this.$el, { SelectFlag: selectFlag, BlackLimit: 2, });
|
||||
var selFlag = tradeHelper.UnderlyingSelectFlag;
|
||||
this.autoUnderlying = tradeHelper.UnderlyingAutoComplete(this.$el, { SelectFlag: selFlag.UsePinYinFilter |
|
||||
selFlag.UseForTrading |
|
||||
selFlag.IncludeSynthetic |
|
||||
selFlag.IncludeMatured |
|
||||
selFlag.IncludeBasket |
|
||||
selFlag.CheckLaunch, BlackLimit: 2, });
|
||||
this.autoUnderlying.onSelect(this.onchange);
|
||||
this.value && this.autoUnderlying.selectByCode(this.value);
|
||||
},
|
||||
@@ -90,7 +103,13 @@ const vueUnderlyingRate = function () {
|
||||
mounted() {
|
||||
var selFlag = tradeHelper.UnderlyingSelectFlag;
|
||||
var instrumentTypes = ["FixingRepoRate", "OtherRate"];
|
||||
this.autoUnderlying = tradeHelper.UnderlyingAutoComplete(this.$el, { SelectFlag: selFlag.UsePinYinFilter | selFlag.UseForTrading | selFlag.IncludeSynthetic | selFlag.IncludeMatured | selFlag.IncludeBasket | selFlag.CheckLaunch, BlackLimit: 2, InstrumentTypes: instrumentTypes, UseAll: true, UseSignle: true });
|
||||
this.autoUnderlying = tradeHelper.UnderlyingAutoComplete(this.$el,
|
||||
{ SelectFlag: selFlag.UsePinYinFilter |
|
||||
selFlag.UseForTrading |
|
||||
selFlag.IncludeSynthetic |
|
||||
selFlag.IncludeMatured |
|
||||
selFlag.IncludeBasket |
|
||||
selFlag.CheckLaunch, BlackLimit: 2, InstrumentTypes: instrumentTypes, UseAll: true, UseSignle: true });
|
||||
this.autoUnderlying.onSelect(this.onchange);
|
||||
this.value && this.autoUnderlying.selectByCode(this.value);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user