|
@@ -49,7 +49,8 @@
|
|
|
:span-method="dataSpanMethod"
|
|
|
:data="form.klDiagnoseTypeVO"
|
|
|
border
|
|
|
- height="500"
|
|
|
+ style="min-height: 200px"
|
|
|
+ height="calc(100vh - 450px)"
|
|
|
:header-cell-style="{background:'#E3EAF4'}"
|
|
|
>
|
|
|
<el-table-column label="依据" width="100" fixed>
|
|
@@ -663,12 +664,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.i = this.form.klDiagnoseTypeVO.slice(-1).depart_id;
|
|
|
+ this.i = this.form.klDiagnoseTypeVO.slice(-1)[0].depart_id+1;
|
|
|
+ console.log(this.i)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.setRules();
|
|
|
},
|
|
|
-
|
|
|
computed: {
|
|
|
numArr() {
|
|
|
let arr = [];
|
|
@@ -842,14 +843,17 @@ export default {
|
|
|
addDiag(id) {
|
|
|
let temp = this.getInitData();
|
|
|
var i = -1;
|
|
|
+ console.log(id)
|
|
|
this.form.klDiagnoseTypeVO.forEach((item, inx) => {
|
|
|
if (item.depart_id == id) {
|
|
|
i = inx;
|
|
|
+ console.log(inx)
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
this.form.klDiagnoseTypeVO.splice(i + 1, 0, temp);
|
|
|
this.setRules();
|
|
|
- console.log(this.form.klDiagnoseTypeVO);
|
|
|
+ console.log(this.form.klDiagnoseTypeVO)
|
|
|
},
|
|
|
//复制依据
|
|
|
copyDiag(id, inx) {
|
|
@@ -1420,7 +1424,7 @@ export default {
|
|
|
<style lang="less" scoped>
|
|
|
@import '../../less/admin.less';
|
|
|
.contents {
|
|
|
- height: 780px;
|
|
|
+ height: 100%;
|
|
|
.content {
|
|
|
background: #fff;
|
|
|
padding: 20px 20px;
|
|
@@ -1440,6 +1444,9 @@ export default {
|
|
|
background: #ebedf1;
|
|
|
}
|
|
|
}
|
|
|
+ .el-table--scrollable-y .el-table__body-wrapper {
|
|
|
+ height: calc(100vh - 370px);
|
|
|
+ }
|
|
|
/deep/ .el-input {
|
|
|
height: 30px;
|
|
|
line-height: 30px;
|
|
@@ -1459,7 +1466,7 @@ export default {
|
|
|
.content-2 {
|
|
|
margin-top: 10px;
|
|
|
padding: 20px 20px;
|
|
|
- max-height: 650px;
|
|
|
+ height: calc(100vh - 370px);
|
|
|
.cell {
|
|
|
overflow: initial;
|
|
|
}
|