项目配置检查部位新建自动勾选
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; this.selectedBodyParts = val;
}, },
// //
async getTrialBodyPartList() { async getTrialBodyPartList(data) {
try { try {
let params = { let params = {
TrialId: this.$route.query.trialId, TrialId: this.$route.query.trialId,
@ -960,17 +960,18 @@ export default {
let res = await getTrialBodyPartList(params); let res = await getTrialBodyPartList(params);
if (res.IsSuccess) { if (res.IsSuccess) {
this.trialBodyPartList = res.Result; this.trialBodyPartList = res.Result;
if (data) {
if (this.$refs.bodyPartTable) { if (this.$refs.bodyPartTable) {
this.$nextTick(() => { this.$nextTick(() => {
var a = this.trialBodyPartList.filter((v) => { let obj = this.trialBodyPartList.filter(
return !!this.form.BodyPartTypeList.find((v1) => { (item) => item.Code === data.Code
return v1 === v.Name; );
}); console.log(obj);
}); this.$refs.bodyPartTable.toggleRowSelection(obj[0]);
this.toggleBodyPartSelection(a);
}); });
} }
} }
}
} catch (err) { } catch (err) {
console.log(err); console.log(err);
} }
@ -990,7 +991,7 @@ export default {
}; };
let res = await addOrUpdateTrialBodyPart(data); let res = await addOrUpdateTrialBodyPart(data);
if (res.IsSuccess) { if (res.IsSuccess) {
this.getTrialBodyPartList(); this.getTrialBodyPartList(data);
this.$message.success( this.$message.success(
this.$t("trials:seeting:message:addBodyPartSuccess") this.$t("trials:seeting:message:addBodyPartSuccess")
); );