部分页面添加默认排序规则新增排序字段
parent
5e2522147f
commit
1724e020f6
|
@ -117,6 +117,7 @@
|
|||
@sort-change="handleSortChange"
|
||||
stripe
|
||||
height="100"
|
||||
:default-sort ="{prop: 'CreateTime', order: 'descending'}"
|
||||
>
|
||||
<el-table-column type="index" width="40" fixed="left" align="left" />
|
||||
<!-- 研究方案号 -->
|
||||
|
@ -748,7 +749,7 @@ export default {
|
|||
data() {
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
SortField: '',
|
||||
SortField: 'CreateTime',
|
||||
Asc: false,
|
||||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
:data="list"
|
||||
class="table"
|
||||
@sort-change="handleSortByColumn"
|
||||
:default-sort ="{prop: 'CreateTime', order: 'descending'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="index"
|
||||
|
@ -90,6 +91,7 @@
|
|||
prop="IP"
|
||||
min-width="90"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
:label="$t('trials:loginLog:table:incorrectUserName')"
|
||||
|
@ -110,6 +112,7 @@
|
|||
prop="LoginUserTypeEnum"
|
||||
min-width="90"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('UserType',scope.row.LoginUserTypeEnum) }}
|
||||
|
@ -120,12 +123,14 @@
|
|||
prop="optUserName"
|
||||
min-width="90"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
:label="$t('trials:loginLog:table:optUserType')"
|
||||
prop="OptUserTypeEnum"
|
||||
min-width="90"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('UserType',scope.row.OptUserTypeEnum) }}
|
||||
|
@ -136,6 +141,7 @@
|
|||
prop="CreateTime"
|
||||
min-width="90"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
</el-table>
|
||||
<!-- 分页组件 -->
|
||||
|
@ -157,7 +163,7 @@ const searchDataDefault = () => {
|
|||
BeginDate: '',
|
||||
EndDate: '',
|
||||
Asc: false,
|
||||
SortField: '',
|
||||
SortField: 'CreateTime',
|
||||
PageIndex: 1,
|
||||
PageSize: 20
|
||||
}
|
||||
|
|
|
@ -90,6 +90,7 @@
|
|||
stripe
|
||||
height="100"
|
||||
@sort-change="handleSortByColumn"
|
||||
:default-sort ="{prop: 'ArchiveFinishedTime', order: 'descending'}"
|
||||
>
|
||||
<el-table-column type="index" width="40" align="left" />
|
||||
<!-- 中心编号 -->
|
||||
|
@ -337,7 +338,7 @@ import BaseModel from '@/components/BaseModel'
|
|||
import axios from "axios";
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
SortField: '',
|
||||
SortField: 'ArchiveFinishedTime',
|
||||
Asc: false,
|
||||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
|
|
Loading…
Reference in New Issue