修复公示导出:字符串参数走 ParamStore 真实存在的 get()
This commit is contained in:
parent
4329340287
commit
88df8762b0
|
|
@ -70,8 +70,9 @@ def compute_snapshot() -> dict:
|
||||||
open_codes = sorted({r["ts_code"] for r in open_lots})
|
open_codes = sorted({r["ts_code"] for r in open_lots})
|
||||||
prices = market.get_prices(open_codes) if open_codes else {}
|
prices = market.get_prices(open_codes) if open_codes else {}
|
||||||
|
|
||||||
account = param_store.get_str("PMS_PUBLISH_ACCOUNT", "")
|
# 字符串参数走通用 get() (ParamStore 没有 get_str; 类型按 RUNTIME_EXTRA 注册项转换)
|
||||||
structure = param_store.get_str("PMS_PUBLISH_STRUCTURE", "")
|
account = str(param_store.get("PMS_PUBLISH_ACCOUNT") or "")
|
||||||
|
structure = str(param_store.get("PMS_PUBLISH_STRUCTURE") or "")
|
||||||
|
|
||||||
holdings, price_missing = [], set()
|
holdings, price_missing = [], set()
|
||||||
for r in open_lots:
|
for r in open_lots:
|
||||||
|
|
@ -128,7 +129,7 @@ def compute_snapshot() -> dict:
|
||||||
"open_room": round(openable - hold_cost, 2),
|
"open_room": round(openable - hold_cost, 2),
|
||||||
"pos_ratio": round(hold_cost / openable, 4) if openable > 0 else None,
|
"pos_ratio": round(hold_cost / openable, 4) if openable > 0 else None,
|
||||||
"price_missing": sorted(price_missing),
|
"price_missing": sorted(price_missing),
|
||||||
"title": param_store.get_str("PMS_PUBLISH_TITLE", "量化产品基本信息"),
|
"title": str(param_store.get("PMS_PUBLISH_TITLE") or "量化产品基本信息"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -429,7 +429,7 @@ body.dock-r:not(.r-fold) .side-r .strip{display:none;}
|
||||||
|
|
||||||
<button class="tbtn hd-report" @click="openPlan">选股计划</button>
|
<button class="tbtn hd-report" @click="openPlan">选股计划</button>
|
||||||
<button class="tbtn hd-report" @click="openReport">日报</button>
|
<button class="tbtn hd-report" @click="openReport">日报</button>
|
||||||
<button class="tbtn hd-report" v-if="authed" @click="doExport" title="按公司《量化数据》模板导出当日持仓、平仓与净值 (系统接管后的数据)">导出公示表</button>
|
<button class="tbtn hd-report" v-if="authed" @click="doExport" title="按公司《量化数据》模板导出当日持仓、平仓与净值 (系统接管后的数据)">导出持仓表</button>
|
||||||
<button class="tbtn" v-show="mode==='ops'" @click="opsDrawer=true">运维</button>
|
<button class="tbtn" v-show="mode==='ops'" @click="opsDrawer=true">运维</button>
|
||||||
<span class="muted hd-refresh-at" style="font-size:11.5px;cursor:pointer" @click="autoRefresh=!autoRefresh"
|
<span class="muted hd-refresh-at" style="font-size:11.5px;cursor:pointer" @click="autoRefresh=!autoRefresh"
|
||||||
:title="autoRefresh?'自动刷新开,点此关闭':'自动刷新关,点此开启'">{{ autoRefresh ? '自动' : '手动' }}<span v-if="lastRefresh"> · {{ lastRefresh }}</span></span>
|
:title="autoRefresh?'自动刷新开,点此关闭':'自动刷新关,点此开启'">{{ autoRefresh ? '自动' : '手动' }}<span v-if="lastRefresh"> · {{ lastRefresh }}</span></span>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue