对冲管理新增品种筛选,合约下拉去掉品种前缀

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-26 11:37:40 +08:00
parent d44e93dd4f
commit e3f288083c
3 changed files with 41 additions and 8 deletions
+2 -1
View File
@@ -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>';
});
}
}