对冲管理新增品种筛选,合约下拉去掉品种前缀
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -211,7 +211,8 @@ function filterContracts() {
|
||||
sel.disabled = !prod;
|
||||
if (prod && productContracts[prod]) {
|
||||
productContracts[prod].forEach(function(c) {
|
||||
sel.innerHTML += '<option value="' + c + '">' + c + '</option>';
|
||||
var display = c.startsWith(prod) ? c.substring(prod.length) : c;
|
||||
sel.innerHTML += '<option value="' + c + '">' + display + '</option>';
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user