项目列表

main
wangxiaoshuang 2024-04-03 10:22:35 +08:00
parent 267444c8ad
commit 8b1b12dce8
2 changed files with 27 additions and 10 deletions

View File

@ -3515,3 +3515,12 @@ export function addOrUpdateTrialHir(param) {
data: param data: param
}) })
} }
// 获取项目列表项目
export function getTrialListHir(param) {
return request({
url: `/Patient/getTrialList`,
method: 'post',
data: param
})
}

View File

@ -6,15 +6,15 @@
<!-- 项目类型 --> <!-- 项目类型 -->
<el-form-item :label="$t('trials:trials-list:form:trialType')"> <el-form-item :label="$t('trials:trials-list:form:trialType')">
<el-select <el-select
v-model="searchData.SponsorId" v-model="searchData.trialType"
style="width: 150px" style="width: 150px"
clearable clearable
> >
<el-option <el-option
v-for="item in sponsorList" v-for="item in $d.TrialType"
:key="item.Id" :key="item.id"
:label="item.SponsorName" :label="item.label"
:value="item.Id" :value="item.value"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -92,13 +92,19 @@
height="100" height="100"
@sort-change="handleSortChange" @sort-change="handleSortChange"
> >
<!-- <el-table-column type="selection" align="left" width="45" /> <el-table-column type="selection" align="left" width="45" />
<el-table-column type="index" width="40" align="left" /> --> <el-table-column type="index" width="40" align="left" />
<el-table-column <el-table-column
prop="TrialCode" prop="trialType"
:label="$t('trials:trials-list:form:trialType')" :label="$t('trials:trials-list:form:trialType')"
show-overflow-tooltip show-overflow-tooltip
/> >
<template slot-scope="scope" v-for="item in $d.trialType">
<span :key="item.id" v-if="scope.row.trialType === item.value">{{
item.labl
}}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="ResearchProgramNo" prop="ResearchProgramNo"
:label="$t('trials:trials-list:table:researchNumber')" :label="$t('trials:trials-list:table:researchNumber')"
@ -301,6 +307,7 @@ import {
abandonTrial, abandonTrial,
ifTrialCanOngoing, ifTrialCanOngoing,
getTrialToBeDoneList, getTrialToBeDoneList,
getTrialListHir,
} from "@/api/trials"; } from "@/api/trials";
import store from "@/store"; import store from "@/store";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
@ -331,6 +338,7 @@ const searchDataDefault = () => {
Asc: false, Asc: false,
SortField: "", SortField: "",
SponsorName: "", SponsorName: "",
trialType: null,
}; };
}; };
export default { export default {
@ -404,7 +412,7 @@ export default {
// //
getList() { getList() {
this.listLoading = true; this.listLoading = true;
getTrialToBeDoneList(this.searchData) getTrialListHir(this.searchData)
.then((res) => { .then((res) => {
this.list = res.Result.CurrentPageData; this.list = res.Result.CurrentPageData;
this.total = res.Result.TotalCount; this.total = res.Result.TotalCount;