Commit 0a605521 by zhaopanyu

zpy修改排序

parent c7d670fd
...@@ -124,8 +124,8 @@ ...@@ -124,8 +124,8 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table border :data="assessmentList" @selection-change="handleSelectionChange" @sort-change="sortChange" <el-table border :data="assessmentList" @selection-change="handleSelectionChange" @sort-change="sortChange"
:default-sort="{ prop: 'schoolYear', order: 'descending' }" :row-style="{ height: '1px' }" :row-style="{ height: '1px' }" :cell-style="{ padding: '0px' }" :header-cell-style="tableHeaderStyle"
:cell-style="{ padding: '0px' }" :header-cell-style="tableHeaderStyle" :fit="true"> :fit="true">
<el-table-column type="selection" width="30" align="center" /> <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 type="index" label="序号" width="30" align="center" sortable fixed="left" />
<el-table-column label="学年" align="center" prop="schoolYear" sortable :min-width="screenWidth * 0.04" <el-table-column label="学年" align="center" prop="schoolYear" sortable :min-width="screenWidth * 0.04"
...@@ -416,8 +416,8 @@ export default { ...@@ -416,8 +416,8 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 20, pageSize: 20,
orderByColumn: "", orderByColumn: "schoolYear desc ,semester desc,id",
isAsc: "asc", isAsc: "desc",
semester: null, semester: null,
year: null, year: null,
schoolYear: 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