|
@@ -92,6 +92,7 @@
|
|
position:0,
|
|
position:0,
|
|
retract:0,
|
|
retract:0,
|
|
casesEntryIds:'',
|
|
casesEntryIds:'',
|
|
|
|
+ quesCasesEntryVOList:[]
|
|
},
|
|
},
|
|
id:null,
|
|
id:null,
|
|
rules:{
|
|
rules:{
|
|
@@ -112,11 +113,23 @@
|
|
let info = this.$route.params.info;
|
|
let info = this.$route.params.info;
|
|
if(info){
|
|
if(info){
|
|
const infoCopy = Object.assign({},info);
|
|
const infoCopy = Object.assign({},info);
|
|
- infoCopy.casesEntryIds?this.casesEIds = infoCopy.casesEntryIds.split(","):'';
|
|
|
|
-
|
|
|
|
|
|
+ // infoCopy.casesEntryIds?this.casesEIds = infoCopy.casesEntryIds.split(","):'';
|
|
|
|
+ let tmpArr = [],tmpArr1 = []
|
|
|
|
+ for(let i = 0;i < infoCopy.quesCasesEntryDTOList.length;i++){
|
|
|
|
+ let obj = {
|
|
|
|
+ name:infoCopy.quesCasesEntryDTOList[i].casesEntryName,
|
|
|
|
+ casesEntryName:infoCopy.quesCasesEntryDTOList[i].casesEntryName,
|
|
|
|
+ id:infoCopy.quesCasesEntryDTOList[i].casesEntryId,
|
|
|
|
+ casesEntryId:infoCopy.quesCasesEntryDTOList[i].casesEntryId
|
|
|
|
+ }
|
|
|
|
+ tmpArr.push(infoCopy.quesCasesEntryDTOList[i].casesEntryId)
|
|
|
|
+ tmpArr1.push(obj)
|
|
|
|
+ }
|
|
|
|
+ infoCopy.quesCasesEntryDTOList?this.casesEIds = tmpArr:'';
|
|
|
|
+ infoCopy.quesCasesEntryVOList = [...tmpArr1];
|
|
this.title='字段映射维护-修改映射字段';
|
|
this.title='字段映射维护-修改映射字段';
|
|
this.form = infoCopy;
|
|
this.form = infoCopy;
|
|
- this.getQcFlawList();
|
|
|
|
|
|
+ this.getQcFlawList(tmpArr1);
|
|
}else{
|
|
}else{
|
|
let hospitalId = localStorage.getItem("qcSelectHospital")&&Number(localStorage.getItem("qcSelectHospital")) || "";
|
|
let hospitalId = localStorage.getItem("qcSelectHospital")&&Number(localStorage.getItem("qcSelectHospital")) || "";
|
|
let modeId = localStorage.getItem("qcSelectModule")&&Number(localStorage.getItem("qcSelectModule")) || "";
|
|
let modeId = localStorage.getItem("qcSelectModule")&&Number(localStorage.getItem("qcSelectModule")) || "";
|
|
@@ -130,6 +143,15 @@
|
|
watch:{
|
|
watch:{
|
|
"casesEIds":function(val){
|
|
"casesEIds":function(val){
|
|
this.form.casesEntryIds = val.join(",");
|
|
this.form.casesEntryIds = val.join(",");
|
|
|
|
+ let tmp = []
|
|
|
|
+ for(let i = 0;i < val.length;i++){
|
|
|
|
+ let obj = {
|
|
|
|
+ casesEntryId:val[i],
|
|
|
|
+ id:val[i],
|
|
|
|
+ }
|
|
|
|
+ tmp.push(obj)
|
|
|
|
+ }
|
|
|
|
+ this.form.quesCasesEntryVOList = tmp
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
@@ -155,7 +177,6 @@
|
|
if(res.data.code==="0") {
|
|
if(res.data.code==="0") {
|
|
const data = res.data.data;
|
|
const data = res.data.data;
|
|
this.flawList = data.records;
|
|
this.flawList = data.records;
|
|
-
|
|
|
|
}else{
|
|
}else{
|
|
this.warning("获取缺陷条目失败");
|
|
this.warning("获取缺陷条目失败");
|
|
}
|
|
}
|