项目配置检查部位新建自动勾选
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-06-05 11:33:52 +08:00
parent bc07f69687
commit ef6135a9e4
1 changed files with 11 additions and 10 deletions

View File

@ -952,7 +952,7 @@ export default {
this.selectedBodyParts = val;
},
//
async getTrialBodyPartList() {
async getTrialBodyPartList(data) {
try {
let params = {
TrialId: this.$route.query.trialId,
@ -960,17 +960,18 @@ export default {
let res = await getTrialBodyPartList(params);
if (res.IsSuccess) {
this.trialBodyPartList = res.Result;
if (data) {
if (this.$refs.bodyPartTable) {
this.$nextTick(() => {
var a = this.trialBodyPartList.filter((v) => {
return !!this.form.BodyPartTypeList.find((v1) => {
return v1 === v.Name;
});
});
this.toggleBodyPartSelection(a);
let obj = this.trialBodyPartList.filter(
(item) => item.Code === data.Code
);
console.log(obj);
this.$refs.bodyPartTable.toggleRowSelection(obj[0]);
});
}
}
}
} catch (err) {
console.log(err);
}
@ -990,7 +991,7 @@ export default {
};
let res = await addOrUpdateTrialBodyPart(data);
if (res.IsSuccess) {
this.getTrialBodyPartList();
this.getTrialBodyPartList(data);
this.$message.success(
this.$t("trials:seeting:message:addBodyPartSuccess")
);