部分页面添加默认排序规则新增排序字段
parent
05bc41f5e2
commit
5e2522147f
|
@ -21,6 +21,7 @@
|
||||||
v-adaptive="{bottomOffset:45}"
|
v-adaptive="{bottomOffset:45}"
|
||||||
height="100"
|
height="100"
|
||||||
@sort-change="handleSortByColumn"
|
@sort-change="handleSortByColumn"
|
||||||
|
:default-sort ="{prop: 'ConfirmTime', order: 'descending'}"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<!-- 项目编号 -->
|
<!-- 项目编号 -->
|
||||||
|
@ -48,16 +49,19 @@
|
||||||
:label="$t('trials:sysDocBeSigned:table:fileType')"
|
:label="$t('trials:sysDocBeSigned:table:fileType')"
|
||||||
prop="FileType"
|
prop="FileType"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:fileName')"
|
:label="$t('trials:sysDocBeSigned:table:fileName')"
|
||||||
prop="Name"
|
prop="Name"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:ConfirmTime')"
|
:label="$t('trials:sysDocBeSigned:table:ConfirmTime')"
|
||||||
prop="ConfirmTime"
|
prop="ConfirmTime"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('common:action:action')"
|
:label="$t('common:action:action')"
|
||||||
|
@ -132,8 +136,8 @@ const searchDataDefault = () => {
|
||||||
IsSigned: true,
|
IsSigned: true,
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
asc: true,
|
asc: false,
|
||||||
sortField: ''
|
sortField: 'ConfirmTime'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -21,22 +21,26 @@
|
||||||
v-adaptive="{bottomOffset:45}"
|
v-adaptive="{bottomOffset:45}"
|
||||||
height="100"
|
height="100"
|
||||||
@sort-change="handleSortByColumn"
|
@sort-change="handleSortByColumn"
|
||||||
|
:default-sort ="{prop: 'UpdateTime', order: 'descending'}"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:fileType')"
|
:label="$t('trials:sysDocBeSigned:table:fileType')"
|
||||||
prop="FileType"
|
prop="FileType"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:fileName')"
|
:label="$t('trials:sysDocBeSigned:table:fileName')"
|
||||||
prop="Name"
|
prop="Name"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:uploadTime')"
|
:label="$t('trials:sysDocBeSigned:table:uploadTime')"
|
||||||
prop="UpdateTime"
|
prop="UpdateTime"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('common:action:action')"
|
:label="$t('common:action:action')"
|
||||||
|
@ -119,8 +123,8 @@ const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
asc: true,
|
asc: false,
|
||||||
sortField: ''
|
sortField: 'UpdateTime'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -21,22 +21,26 @@
|
||||||
v-adaptive="{bottomOffset:45}"
|
v-adaptive="{bottomOffset:45}"
|
||||||
height="100"
|
height="100"
|
||||||
@sort-change="handleSortByColumn"
|
@sort-change="handleSortByColumn"
|
||||||
|
:default-sort ="{prop: 'UpdateTime', order: 'descending'}"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:fileType')"
|
:label="$t('trials:sysDocBeSigned:table:fileType')"
|
||||||
prop="FileType"
|
prop="FileType"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:fileName')"
|
:label="$t('trials:sysDocBeSigned:table:fileName')"
|
||||||
prop="Name"
|
prop="Name"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:uploadTime')"
|
:label="$t('trials:sysDocBeSigned:table:uploadTime')"
|
||||||
prop="UpdateTime"
|
prop="UpdateTime"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('common:action:action')"
|
:label="$t('common:action:action')"
|
||||||
|
@ -119,8 +123,8 @@ const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
asc: true,
|
asc: false,
|
||||||
sortField: ''
|
sortField: 'UpdateTime'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
|
Loading…
Reference in New Issue