fix: 任务树展开图标走 /imgs/ 404——图标复制到 wwwroot/imgs 并配 any 权限;未分配迭代 0 个时不显示

This commit is contained in:
ymq 2026-08-18 18:09:48 +08:00
parent 9da322c5c3
commit f022b304d6
6 changed files with 16 additions and 6 deletions

View File

@ -6,6 +6,11 @@ MOD = "pipeline-sdlc"
PATHS_ANY = [
f"/{MOD}/index.ui",
# Tree 组件展开/折叠图标bricks.path 指向 / 时,图标走 /imgs/ 而非 /bricks/imgs/
"/imgs/node-expand.svg",
"/imgs/node-collapse.svg",
"/imgs/open-folder.svg",
"/imgs/close-folder.svg",
]
PATHS_LOGINED = [

View File

@ -108,13 +108,14 @@ async with DBPools().sqlorContext(dbname) as sor:
"label": "🗂 {} [{}] ({})".format(iname, istatus, cnt),
"is_leaf": False,
})
# 未分配迭代(无 iteration_id 的任务)
# 未分配迭代(无 iteration_id 的任务)—— 有未分配任务才显示
none_cnt = sum(1 for t in all_tasks if not _iter_of(t))
nodes.append({
"id": "iter:__none__",
"label": "🗂 未分配迭代 ({})".format(none_cnt),
"is_leaf": False,
})
if none_cnt > 0:
nodes.append({
"id": "iter:__none__",
"label": "🗂 未分配迭代 ({})".format(none_cnt),
"is_leaf": False,
})
return json.dumps(nodes, ensure_ascii=False)
if node_id.startswith('iter:'):

View File

@ -0,0 +1 @@
<svg t="1751017528469" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5616" width="100%" height="100%"><path d="M153.6 307.2h250.88l-51.2-76.8H153.6V307.2z m368.64 0H870.4c56.32 0 102.4 46.08 102.4 102.4v435.2c0 56.32-46.08 102.4-102.4 102.4H153.6c-56.32 0-102.4-46.08-102.4-102.4v-614.4c0-56.32 46.08-102.4 102.4-102.4h199.68c35.84 0 66.56 15.36 87.04 46.08L522.24 307.2zM153.6 409.6v435.2h716.8V409.6H153.6z" fill="currentColor" p-id="5617"></path></svg>

After

Width:  |  Height:  |  Size: 502 B

View File

@ -0,0 +1 @@
<svg t="1748923025889" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="130072" width="100%" height="100%"><path d="M310.784 132.8c38.144 21.056 412.864 323.264 445.12 342.144 28.864 16.896 29.376 57.216 0 74.112-44.736 25.728-417.536 326.464-443.712 341.312-32.768 18.624-65.856-5.056-65.856-36.864 0-24.512 0-648.448 0-683.968C246.272 134.4 282.88 117.376 310.784 132.8z" p-id="130073" fill="currentColor"></path></svg>

After

Width:  |  Height:  |  Size: 465 B

View File

@ -0,0 +1 @@
<svg t="1748922878918" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="126615" width="100%" height="100%"><path d="M511.999488 819.413462 72.8374 204.586538 951.1626 204.586538Z" fill="currentColor" p-id="126616"></path></svg>

After

Width:  |  Height:  |  Size: 271 B

View File

@ -0,0 +1 @@
<svg t="1748907493461" class="icon" viewBox="0 0 1260 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="124005" width="100%" height="100%"><path d="M1058.848012 935.688021H88.993243l113.018307-453.124559h969.854769zM88.993243 88.839223h397.403905l52.566655 157.699962h554.052534v147.186632h-893.63312A88.837646 88.837646 0 0 0 115.802237 461.011134l-27.33466 109.338641zM1181.853983 394.251483V246.013518A88.311979 88.311979 0 0 0 1093.016337 157.701539h-490.972549l-31.014326-95.67131A88.311979 88.311979 0 0 0 486.922815 0.001577H88.993243A88.311979 88.311979 0 0 0 0.155598 88.839223V935.688021a88.837646 88.837646 0 0 0 0 10.513331v14.718663a87.260646 87.260646 0 0 0 26.808993 37.847991h5.782332a87.260646 87.260646 0 0 0 39.950657 14.718663h986.150432A88.837646 88.837646 0 0 0 1145.057325 946.201352l113.018307-453.124559a88.837646 88.837646 0 0 0-76.221649-98.82531z" fill="currentColor" p-id="124006"></path></svg>

After

Width:  |  Height:  |  Size: 935 B