From 2e7f611bdfb28fdc16e2bc4fc19498851fe364d1 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 24 七月 2023 09:46:54 +0800
Subject: [PATCH] 动态组件

---
 Source/UBCS-WEB/src/components/Tree/classifyTrees.vue |   30 +++++++++++++++++++-----------
 1 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue b/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
index 0b9b8df..c40093b 100644
--- a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
+++ b/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
@@ -3,7 +3,7 @@
   <el-container>
     <!--    宸︿晶鑿滃崟-->
     <el-aside >
-      <basic-container style="height: 85vh; max-height: 155vh; overflow-y: scroll;">
+      <basic-container style="overflow:hidden;">
         <div>
         <div>
           <div style="display: flex; flex-direction: column;">
@@ -62,7 +62,7 @@
         </el-dialog>
         <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" :defaultExpandAll="false"
                    :option="Treeoption"
-                   style="height: 80.5vh;padding-top: 5px;padding-bottom: 30px"
+                   style="height: calc(100vh - 230px);"
                    @node-click="nodeClick"
                    class="classifyTree"
         >
@@ -71,7 +71,7 @@
       </basic-container>
     </el-aside>
     <el-main>
-      <basic-container style="height: 85vh; max-height: 155vh; ">
+      <basic-container style="height: calc(100vh - 150px);">
         <!--        鍙充晶琛ㄦ牸-->
         <avue-tabs :option="tabOption" @change="handleChange"></avue-tabs>
         <span v-if="type.prop==='tab1'">
@@ -628,13 +628,13 @@
         },
         stopLose: {
           tip: "妯℃澘鍙湁鍙戝竷鐘舵�佹墠鑳借浣跨敤锛屾槸鍚︾‘瀹氬仠鐢紵",
-          typeText: "鍋滅敤/澶辨晥",
+          typeText: "鍋滅敤",
           funAPi: stopLose,
           load: 'stopLoseLoad'
         },
         startRelease: {
           tip: "鏄惁纭畾鍚敤/鍙戝竷杩欎釜妯℃澘锛屾ā鏉垮彧鏈夊彂甯冪姸鎬佹墠鑳借浣跨敤锛屾槸鍚︾户缁紵",
-          typeText: "鍚敤/鍙戝竷",
+          typeText: "鍚敤",
           funAPi: startRelease,
           load: 'startReleaseLoad'
         }
@@ -900,9 +900,9 @@
         const masterParameter={
           'conditionMap[name]':this.SelectFInd
         }
-        this.btmdefaultRend(masterParameter)
-        this.SelectValue=""
-        this.SelectFInd=""
+        this.btmdefaultRend(masterParameter);
+        this.SelectValue="";
+        this.SelectFInd="";
       }
     },
     //涓氬姟绫诲瀷澶氶��
@@ -914,20 +914,19 @@
     //涓氬姟绫诲瀷鎺ュ彛
     btmdefaultRend(masterParameter){
       referDataGrid({valueField:'id',isMuti:'false',...masterParameter}).then(res=>{
-        // console.log(res)
         this.BtmData=res.data.data.records
       })
     },
     //瀛愪紶鐖�
     MasterHandler(val){
-      this.TreeList=val
+      this.TreeList=val;
     },
     //琛屽崟閫変簨浠�
     selectHandle(selection,row){
       this.crudOid=row.oid;
       this.crudLCStatus=row.lcStatus;
       this.crudArray=selection;
-      gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid}).then(res => {
+      gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': row.oid}).then(res => {
         this.ProData = res.data.data;
       }).catch(res => {
         this.$message.error(res)
@@ -1393,6 +1392,15 @@
 </script>
 
 <style lang="scss" scoped>
+.el-container{
+  height: 100%;
+}
+.el-aside {
+  height: calc(100% - 30px);
+}
+.el-main {
+  height: calc(100% - 30px);
+}
 .el-form {
   display: flex;
   flex-wrap: wrap; /* 璁剧疆鍙崲琛岋紝浠ヤ究鍦ㄥ皬灞忓箷璁惧涓婁娇鐢ㄥ琛屽竷灞� */

--
Gitblit v1.9.3