fix(project): add list row numbers and align search actions

Keep project management lists and related detail, preview and audit dialogs consistent with existing table and filter styles. Number paginated rows continuously and align statistics and assignment searches to the right.
This commit is contained in:
zlwu committed 2026-11-02 16:31:02 +08:00
1 parent f41e6f60d6
commit b510d18439
4 files changed
+48 -6

No files matched your search

@@ -58,6 +58,14 @@
>
<div class="list-body list-wrap"
><el-table :data="rows" v-loading="loading" class="list-table" stripe>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
:index="(index) => (query.page - 1) * query.pageSize + index + 1"
/>
<el-table-column
:prop="isTeam ? 'teamName' : 'projectName'"
:label="isTeam ? '项目组' : '项目名称'"
@@ -38,14 +38,24 @@
><el-checkbox v-model="query.unassigned">仅未归属</el-checkbox></el-form-item
> </div
><div class="filter-actions-row"
><el-button type="primary" @click="search"
><el-icon><Search /></el-icon>搜索</el-button
><div class="filter-actions-end"
><el-button type="primary" @click="search"
><el-icon><Search /></el-icon>搜索</el-button
></div
></div
></el-form
>
</div>
<div class="list-body list-wrap"
><el-table :data="rows" v-loading="loading" class="list-table" stripe>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
:index="(index) => (query.page - 1) * query.pageSize + index + 1"
/>
<el-table-column prop="bizNo" label="单据编号" min-width="180" />
<el-table-column prop="teamName" label="项目组" min-width="140" />
<el-table-column prop="projectName" label="项目" min-width="160"
@@ -103,7 +113,13 @@
:closable="false"
/>
<el-table :data="previewRows" class="list-table" stripe
><el-table-column prop="bizNo" label="关联单据" min-width="200" /><el-table-column
><el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center" />
<el-table-column prop="bizNo" label="关联单据" min-width="200" /><el-table-column
prop="projectName"
label="原项目"
min-width="160"
@@ -129,7 +145,14 @@
append-to-body
class="dialog-form-layout"
><el-table :data="historyRows" class="list-table" stripe
><el-table-column prop="oldProjectName" label="原项目" min-width="140" /><el-table-column
><el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
/>
<el-table-column prop="oldProjectName" label="原项目" min-width="140" /><el-table-column
prop="newProjectName"
label="新项目"
min-width="140"
@@ -24,8 +24,10 @@
end-placeholder="结束日期"
/></el-form-item> </div
><div class="filter-actions-row"
><el-button type="primary" @click="load"
><el-icon><Search /></el-icon>查询</el-button
><div class="filter-actions-end"
><el-button type="primary" @click="load"
><el-icon><Search /></el-icon>查询</el-button
></div
></div
></el-form
></div
@@ -37,6 +39,13 @@
/>
<div class="list-body list-wrap"
><el-table :data="displayRows" v-loading="loading" class="list-table" stripe>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
/>
<el-table-column prop="name" label="项目组 / 项目" min-width="200" /><el-table-column
prop="teamName"
label="所属项目组"