feat: 展示任务PDD店铺和客户端名称 (#158)

This commit is contained in:
chengma
2026-08-11 15:49:01 +08:00
parent 3e52e188f5
commit df1287f8eb
7 changed files with 175 additions and 28 deletions
+4 -2
View File
@@ -66,6 +66,7 @@
<th>类型</th>
<th>执行模式</th>
<th>目标</th>
<th>PDD 店铺</th>
<th>状态</th>
<th>客户端</th>
{{if .ShowCreator}}<th>创建人</th>{{end}}
@@ -84,15 +85,16 @@
<td>{{.TypeText}}</td>
<td>{{.ExecutionModeText}}</td>
<td class="truncate" title="{{.Target}}">{{.Target}}</td>
<td class="truncate" title="{{.PddShopText}}">{{.PddShopText}}</td>
<td>{{.StatusText}}</td>
<td>{{.ClientText}}</td>
<td class="truncate" title="{{.ClientTitle}}">{{.ClientText}}</td>
{{if $.ShowCreator}}<td>{{.CreatorText}}</td>{{end}}
<td>{{.UpdatedAt}}</td>
</tr>
{{else}}
{{/* 空状态要分情况:从没建过任务 和 筛选没结果,下一步动作完全不同 */}}
<tr class="empty">
<td colspan="{{if .ShowCreator}}9{{else}}8{{end}}">
<td colspan="{{if .ShowCreator}}10{{else}}9{{end}}">
{{if .IsFiltered}}
当前筛选条件下没有任务。<br>
<small>换个类型、状态或关键词再试。<a href="/tasks">查看全部</a></small>