|
|
|
@ -292,6 +292,7 @@ |
|
|
|
</el-select> |
|
|
|
<span style="margin-left: 10%; padding: 5px">搜索选择</span> |
|
|
|
<el-select |
|
|
|
@change="selectitem" |
|
|
|
filterable |
|
|
|
v-model="flitvalues" |
|
|
|
placeholder="请选择" |
|
|
|
@ -596,6 +597,7 @@ export default { |
|
|
|
rightdata: [], |
|
|
|
rightobj: {}, |
|
|
|
nums: 0, |
|
|
|
itemid: "", //项目id |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -604,24 +606,36 @@ export default { |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.rowDrop(); |
|
|
|
this.gitfleslist(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
gitfleslist() { |
|
|
|
getapi("/api/app/item").then((res) => { |
|
|
|
this.filetelists = res.data.items; |
|
|
|
console.log(res, "我是项目"); |
|
|
|
}); |
|
|
|
}, |
|
|
|
//搜索选择 |
|
|
|
selectitem(v) { |
|
|
|
this.itemid = v; |
|
|
|
}, |
|
|
|
Onsubmit() { |
|
|
|
let sampleGroupId = this.form.id; |
|
|
|
console.log(sampleGroupId); |
|
|
|
console.log(sampleGroupId); |
|
|
|
let sdate = []; |
|
|
|
console.log(this.rightdata,'2222'); |
|
|
|
this.rightdata.forEach((element) => { |
|
|
|
console.log('项目元素id',element.id); |
|
|
|
console.log('组合项目id',sampleGroupId); |
|
|
|
let sss = { itemId: element.id, asbitemId: sampleGroupId }; |
|
|
|
sdate.push(sss); |
|
|
|
}); |
|
|
|
console.log(this.rightdata, "2222"); |
|
|
|
let sss = { itemId: this.itemid, asbitemId: sampleGroupId }; |
|
|
|
sdate.push(sss) |
|
|
|
// this.rightdata.forEach((element) => { |
|
|
|
// console.log('项目元素id',element.id); |
|
|
|
// console.log('组合项目id',sampleGroupId); |
|
|
|
// sdate.push(sss); |
|
|
|
// }); |
|
|
|
// this.leftdata.forEach((element) => { |
|
|
|
// let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id }; |
|
|
|
// sdate.push(sss); |
|
|
|
// }); |
|
|
|
console.log(sdate); |
|
|
|
// console.log(sdate); |
|
|
|
if (sampleGroupId == undefined) { |
|
|
|
this.$message.warning("请选择列表"); |
|
|
|
} else { |
|
|
|
@ -650,6 +664,7 @@ export default { |
|
|
|
if (this.leftdata.length > 0) { |
|
|
|
this.leftdata.splice(this.num, 1); |
|
|
|
this.rightdata.push(this.rightobj); |
|
|
|
this.isdislob = false; |
|
|
|
} |
|
|
|
}, |
|
|
|
//右移动 |
|
|
|
@ -820,7 +835,6 @@ export default { |
|
|
|
//项目类别 |
|
|
|
projectlist().then((res) => { |
|
|
|
this.itemTypeId = res.data.items; |
|
|
|
|
|
|
|
}); |
|
|
|
//仪器类别 |
|
|
|
instrumentlist().then((res) => { |
|
|
|
@ -898,18 +912,16 @@ export default { |
|
|
|
addll() { |
|
|
|
this.dialogVisible = true; |
|
|
|
this.title = 1; |
|
|
|
|
|
|
|
|
|
|
|
//性别 |
|
|
|
examinationgender().then((res) => { |
|
|
|
console.log(res); |
|
|
|
console.log(res); |
|
|
|
this.forSexId = res.data; |
|
|
|
console.log(this.forSexId); |
|
|
|
console.log(this.forSexId); |
|
|
|
}); |
|
|
|
//项目类别 |
|
|
|
projectlist().then((res) => { |
|
|
|
|
|
|
|
this.itemTypeId = res.data; |
|
|
|
|
|
|
|
}); |
|
|
|
//仪器类别 |
|
|
|
instrumentlist().then((res) => { |
|
|
|
@ -923,12 +935,12 @@ export default { |
|
|
|
rowick(row) { |
|
|
|
asbitemgetid(row.id).then((res) => { |
|
|
|
this.form = res.data; |
|
|
|
|
|
|
|
}); |
|
|
|
getapi( |
|
|
|
`/api/app/asbitem-detail/asbitem-detail-in-item?AsbitemId=${row.id}` |
|
|
|
).then((res) => { |
|
|
|
console.log(res,'右侧'); |
|
|
|
this.rightdata = res.data; |
|
|
|
console.log(res, "右侧"); |
|
|
|
let dq = res.data; |
|
|
|
if (dq.length > 0) { |
|
|
|
this.rightdata = []; |
|
|
|
|