Commit 0a605521 by zhaopanyu

zpy修改排序

parent c7d670fd
......@@ -124,8 +124,8 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table border :data="assessmentList" @selection-change="handleSelectionChange" @sort-change="sortChange"
:default-sort="{ prop: 'schoolYear', order: 'descending' }" :row-style="{ height: '1px' }"
:cell-style="{ padding: '0px' }" :header-cell-style="tableHeaderStyle" :fit="true">
:row-style="{ height: '1px' }" :cell-style="{ padding: '0px' }" :header-cell-style="tableHeaderStyle"
:fit="true">
<el-table-column type="selection" width="30" align="center" />
<el-table-column type="index" label="序号" width="30" align="center" sortable fixed="left" />
<el-table-column label="学年" align="center" prop="schoolYear" sortable :min-width="screenWidth * 0.04"
......@@ -416,8 +416,8 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 20,
orderByColumn: "",
isAsc: "asc",
orderByColumn: "schoolYear desc ,semester desc,id",
isAsc: "desc",
semester: null,
year: null,
schoolYear: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment