|
@@ -217,18 +217,22 @@ export default {
|
|
|
|
|
|
], // 关联关系数据
|
|
|
id:'', // 传入的ID规范文件id
|
|
|
+ jId:''//技术指标Id
|
|
|
+
|
|
|
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- show(val,id) {
|
|
|
+ show(val,id,Jid) {
|
|
|
+ console.log(id,'id');
|
|
|
+ this.jId = Jid
|
|
|
this.id = id
|
|
|
this.getSampleOptions(id)
|
|
|
this.visible = true
|
|
|
if(val.length > 0&&val[0].symbolName) {
|
|
|
this.paramList=val
|
|
|
val.forEach((item,index)=>{
|
|
|
- this.handleSelect(index)
|
|
|
+ this.handleSelect(index,item)
|
|
|
})
|
|
|
this.activeIndex = 0
|
|
|
|
|
@@ -239,7 +243,7 @@ export default {
|
|
|
}
|
|
|
//获取关联关系数据
|
|
|
|
|
|
- this.getLinkSetData(this.id);
|
|
|
+ this.getLinkSetData(this.id, this.jId);
|
|
|
},
|
|
|
//获取样品信息列表
|
|
|
getSampleOptions(id){
|
|
@@ -299,7 +303,7 @@ export default {
|
|
|
this.$message.success(res.data.msg);
|
|
|
|
|
|
this.linkListData.splice(index, 1);
|
|
|
- this.getLinkSetData(this.id);
|
|
|
+ this.getLinkSetData(this.id, this.jId);
|
|
|
}else{
|
|
|
this.$message.error(res.data.msg);
|
|
|
}
|
|
@@ -319,10 +323,15 @@ export default {
|
|
|
addOperation() {
|
|
|
// 添加操作逻辑
|
|
|
},
|
|
|
- async handleSelect(index) {
|
|
|
+ async handleSelect(index,item) {
|
|
|
+ console.log(index,'index');
|
|
|
+ console.log(item,'item');
|
|
|
+
|
|
|
this.activeIndex = index
|
|
|
let leftId = this.paramList[index].id
|
|
|
- let arr= await this.getConditionSetData(this.id,leftId)
|
|
|
+ let arr= await this.getConditionSetData(this.id,this.jId,leftId)
|
|
|
+ console.log(arr,'arr');
|
|
|
+
|
|
|
|
|
|
if(arr.length>0){
|
|
|
this.$nextTick(()=>{
|
|
@@ -335,8 +344,10 @@ export default {
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- async handleSelect1(index) {
|
|
|
+ async handleSelect1(index,item) {
|
|
|
this.activeIndex = index
|
|
|
+ console.log(item,'item');
|
|
|
+
|
|
|
|
|
|
|
|
|
},
|
|
@@ -415,9 +426,9 @@ export default {
|
|
|
|
|
|
},
|
|
|
// 获取条件设置
|
|
|
- async getConditionSetData(id, leftId) {
|
|
|
+ async getConditionSetData(id, groupId, leftId) {
|
|
|
try {
|
|
|
- const res = await getConditionSet({ id, leftId });
|
|
|
+ const res = await getConditionSet({ id, groupId,leftId });
|
|
|
if (res.data.code === 200) {
|
|
|
console.log(res.data.data, '获取的条件设置数据');
|
|
|
return res.data.data; // 直接返回数据
|
|
@@ -432,9 +443,9 @@ export default {
|
|
|
},
|
|
|
//获取关联关系数据
|
|
|
|
|
|
- async getLinkSetData(id, leftId) {
|
|
|
+ async getLinkSetData(id, groupId) {
|
|
|
try {
|
|
|
- const res = await getConditionSet({ id, leftId });
|
|
|
+ const res = await getConditionSet({ id, groupId });
|
|
|
if (res.data.code === 200) {
|
|
|
console.log(res.data.data, '获取的关系数据');
|
|
|
this.linkListData = res.data.data; // 直接返回数据
|