排序修改
continuous-integration/drone/push Build encountered an error Details

uat
wangxiaoshuang 2025-09-15 14:23:21 +08:00
parent 342f833eb8
commit 3b96a5326e
3 changed files with 9 additions and 3 deletions

View File

@ -47,7 +47,7 @@
<el-table-column prop="Name" :label="$t('trials:self-attachment:table:fileName')" show-overflow-tooltip
sortable="custom" />
<el-table-column :label="$t('trials:self-attachment:table:AttachmentCount')" prop="AttachmentCount"
show-overflow-tooltip sortable="custom">
show-overflow-tooltip>
<template slot-scope="scope">
<el-button type="text" @click.stop="openAttachment(scope.row, true)">{{ scope.row.AttachmentCount
}}</el-button>

View File

@ -147,7 +147,6 @@
prop="UserType"
:label="$t('trials:staff:table:userType')"
show-overflow-tooltip
sortable
width="160"
>
<template slot-scope="scope">

View File

@ -356,7 +356,14 @@ export default {
} else {
this.searchData.Asc = false
}
this.searchData.SortField = column.prop
let prop = column.prop
if (prop === 'TotalImageSizeStr') {
prop = 'TotalImageSize'
}
if (prop === 'TotalReadingImageSizeStr') {
prop = 'TotalReadingImageSize'
}
this.searchData.SortField = prop
this.searchData.PageIndex = 1
this.getList()
},