加入项目接口调试

main
wangxiaoshuang 2024-03-27 14:20:13 +08:00
parent 7f66a22760
commit 4924ad268c
1 changed files with 14 additions and 7 deletions

View File

@ -127,7 +127,7 @@
width="45"
:selectable="
(row, index) =>
!tableSelectData.trialId || tableSelectData.trialId === row.trialId
!tableSelectData.TrialId || tableSelectData.TrialId === row.TrialId
"
/>
<!--项目类型-->
@ -138,10 +138,13 @@
show-overflow-tooltip
min-width="140"
>
<template slot-scope="scope">
<span>{{
<template slot-scope="scope" v-for="item of $d.TrialType">
<!-- <span>{{
$d.TrialType.filter((item) => item.value == scope.row.TrialType)[0]
.label
}}</span> -->
<span :key="item.id" v-if="item.value === scope.row.TrialType">{{
item.label
}}</span>
</template>
</el-table-column>
@ -230,7 +233,7 @@ export default {
Asc: true,
SortField: null,
PageIndex: 1,
PageSize: 10,
PageSize: 20,
},
//
total: 0,
@ -258,12 +261,15 @@ export default {
visible() {
if (this.visible) {
this.getList();
} else {
this.btnLoading = false;
this.submitMessage.SubjectId = null;
}
},
"tableSelectData.TrialId": {
handler() {
if (tableSelectData.TrialId) {
this.getTrialSubejctSelectList();
if (this.tableSelectData.TrialId) {
this.getTrialSubejctSelectList(this.tableSelectData.TrialId);
}
},
},
@ -278,6 +284,7 @@ export default {
let res = await getTrialSubejctSelectList(data);
if (res.IsSuccess) {
this.subjectIdList = res.Result;
this.submitMessage.SubjectId = null;
}
} catch (err) {
console.log(err);
@ -347,7 +354,7 @@ export default {
this.searchData[key] = null;
});
this.searchData.PageIndex = 1;
this.searchData.PageSize = 10;
this.searchData.PageSize = 20;
this.searchData.Asc = true;
this.$refs.addTrialsList.clearSort();
this.getList();