排序修改
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
parent
342f833eb8
commit
3b96a5326e
|
@ -47,7 +47,7 @@
|
||||||
<el-table-column prop="Name" :label="$t('trials:self-attachment:table:fileName')" show-overflow-tooltip
|
<el-table-column prop="Name" :label="$t('trials:self-attachment:table:fileName')" show-overflow-tooltip
|
||||||
sortable="custom" />
|
sortable="custom" />
|
||||||
<el-table-column :label="$t('trials:self-attachment:table:AttachmentCount')" prop="AttachmentCount"
|
<el-table-column :label="$t('trials:self-attachment:table:AttachmentCount')" prop="AttachmentCount"
|
||||||
show-overflow-tooltip sortable="custom">
|
show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" @click.stop="openAttachment(scope.row, true)">{{ scope.row.AttachmentCount
|
<el-button type="text" @click.stop="openAttachment(scope.row, true)">{{ scope.row.AttachmentCount
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
|
|
|
@ -147,7 +147,6 @@
|
||||||
prop="UserType"
|
prop="UserType"
|
||||||
:label="$t('trials:staff:table:userType')"
|
:label="$t('trials:staff:table:userType')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable
|
|
||||||
width="160"
|
width="160"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
|
@ -356,7 +356,14 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.searchData.Asc = false
|
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.searchData.PageIndex = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue