项目配置检查部位新建自动勾选
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;
|
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,15 +960,16 @@ 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 (this.$refs.bodyPartTable) {
|
if (data) {
|
||||||
this.$nextTick(() => {
|
if (this.$refs.bodyPartTable) {
|
||||||
var a = this.trialBodyPartList.filter((v) => {
|
this.$nextTick(() => {
|
||||||
return !!this.form.BodyPartTypeList.find((v1) => {
|
let obj = this.trialBodyPartList.filter(
|
||||||
return v1 === v.Name;
|
(item) => item.Code === data.Code
|
||||||
});
|
);
|
||||||
|
console.log(obj);
|
||||||
|
this.$refs.bodyPartTable.toggleRowSelection(obj[0]);
|
||||||
});
|
});
|
||||||
this.toggleBodyPartSelection(a);
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (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")
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue