部分问题修改

main
wangxiaoshuang 2024-04-16 11:40:20 +08:00
parent 51e4d8a436
commit 11d1a3db6e
3 changed files with 11 additions and 78 deletions

View File

@ -35,38 +35,6 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 访视名称 -->
<!-- <el-form-item :label="$t('trials:globalReview:table:visitName')">
<el-select
v-model="searchData.SiteId"
clearable
filterable
style="width: 150px"
>
<el-option
v-for="item of visitOptions"
:key="item.SiteId"
:label="item.TrialSiteCode"
:value="item.SiteId"
/>
</el-select>
</el-form-item> -->
<!-- 状态 -->
<!-- <el-form-item :label="$t('trials:trials-list:table:status')">
<el-select
v-model="searchData.SiteId"
clearable
filterable
style="width: 150px"
>
<el-option
v-for="item of siteOptions"
:key="item.SiteId"
:label="item.TrialSiteCode"
:value="item.SiteId"
/>
</el-select>
</el-form-item> -->
<el-form-item> <el-form-item>
<!-- 查询 --> <!-- 查询 -->
<el-button type="primary" icon="el-icon-search" @click="handleSearch"> <el-button type="primary" icon="el-icon-search" @click="handleSearch">
@ -84,7 +52,7 @@
</el-form> </el-form>
</template> </template>
<!-- 访视列表 --> <!-- 访视列表:default-sort="{ prop: 'SubmitTime', order: 'descending' }" -->
<template slot="main-container"> <template slot="main-container">
<el-table <el-table
ref="visitList" ref="visitList"
@ -94,7 +62,6 @@
stripe stripe
height="100" height="100"
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
:default-sort="{ prop: 'SubmitTime', order: 'descending' }"
> >
<el-table-column width="40"> <el-table-column width="40">
<template slot-scope="scope"> <template slot-scope="scope">
@ -166,12 +133,6 @@
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
<!-- 数据收集 -->
<!-- <el-table-column
prop="StudyCode"
:label="$t('trials:crcUpload:table:dataCollected')"
show-overflow-tooltip
/> -->
<!-- 最早拍片日期 --> <!-- 最早拍片日期 -->
<el-table-column <el-table-column
prop="VisitEarliestStudyTime" prop="VisitEarliestStudyTime"
@ -352,8 +313,8 @@ const defaultSearchData = () => {
subjectSex: null, subjectSex: null,
pageIndex: 1, pageIndex: 1,
pageSize: 20, pageSize: 20,
asc: false, asc: true,
sortField: "SubmitTime", sortField: "",
}; };
}; };
export default { export default {
@ -414,9 +375,7 @@ export default {
let res = await getPatientSubejctVisitList(data); let res = await getPatientSubejctVisitList(data);
this.loading = false; this.loading = false;
if (res.IsSuccess) { if (res.IsSuccess) {
console.log(res.Result.CurrentPageData[0].SubmitState, "SubmitState");
this.list = res.Result.CurrentPageData; this.list = res.Result.CurrentPageData;
console.log(this.list[0].SubmitState, "list");
this.total = res.Result.TotalCount; this.total = res.Result.TotalCount;
} }
} catch (err) { } catch (err) {
@ -458,6 +417,7 @@ export default {
this.$message.success( this.$message.success(
this.$t("trials:crcUpload:message:submittedSuccessfully") this.$t("trials:crcUpload:message:submittedSuccessfully")
); );
this.getList();
} }
} catch (err) { } catch (err) {
this.loading = false; this.loading = false;

View File

@ -115,7 +115,7 @@
</el-form> </el-form>
</template> </template>
<!-- 检查列表 --> <!-- 检查列表 :default-sort="{ prop: 'StudyTime', order: 'descending' }" -->
<template slot="main-container"> <template slot="main-container">
<el-table <el-table
v-loading="loading" v-loading="loading"
@ -124,7 +124,6 @@
stripe stripe
height="100" height="100"
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
:default-sort="{ prop: 'StudyTime', order: 'descending' }"
> >
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<!-- 受试者编号 --> <!-- 受试者编号 -->
@ -164,32 +163,6 @@
<span>{{ $fd("sex", Number(scope.row.SubjectSex)) }}</span> <span>{{ $fd("sex", Number(scope.row.SubjectSex)) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 申请号 -->
<!-- <el-table-column
prop="StudyCode"
:label="$t('trials:study:form:accessionNumber')"
show-overflow-tooltip
sortable="custom"
min-width="100"
/> -->
<!--Called AE-->
<el-table-column
prop="CalledAE"
label="Called AE"
show-overflow-tooltip
min-width="140"
sortable="custom"
>
</el-table-column>
<!--Calling AE-->
<el-table-column
prop="CallingAE"
label="Calling AE"
show-overflow-tooltip
min-width="140"
sortable="custom"
>
</el-table-column>
<!-- 检查设备 --> <!-- 检查设备 -->
<el-table-column <el-table-column
prop="Modalities" prop="Modalities"
@ -334,8 +307,8 @@ const defaultSearchData = () => {
BeginStudyTime: null, BeginStudyTime: null,
EndStudyTime: null, EndStudyTime: null,
IsBindedVisit: null, IsBindedVisit: null,
Asc: false, Asc: true,
SortField: "StudyTime", SortField: null,
PageIndex: 1, PageIndex: 1,
PageSize: 20, PageSize: 20,
}; };
@ -434,9 +407,9 @@ export default {
}, },
// //
handleViewStudy(row) { handleViewStudy(row) {
let type ='Study' let type = "Study";
if (this.activeName === 'notSubmit') { if (this.activeName === "notSubmit") {
type = 'Patient' type = "Patient";
} }
var token = getToken(); var token = getToken();
const routeData = this.$router.resolve({ const routeData = this.$router.resolve({

View File

@ -113,7 +113,7 @@ export default {
}; };
}, },
mounted() { mounted() {
this.getSite(); // this.getSite();
this.getVisitPlanOptions(); this.getVisitPlanOptions();
}, },
methods: { methods: {