@@ -151,6 +158,7 @@
:label="$t('dictionary:medicalAudit:label:IsGeneral')"
min-width="120"
show-overflow-tooltip
+ sortable="custom"
>
@@ -164,6 +172,7 @@
:label="$t('trials:qcCfg:table:parentQs')"
show-overflow-tooltip
min-width="140"
+ sortable="custom"
/>
{{ $fd('YesOrNo', scope.row.IsRequired) }}
@@ -187,6 +198,7 @@
prop="IsEnable"
:label="$t('trials:qcCfg:table:isEnable')"
min-width="120"
+ sortable="custom"
>
{{ $fd('YesOrNo', scope.row.IsEnable) }}
@@ -231,7 +243,9 @@ const searchDataDefault = () => {
LanguageType: null,
Type: '',
CriterionTypeEnum: null,
- IsGeneral: null
+ IsGeneral: null,
+ Asc: false,
+ SortField: ''
}
}
export default {
@@ -254,6 +268,17 @@ export default {
async handleExport() {
await GetReadingMedicineSystemQuestionList_Export(this.searchData)
},
+ // 排序
+ handleSortByColumn(column) {
+ if (column.order === 'ascending') {
+ this.searchData.Asc = true
+ } else {
+ this.searchData.Asc = false
+ }
+ this.searchData.SortField = column.prop
+ this.searchData.PageIndex = 1
+ this.getList()
+ },
// 获取受试者列表信息
getList() {
this.loading = true