项目配置检查部位新建自动勾选
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
bc07f69687
commit
ef6135a9e4
|
@ -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")
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue