Kaynağa Gözat

Merge branch 'uiUpdate0507' into test

wyq 4 yıl önce
ebeveyn
işleme
8ec20b006b

+ 12 - 3
src/components/common/HomePage.vue

@@ -28,7 +28,8 @@
         </p>
         </p>
       </div>
       </div>
     </el-aside>
     </el-aside>
-    <img src="../../images/icon-collect.png" class="collect" @click="collect" />
+    <img src="../../images/icon-collect-right.png" v-show="!onshow" class="collect" @click="collect" />
+    <img src="../../images/icon-collect-left.png" v-show="onshow" class="collect-left" @click="collect" />
     <el-container>
     <el-container>
       <el-header class="clearfix">
       <el-header class="clearfix">
         <div class="title fl">
         <div class="title fl">
@@ -234,13 +235,21 @@ export default {
 <style lang="less">
 <style lang="less">
 @import '../../less/common.less';
 @import '../../less/common.less';
 .collect {
 .collect {
-  width: 106px;
-  height: 60px;
+  width: 36px;
+  height: 32px;
   position: fixed;
   position: fixed;
   left: 0;
   left: 0;
   top: 70%;
   top: 70%;
   z-index: 20;
   z-index: 20;
 }
 }
+.collect-left{
+  width: 36px;
+  height: 32px;
+  position: fixed;
+  left:calc(20% - 36px); 
+  top: 70%;
+  z-index: 20;
+}
 .user .el-menu-item.is-active {
 .user .el-menu-item.is-active {
   color: @userBase;
   color: @userBase;
 }
 }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 596 - 394
src/components/knowledgeExtra/AddDiagBase.vue


+ 35 - 25
src/components/knowledgeExtra/AddNewRule.vue

@@ -422,28 +422,33 @@ export default {
       this.tableShow = false;
       this.tableShow = false;
       const date = new Date().valueOf();
       const date = new Date().valueOf();
       this.$nextTick(() => {
       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) {
         if (!init) {
           this.form.parConceptId = ""; //医学标准术语清空
           this.form.parConceptId = ""; //医学标准术语清空
           this.conceptList = []; //下拉列表清空
           this.conceptList = []; //下拉列表清空
@@ -631,9 +636,14 @@ export default {
       deep: true
       deep: true
     },
     },
     "form.parHasSub"(val) {
     "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: {
   computed: {

+ 1 - 1
src/components/knowledgeExtra/AddNewRuleTable.vue

@@ -108,7 +108,7 @@
       :data="klRuleByIdSub"
       :data="klRuleByIdSub"
       size="mini"
       size="mini"
       style="min-height: 200px"
       style="min-height: 200px"
-      height="calc(100vh - 415px)"
+      height="calc(100vh - 403px)"
       :row-style="rowStyle"
       :row-style="rowStyle"
       :header-row-style="{ background: '#E3EAF4' }"
       :header-row-style="{ background: '#E3EAF4' }"
       :cell-style="cellStyle"
       :cell-style="cellStyle"

BIN
src/images/icon-collect-left.png


BIN
src/images/icon-collect-right.png


BIN
src/images/icon-collect.png