列表添加排序
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2024-05-11 18:04:44 +08:00
parent b1850e8056
commit 1f50eb9f16
7 changed files with 91 additions and 13 deletions

View File

@ -43,6 +43,9 @@
height="100" height="100"
:data="list" :data="list"
class="table" class="table"
ref="dicomAeTable"
@sort-change="handleSortChange"
:default-sort="{ prop: 'CreateTime', order: 'descending' }"
> >
<!--AE Title--> <!--AE Title-->
<el-table-column <el-table-column
@ -50,6 +53,7 @@
prop="CalledAE" prop="CalledAE"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<!--IP--> <!--IP-->
<el-table-column <el-table-column
@ -57,6 +61,7 @@
prop="IP" prop="IP"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<!--Port--> <!--Port-->
<el-table-column <el-table-column
@ -64,6 +69,7 @@
prop="Port" prop="Port"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<!--Modality--> <!--Modality-->
<el-table-column <el-table-column
@ -71,6 +77,7 @@
prop="Modality" prop="Modality"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<!--Description--> <!--Description-->
<el-table-column <el-table-column
@ -78,6 +85,7 @@
prop="Description" prop="Description"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<!--测试状态--> <!--测试状态-->
<el-table-column <el-table-column
@ -85,6 +93,7 @@
prop="IsTestOK" prop="IsTestOK"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.IsTestOK ? 'success' : 'danger'">{{ <el-tag :type="scope.row.IsTestOK ? 'success' : 'danger'">{{
@ -98,6 +107,7 @@
prop="CreateTime" prop="CreateTime"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<!--最后测试时间--> <!--最后测试时间-->
<el-table-column <el-table-column
@ -105,6 +115,7 @@
prop="LatestTestTime" prop="LatestTestTime"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<el-table-column <el-table-column
:label="$t('system:dicom:table:action')" :label="$t('system:dicom:table:action')"
@ -154,19 +165,24 @@
import Pagination from "@/components/Pagination"; import Pagination from "@/components/Pagination";
import editDicom from "./components/edit-dicom"; import editDicom from "./components/edit-dicom";
import { getDicomAEList, deleteDiicomAE, testConnect } from "@/api/dicomAE.js"; import { getDicomAEList, deleteDiicomAE, testConnect } from "@/api/dicomAE.js";
const defaultSearchData = () => {
return {
CalledAE: null,
IP: null,
Port: null,
PageIndex: 1,
PageSize: 10,
SortField: "CreateTime",
Asc: false,
};
};
export default { export default {
name: "dicomAE", name: "dicomAE",
components: { Pagination, editDicom }, components: { Pagination, editDicom },
data() { data() {
return { return {
// //
searchData: { searchData: defaultSearchData(),
CalledAE: null,
IP: null,
Port: null,
PageIndex: 1,
PageSize: 10,
},
total: 0, total: 0,
// //
loading: false, loading: false,
@ -181,6 +197,14 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
//
handleSortChange(sort) {
this.searchData.SortField = sort.prop;
if (sort.order === "ascending") this.searchData.Asc = true;
if (sort.order === "descending") this.searchData.Asc = false;
if (!sort.order) this.searchData.SortField = null;
this.getList();
},
// //
async getList() { async getList() {
let data = {}; let data = {};
@ -201,11 +225,8 @@ export default {
}, },
// //
reset() { reset() {
Object.keys(this.searchData).forEach((key) => { this.searchData = defaultSearchData();
this.searchData[key] = null; this.$refs.dicomAeTable.clearSort();
});
this.searchData.PageIndex = 1;
this.searchData.PageSize = 10;
this.getList(); this.getList();
}, },
// //

View File

@ -104,12 +104,15 @@
height="100" height="100"
:data="list" :data="list"
class="table" class="table"
ref="noticeTable"
@sort-change="handleSortChange"
> >
<el-table-column type="index" width="50" /> <el-table-column type="index" width="50" />
<el-table-column <el-table-column
:label="$t('system:notice:table:NoticeLevel')" :label="$t('system:notice:table:NoticeLevel')"
prop="NoticeLevelEnum" prop="NoticeLevelEnum"
min-width="120" min-width="120"
sortable="custom"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -128,6 +131,7 @@
:label="$t('system:notice:table:NoticeType')" :label="$t('system:notice:table:NoticeType')"
prop="NoticeTypeEnum" prop="NoticeTypeEnum"
min-width="100" min-width="100"
sortable="custom"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -156,6 +160,7 @@
:label="$t('system:notice:table:NoticeState')" :label="$t('system:notice:table:NoticeState')"
prop="NoticeStateEnum" prop="NoticeStateEnum"
min-width="100" min-width="100"
sortable="custom"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -184,6 +189,7 @@
:label="$t('system:notice:table:ApplicableProject')" :label="$t('system:notice:table:ApplicableProject')"
prop="ApplicableProjectEnum" prop="ApplicableProjectEnum"
min-width="100" min-width="100"
sortable="custom"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -201,7 +207,7 @@
<el-table-column <el-table-column
:label="$t('system:notice:table:NoticeUserTypeList')" :label="$t('system:notice:table:NoticeUserTypeList')"
prop="NoticeUserTypeList" prop="NoticeUserTypeList"
min-width="80" min-width="100"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -217,6 +223,7 @@
prop="NoticeModeEnum" prop="NoticeModeEnum"
min-width="100" min-width="100"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ {{
@ -235,6 +242,7 @@
prop="StartDate" prop="StartDate"
min-width="240" min-width="240"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.StartDate }} {{ scope.row.StartDate }}
@ -245,18 +253,21 @@
prop="PublishUserName" prop="PublishUserName"
min-width="100" min-width="100"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<el-table-column <el-table-column
:label="$t('system:notice:table:PublishedTime')" :label="$t('system:notice:table:PublishedTime')"
prop="PublishedTime" prop="PublishedTime"
min-width="160" min-width="160"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<el-table-column <el-table-column
:label="$t('system:notice:table:UpdateTime')" :label="$t('system:notice:table:UpdateTime')"
prop="UpdateTime" prop="UpdateTime"
min-width="160" min-width="160"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.EndDate ? scope.row.EndDate : scope.row.CreateTime }} {{ scope.row.EndDate ? scope.row.EndDate : scope.row.CreateTime }}
@ -268,6 +279,7 @@
prop="FileName" prop="FileName"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a <a
@ -393,6 +405,14 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
//
handleSortChange(sort) {
this.searchData.SortField = sort.prop;
if (sort.order === "ascending") this.searchData.Asc = true;
if (sort.order === "descending") this.searchData.Asc = false;
if (!sort.order) this.searchData.SortField = null;
this.getList();
},
handlePush(row) { handlePush(row) {
this.loading = true; this.loading = true;
var params = { ...row }; var params = { ...row };

View File

@ -30,6 +30,7 @@
:data="list" :data="list"
stripe stripe
height="100" height="100"
:default-sort="{ prop: 'CreateTime', order: 'descending' }"
> >
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<!--研究方案号--> <!--研究方案号-->
@ -38,6 +39,7 @@
:label="$t('trials:trials-list:table:researchNumber')" :label="$t('trials:trials-list:table:researchNumber')"
show-overflow-tooltip show-overflow-tooltip
min-width="120" min-width="120"
sortable
></el-table-column> ></el-table-column>
<!--试验名称--> <!--试验名称-->
<el-table-column <el-table-column
@ -45,6 +47,7 @@
:label="$t('trials:trials-list:table:experimentName')" :label="$t('trials:trials-list:table:experimentName')"
show-overflow-tooltip show-overflow-tooltip
min-width="120" min-width="120"
sortable
></el-table-column> ></el-table-column>
<!--申办方--> <!--申办方-->
<el-table-column <el-table-column
@ -52,6 +55,7 @@
:label="$t('trials:trials-list:table:sponsor')" :label="$t('trials:trials-list:table:sponsor')"
show-overflow-tooltip show-overflow-tooltip
min-width="120" min-width="120"
sortable
></el-table-column> ></el-table-column>
<!--匹配受试者编号--> <!--匹配受试者编号-->
<el-table-column <el-table-column
@ -59,6 +63,7 @@
:label="$t('trials:inspectionTrials:table:subjectId')" :label="$t('trials:inspectionTrials:table:subjectId')"
show-overflow-tooltip show-overflow-tooltip
min-width="140" min-width="140"
sortable
></el-table-column> ></el-table-column>
<!--姓名--> <!--姓名-->
<el-table-column <el-table-column
@ -66,6 +71,7 @@
:label="$t('trials:researchStaff:table:Name')" :label="$t('trials:researchStaff:table:Name')"
show-overflow-tooltip show-overflow-tooltip
min-width="120" min-width="120"
sortable
></el-table-column> ></el-table-column>
<!--年龄--> <!--年龄-->
<el-table-column <el-table-column
@ -73,6 +79,7 @@
:label="$t('trials:subject:table:age')" :label="$t('trials:subject:table:age')"
show-overflow-tooltip show-overflow-tooltip
min-width="120" min-width="120"
sortable
></el-table-column> ></el-table-column>
<!--性别--> <!--性别-->
<el-table-column <el-table-column
@ -80,6 +87,7 @@
:label="$t('trials:subject:table:gender')" :label="$t('trials:subject:table:gender')"
show-overflow-tooltip show-overflow-tooltip
min-width="100" min-width="100"
sortable
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ $fd("sex", scope.row.Sex) }}</span> <span>{{ $fd("sex", scope.row.Sex) }}</span>
@ -91,6 +99,7 @@
:label="$t('trials:trials-list:table:status')" :label="$t('trials:trials-list:table:status')"
show-overflow-tooltip show-overflow-tooltip
min-width="100" min-width="100"
sortable
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag
@ -111,6 +120,7 @@
:label="$t('trials:staff:table:joinTime')" :label="$t('trials:staff:table:joinTime')"
show-overflow-tooltip show-overflow-tooltip
min-width="140" min-width="140"
sortable
></el-table-column> ></el-table-column>
<!--操作--> <!--操作-->
<el-table-column :label="$t('common:action:action')" min-width="100"> <el-table-column :label="$t('common:action:action')" min-width="100">

View File

@ -100,6 +100,7 @@
height="100" height="100"
@sort-change="handleSortChange" @sort-change="handleSortChange"
@row-click="handleDetail" @row-click="handleDetail"
:default-sort="{ prop: 'createTime', order: 'descending' }"
> >
<!-- <el-table-column type="selection" align="left" width="45" /> --> <!-- <el-table-column type="selection" align="left" width="45" /> -->
<el-table-column width="40"> <el-table-column width="40">
@ -222,6 +223,7 @@
:label="$t('trials:trials-list:table:UnSubmitCount')" :label="$t('trials:trials-list:table:UnSubmitCount')"
show-overflow-tooltip show-overflow-tooltip
v-if="hasPermi(['role:pm'])" v-if="hasPermi(['role:pm'])"
sortable="custom"
/> />
<!--待阅片数量--> <!--待阅片数量-->
<el-table-column <el-table-column
@ -229,6 +231,7 @@
:label="$t('trials:trials-list:table:UnReadCount')" :label="$t('trials:trials-list:table:UnReadCount')"
show-overflow-tooltip show-overflow-tooltip
v-if="hasPermi(['role:pm', 'role:pi', 'role:sr'])" v-if="hasPermi(['role:pm', 'role:pi', 'role:sr'])"
sortable="custom"
/> />
<!--到期日--> <!--到期日-->
<el-table-column <el-table-column

View File

@ -22,6 +22,7 @@
stripe stripe
v-adaptive="{ bottomOffset: 60 }" v-adaptive="{ bottomOffset: 60 }"
height="300" height="300"
:default-sort="{ prop: 'StudyTime', order: 'descending' }"
> >
<!-- <el-table-column type="selection" align="center" width="45" /> --> <!-- <el-table-column type="selection" align="center" width="45" /> -->
<!--患者编号--> <!--患者编号-->
@ -29,6 +30,7 @@
align="center" align="center"
prop="PatientIdStr" prop="PatientIdStr"
:label="$t('trials:uploadDicomList:table:pId')" :label="$t('trials:uploadDicomList:table:pId')"
sortable
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!-- 患者姓名 --> <!-- 患者姓名 -->
@ -36,6 +38,7 @@
prop="PatientName" prop="PatientName"
:label="$t('trials:uploadDicomList:table:patientName')" :label="$t('trials:uploadDicomList:table:patientName')"
min-width="80" min-width="80"
sortable
show-overflow-tooltip show-overflow-tooltip
/> />
<!--检查描述--> <!--检查描述-->
@ -44,6 +47,7 @@
prop="Description" prop="Description"
:label="$t('trials:inspection:table:studyDescription')" :label="$t('trials:inspection:table:studyDescription')"
show-overflow-tooltip show-overflow-tooltip
sortable
min-width="100" min-width="100"
></el-table-column> ></el-table-column>
<!--检查类型--> <!--检查类型-->
@ -51,6 +55,7 @@
align="center" align="center"
prop="Modalities" prop="Modalities"
:label="$t('trials:audit:table:modality')" :label="$t('trials:audit:table:modality')"
sortable
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!--序列数量--> <!--序列数量-->
@ -58,6 +63,7 @@
align="center" align="center"
prop="SeriesCount" prop="SeriesCount"
:label="$t('trials:audit:table:seriesCount')" :label="$t('trials:audit:table:seriesCount')"
sortable
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!--图像数量--> <!--图像数量-->
@ -65,6 +71,7 @@
align="center" align="center"
prop="InstanceCount" prop="InstanceCount"
:label="$t('trials:audit:table:instanceCount')" :label="$t('trials:audit:table:instanceCount')"
sortable
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!--检查日期--> <!--检查日期-->
@ -72,6 +79,7 @@
align="center" align="center"
prop="StudyTime" prop="StudyTime"
:label="$t('trials:audit:table:studyDate')" :label="$t('trials:audit:table:studyDate')"
sortable
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!--所属访视--> <!--所属访视-->
@ -79,6 +87,7 @@
align="center" align="center"
prop="VisitName" prop="VisitName"
:label="$t('trials:hirVisit:table:ownershipVisit')" :label="$t('trials:hirVisit:table:ownershipVisit')"
sortable
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!--操作--> <!--操作-->

View File

@ -18,6 +18,7 @@
style="width: 100%" style="width: 100%"
v-adaptive="{ bottomOffset: 60 }" v-adaptive="{ bottomOffset: 60 }"
height="300" height="300"
:default-sort="{ prop: 'StudyTime', order: 'descending' }"
> >
<!-- 患者编号 --> <!-- 患者编号 -->
<el-table-column <el-table-column
@ -25,6 +26,7 @@
:label="$t('trials:uploadDicomList:table:pId')" :label="$t('trials:uploadDicomList:table:pId')"
min-width="80" min-width="80"
show-overflow-tooltip show-overflow-tooltip
sortable
/> />
<!-- 患者姓名 --> <!-- 患者姓名 -->
<el-table-column <el-table-column
@ -32,6 +34,7 @@
:label="$t('trials:uploadDicomList:table:patientName')" :label="$t('trials:uploadDicomList:table:patientName')"
min-width="80" min-width="80"
show-overflow-tooltip show-overflow-tooltip
sortable
/> />
<!-- 检查编号 --> <!-- 检查编号 -->
<el-table-column <el-table-column
@ -39,16 +42,19 @@
:label="$t('trials:uploadedDicoms:table:studyId')" :label="$t('trials:uploadedDicoms:table:studyId')"
min-width="80" min-width="80"
show-overflow-tooltip show-overflow-tooltip
sortable
/> />
<!-- 检查类型 --> <!-- 检查类型 -->
<el-table-column <el-table-column
prop="ModalityForEdit" prop="ModalityForEdit"
:label="$t('trials:audit:table:modality')" :label="$t('trials:audit:table:modality')"
sortable
/> />
<!-- 检查类型 --> <!-- 检查类型 -->
<el-table-column <el-table-column
prop="Modalities" prop="Modalities"
:label="$t('trials:audit:table:modality1')" :label="$t('trials:audit:table:modality1')"
sortable
/> />
<!--检查描述--> <!--检查描述-->
<el-table-column <el-table-column
@ -57,6 +63,7 @@
:label="$t('trials:inspection:table:studyDescription')" :label="$t('trials:inspection:table:studyDescription')"
show-overflow-tooltip show-overflow-tooltip
min-width="100" min-width="100"
sortable
></el-table-column> ></el-table-column>
<!-- 序列数量 --> <!-- 序列数量 -->
<el-table-column <el-table-column
@ -64,6 +71,7 @@
:label="$t('trials:uploadedDicoms:table:seriesCount')" :label="$t('trials:uploadedDicoms:table:seriesCount')"
min-width="100" min-width="100"
show-overflow-tooltip show-overflow-tooltip
sortable
/> />
<!-- 图像数量 --> <!-- 图像数量 -->
<el-table-column <el-table-column
@ -71,6 +79,7 @@
:label="$t('trials:uploadedDicoms:table:instanceCount')" :label="$t('trials:uploadedDicoms:table:instanceCount')"
min-width="100" min-width="100"
show-overflow-tooltip show-overflow-tooltip
sortable
/> />
<!-- 检查日期 --> <!-- 检查日期 -->
<el-table-column <el-table-column
@ -78,6 +87,7 @@
:label="$t('trials:uploadedDicoms:table:studyDate')" :label="$t('trials:uploadedDicoms:table:studyDate')"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ moment(scope.row.StudyTime).format("YYYY-MM-DD") }} {{ moment(scope.row.StudyTime).format("YYYY-MM-DD") }}
@ -88,6 +98,7 @@
prop="UploadedTime" prop="UploadedTime"
:label="$t('trials:uploadedDicoms:table:uploadedTime')" :label="$t('trials:uploadedDicoms:table:uploadedTime')"
min-width="80" min-width="80"
sortable
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column

View File

@ -96,6 +96,7 @@
:label="$t('trials:uploadDicomList:table:pId')" :label="$t('trials:uploadDicomList:table:pId')"
show-overflow-tooltip show-overflow-tooltip
min-width="140" min-width="140"
sortable="custom"
></el-table-column> ></el-table-column>
<!--患者姓名--> <!--患者姓名-->
<el-table-column <el-table-column
@ -103,6 +104,7 @@
:label="$t('trials:uploadDicomList:table:patientName')" :label="$t('trials:uploadDicomList:table:patientName')"
show-overflow-tooltip show-overflow-tooltip
min-width="140" min-width="140"
sortable="custom"
></el-table-column> ></el-table-column>
<!--出生日期--> <!--出生日期-->
<el-table-column <el-table-column
@ -110,6 +112,7 @@
:label="$t('trials:inspection:table:birthdate')" :label="$t('trials:inspection:table:birthdate')"
show-overflow-tooltip show-overflow-tooltip
min-width="140" min-width="140"
sortable="custom"
></el-table-column> ></el-table-column>
<!--性别--> <!--性别-->
<el-table-column <el-table-column
@ -117,6 +120,7 @@
:label="$t('trials:trials-myinfo:form:gender')" :label="$t('trials:trials-myinfo:form:gender')"
show-overflow-tooltip show-overflow-tooltip
min-width="140" min-width="140"
sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ $fd("sex", scope.row.PatientSex) }}</span> <span>{{ $fd("sex", scope.row.PatientSex) }}</span>