|
@@ -1,6 +1,6 @@
|
|
|
<style lang="less" scoped>
|
|
|
@import "../../less/admin.less";
|
|
|
-.AddRuleContent {
|
|
|
+#AddRuleContent {
|
|
|
width: 100%;
|
|
|
min-width: 1000px;
|
|
|
padding: 20px;
|
|
@@ -12,6 +12,7 @@
|
|
|
box-sizing: border-box;
|
|
|
background: #fff;
|
|
|
padding: 20px;
|
|
|
+ padding-bottom: 0;
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
.table_cell {
|
|
@@ -22,6 +23,7 @@
|
|
|
/deep/ .el-input--mini .el-input__inner,
|
|
|
.el-select {
|
|
|
width: 100%;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
.tip_text {
|
|
|
// margin-top: -8px;
|
|
@@ -36,6 +38,12 @@
|
|
|
padding-bottom: 20px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
+ /deep/ .el-form-item.is-success .el-input__inner,
|
|
|
+ .el-form-item.is-success .el-input__inner:focus,
|
|
|
+ .el-form-item.is-success .el-textarea__inner,
|
|
|
+ .el-form-item.is-success .el-textarea__inner:focus {
|
|
|
+ border-color: #c9c9c9;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|
|
|
<template>
|
|
@@ -45,7 +53,7 @@
|
|
|
:param="$route.params"
|
|
|
linkTo="ZskRuleManager"
|
|
|
></crumbs>
|
|
|
- <div class="AddRuleContent">
|
|
|
+ <div id="AddRuleContent">
|
|
|
<el-form size="mini" :model="form" ref="ruleForm">
|
|
|
<div class="table_form">
|
|
|
<div class="table_cell">
|
|
@@ -422,28 +430,33 @@ export default {
|
|
|
this.tableShow = false;
|
|
|
const date = new Date().valueOf();
|
|
|
this.$nextTick(() => {
|
|
|
- this.$set(this.form, "klRuleByIdSub", [
|
|
|
- {
|
|
|
- groupId: date,
|
|
|
- groupChildId: "child" + new Date().valueOf(),
|
|
|
- baseTypes: this.baseTypeList,
|
|
|
- baseTermTypeList: [],
|
|
|
- conceptList: [],
|
|
|
- subDescription: "",
|
|
|
- parRuleType: "",
|
|
|
- subConceptId: "",
|
|
|
- subType: "",
|
|
|
- subMaxOperator: "",
|
|
|
- subMaxUnit: "",
|
|
|
- subMaxValue: "",
|
|
|
- subMinOperator: "",
|
|
|
- subMinUnit: "",
|
|
|
- subMinValue: "",
|
|
|
- subEqValue: "",
|
|
|
- subLenCode: "",
|
|
|
- dataType: ""
|
|
|
- }
|
|
|
- ]);
|
|
|
+ if (this.form.parHasSub && this.form.parHasSub != 0) {
|
|
|
+ this.$set(this.form, "klRuleByIdSub", [
|
|
|
+ {
|
|
|
+ groupId: date,
|
|
|
+ groupChildId: "child" + new Date().valueOf(),
|
|
|
+ baseTypes: this.baseTypeList,
|
|
|
+ baseTermTypeList: [],
|
|
|
+ conceptList: [],
|
|
|
+ subDescription: "",
|
|
|
+ parRuleType: "",
|
|
|
+ subConceptId: "",
|
|
|
+ subType: "",
|
|
|
+ subMaxOperator: "",
|
|
|
+ subMaxUnit: "",
|
|
|
+ subMaxValue: "",
|
|
|
+ subMinOperator: "",
|
|
|
+ subMinUnit: "",
|
|
|
+ subMinValue: "",
|
|
|
+ subEqValue: "",
|
|
|
+ subLenCode: "",
|
|
|
+ dataType: ""
|
|
|
+ }
|
|
|
+ ]);
|
|
|
+ } else {
|
|
|
+ this.$set(this.form, "klRuleByIdSub", []);
|
|
|
+ }
|
|
|
+
|
|
|
if (!init) {
|
|
|
this.form.parConceptId = ""; //医学标准术语清空
|
|
|
this.conceptList = []; //下拉列表清空
|
|
@@ -631,9 +644,14 @@ export default {
|
|
|
deep: true
|
|
|
},
|
|
|
"form.parHasSub"(val) {
|
|
|
- if (!val || val == 0) {
|
|
|
- this.form.klRuleByIdSub = [];
|
|
|
- }
|
|
|
+ console.log(val);
|
|
|
+ console.log(this.form);
|
|
|
+ // if (!val || val == 0) {
|
|
|
+ // // this.form.klRuleByIdSub = [];
|
|
|
+ // this.$set(this.form, "klRuleByIdSub", []);
|
|
|
+
|
|
|
+ // console.log(this.form);
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
computed: {
|