加入项目接口调试

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