|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="box"> |
|
|
|
<div style="width: 95%"> |
|
|
|
<el-card style="height: "> |
|
|
|
<el-card style="height: 800px"> |
|
|
|
<el-table |
|
|
|
:data="tableData" |
|
|
|
style="width: 100%" |
|
|
|
@ -54,7 +54,7 @@ |
|
|
|
:title="title == 1 ? '新增' : '修改'" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="53%" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-click-modal="false" |
|
|
|
> |
|
|
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules"> |
|
|
|
<el-row> |
|
|
|
@ -132,31 +132,35 @@ |
|
|
|
<el-button type="primary" @click="addoredit">确 定</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
<div style="margin-top: 20px"> |
|
|
|
<span style="margin-top: 10px; padding: 5px; margin-left: 15%" |
|
|
|
>项目类别</span |
|
|
|
> |
|
|
|
<el-select |
|
|
|
v-model="values" |
|
|
|
placeholder="请选择" |
|
|
|
@change="ischangs" |
|
|
|
style="margin-top: 5px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in projectid" |
|
|
|
:key="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
:value="item.id" |
|
|
|
<div style="margin-top: 20px" class="intermediatesubject"> |
|
|
|
<div> |
|
|
|
<span style="margin-top: 10px; padding: 5px">项目类别</span> |
|
|
|
<el-select |
|
|
|
v-model="values" |
|
|
|
placeholder="请选择" |
|
|
|
@change="ischangs" |
|
|
|
style="margin-top: 5px" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-option |
|
|
|
v-for="item in projectid" |
|
|
|
:key="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<!-- --> |
|
|
|
<span style="margin-left: 10%; padding: 5px">搜索选择</span> |
|
|
|
<span style="margin-left: 10%; padding: 5px; margin-top: 10px" |
|
|
|
>搜索选择</span |
|
|
|
> |
|
|
|
<el-select |
|
|
|
filterable |
|
|
|
v-model="flitvalues" |
|
|
|
placeholder="请选择" |
|
|
|
style="margin-top: 5px" |
|
|
|
@change="selectchange" |
|
|
|
value-key="id" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in filetelists" |
|
|
|
@ -208,7 +212,7 @@ |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="leftbox" style="margin-left: 7%"> |
|
|
|
<div class="leftbox" style="margin-left: 5%"> |
|
|
|
<div class="weixuan">已选项目</div> |
|
|
|
<div |
|
|
|
v-for="(item, index) in rightdata" |
|
|
|
@ -338,7 +342,7 @@ export default { |
|
|
|
ary1: [], |
|
|
|
ary2: [], |
|
|
|
sdate: [], |
|
|
|
curRow:{} |
|
|
|
curRow: {}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -364,6 +368,11 @@ export default { |
|
|
|
// }, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
selectchange(v) { |
|
|
|
console.log(v); |
|
|
|
// console.log("111"); |
|
|
|
// console.log(v); |
|
|
|
}, |
|
|
|
Onsubmit() { |
|
|
|
let sampleGroupId = this.form.id; |
|
|
|
console.log(this.form.id); |
|
|
|
@ -382,7 +391,10 @@ export default { |
|
|
|
this.$message.warning("请选择列表"); |
|
|
|
} else { |
|
|
|
batchcreaion(sdate).then((res) => { |
|
|
|
this.$message.success("操作成功"); |
|
|
|
if (res.code == 0) { |
|
|
|
this.$message.success("操作成功"); |
|
|
|
} |
|
|
|
|
|
|
|
this.isdislob = true; |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -454,12 +466,14 @@ export default { |
|
|
|
rightindex(item, index) { |
|
|
|
this.nums = index; |
|
|
|
this.leftobj = item; |
|
|
|
this.isdislob = false; |
|
|
|
console.log(this.leftobj); |
|
|
|
}, |
|
|
|
//左侧双击事件 |
|
|
|
shuanji(item, index) { |
|
|
|
this.ites.splice(index, 1); |
|
|
|
this.rightdata.push(item); |
|
|
|
this.isdislob = false; |
|
|
|
}, |
|
|
|
//右移动 |
|
|
|
removeright() { |
|
|
|
@ -485,6 +499,7 @@ export default { |
|
|
|
console.log(this.allid); |
|
|
|
this.ischank = 2; |
|
|
|
this.num = index; |
|
|
|
this.isdislob = false; |
|
|
|
}, |
|
|
|
//科室选择 |
|
|
|
ischangs(v) { |
|
|
|
@ -566,7 +581,7 @@ export default { |
|
|
|
}, |
|
|
|
//置底 |
|
|
|
setlow() { |
|
|
|
this.form={...this.curRow} |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -579,7 +594,7 @@ export default { |
|
|
|
}, |
|
|
|
//置顶 |
|
|
|
topping() { |
|
|
|
this.form={...this.curRow} |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -591,7 +606,7 @@ export default { |
|
|
|
}, |
|
|
|
//删除 |
|
|
|
deleteid() { |
|
|
|
this.form={...this.curRow} |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -604,7 +619,7 @@ export default { |
|
|
|
}, |
|
|
|
//编辑弹框 |
|
|
|
editreport() { |
|
|
|
this.form={...this.curRow} |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -673,8 +688,8 @@ export default { |
|
|
|
}, |
|
|
|
rowick(row) { |
|
|
|
samplegropid(row.id).then((res) => { |
|
|
|
this.curRow={...res.data} |
|
|
|
// this.form = res.data; |
|
|
|
this.curRow = { ...res.data }; |
|
|
|
this.form = res.data; |
|
|
|
}); |
|
|
|
sampleasbitemid(row.id).then((res) => { |
|
|
|
let dq = res.data; |
|
|
|
@ -718,8 +733,13 @@ export default { |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
.intermediatesubject { |
|
|
|
/* width: 100%; */ |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
.confirmcancellation { |
|
|
|
margin-left: 40%; |
|
|
|
margin-left: 50%; |
|
|
|
} |
|
|
|
.Selectbutton { |
|
|
|
margin-left: 3%; |
|
|
|
@ -737,11 +757,17 @@ export default { |
|
|
|
height: 240px; |
|
|
|
border: 1px solid #ccc; |
|
|
|
margin-left: 6%; |
|
|
|
overflow-x: hidden; |
|
|
|
overflow-y: scroll; |
|
|
|
} |
|
|
|
.instrumentcategory { |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
margin-left: 15%; |
|
|
|
justify-content: center; |
|
|
|
/* margin-left: 15%; */ |
|
|
|
} |
|
|
|
.el-card__body { |
|
|
|
height: 700px; |
|
|
|
} |
|
|
|
.box { |
|
|
|
display: flex; |
|
|
|
|