|
|
@@ -969,17 +969,22 @@
|
|
|
let data = await getQualityTemplateByIds({
|
|
|
templateIds: select.map((item) => item.id)
|
|
|
});
|
|
|
- // planTemplateList
|
|
|
- console.log(data);
|
|
|
- this.templateList.push(...data);
|
|
|
- const strings = this.templateList.map((item) => JSON.stringify(item));
|
|
|
- const removeDupList = [...new Set(strings)];
|
|
|
- const result = removeDupList.map((item) => JSON.parse(item));
|
|
|
+
|
|
|
+ // 这里是选择方案后,数据新加,要改为覆盖
|
|
|
+ // this.templateList.push(...data);
|
|
|
+ // const strings = this.templateList.map((item) => JSON.stringify(item));
|
|
|
+ // const removeDupList = [...new Set(strings)];
|
|
|
+ // const result = removeDupList.map((item) => JSON.parse(item));
|
|
|
+
|
|
|
+ this.templateList=[]
|
|
|
+ this.templateList.push(...data)
|
|
|
+
|
|
|
+
|
|
|
this.templateList = result.map((item) => {
|
|
|
item['qualityResults'] = 1;
|
|
|
return item;
|
|
|
});
|
|
|
- // console.log(this.templateList);
|
|
|
+
|
|
|
this.sampleList.forEach((item, index) => {
|
|
|
this.$set(
|
|
|
this.sampleList[index],
|