From 660454e318a57cc82811908389cd4056fbfce1f7 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期五, 25 八月 2023 16:55:05 +0800
Subject: [PATCH] 修改样式,修改编码规则

---
 Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue |   58 +++++++++++++++++++++++++++++-----------------------------
 1 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue b/Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue
index e6e2451..965e500 100644
--- a/Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue
+++ b/Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue
@@ -5,16 +5,16 @@
     append-to-body
     :visible.sync="isShowformulaEdit"
     @close="closeFormulaEdit"
-    width="78%"
-    style="height: 150vh; margin-top: -13vh; overflow: hidden">
-
-    <div style="overflow-y: auto; height: 80vh">
+    width="75%"
+    class="avue-dialog avue-dialog--top" top="-3%"
+    style="height: 100vh;">
+    <div>
       <el-row>
         <!-- 宸︿晶鍏紡鍐呭 -->
         <el-col :span="14" style="overflow: hidden">
           <el-card
             class="box-card"
-            style="height: 33vh; overflow-y: auto; overflow-x: auto">
+            style="height: 29.5vh; overflow-y: auto; overflow-x: auto;margin-right: 10px">
             <div slot="header" class="clearfix">
               <span style="font-size: medium">鍏紡鍐呭</span>
               <el-button
@@ -35,8 +35,8 @@
             <div class="text item">
               <el-input
                 type="textarea"
-                :rows="5"
-                style="width: 560px"
+                :rows="6"
+                style="width: 100%"
                 v-model="formulaContent"
               ></el-input>
             </div>
@@ -47,7 +47,7 @@
           <el-card
             class="box-card formula-box-card"
             data-v-49729759
-            style="height: 35vh;">
+            style="height: 29.5vh;">
             <div slot="header" class="clearfix">
               <span style="font-size: medium">杩愮畻绗�</span>
             </div>
@@ -216,11 +216,10 @@
       </el-row>
       <el-row>
         <!-- 宸︿晶鍏紡閫夋嫨鍖哄煙 -->
-        <el-col :span="14" style="overflow: hidden">
+        <el-col :span="14" style="overflow: hidden;">
           <el-card
             class="box-card"
-            style="height: 40vh; overflow-y: auto; overflow-x: auto"
-          >
+            style="height: 35vh; overflow-y: auto; overflow-x: auto;margin-right: 10px">
             <div slot="header" class="clearfix">
               <span style="font-size: medium">鍏紡閫夋嫨</span>
             </div>
@@ -235,7 +234,7 @@
                   >
                     <el-table-column prop="formula" width="300">
                     </el-table-column>
-                    <el-table-column prop="desc" width="300"> </el-table-column>
+                    <el-table-column prop="desc"> </el-table-column>
                   </el-table>
                 </el-tab-pane>
 
@@ -248,7 +247,7 @@
                   >
                     <el-table-column prop="formula" width="300">
                     </el-table-column>
-                    <el-table-column prop="desc" width="300"> </el-table-column>
+                    <el-table-column prop="desc"> </el-table-column>
                   </el-table>
                 </el-tab-pane>
 
@@ -261,7 +260,7 @@
                   >
                     <el-table-column prop="formula" width="300">
                     </el-table-column>
-                    <el-table-column prop="desc" width="300"> </el-table-column>
+                    <el-table-column prop="desc"> </el-table-column>
                   </el-table>
                 </el-tab-pane>
 
@@ -274,7 +273,7 @@
                   >
                     <el-table-column prop="formula" width="300">
                     </el-table-column>
-                    <el-table-column prop="desc" width="300"> </el-table-column>
+                    <el-table-column prop="desc"> </el-table-column>
                   </el-table>
                 </el-tab-pane>
 
@@ -287,7 +286,7 @@
                   >
                     <el-table-column prop="formula" width="300">
                     </el-table-column>
-                    <el-table-column prop="desc" width="300"> </el-table-column>
+                    <el-table-column prop="desc" > </el-table-column>
                   </el-table>
                 </el-tab-pane>
               </el-tabs>
@@ -298,7 +297,7 @@
         <el-col :span="10" style="overflow: hidden">
           <el-card
             class="box-card"
-            style="height: 40vh; overflow-y: auto; overflow-x: auto"
+            style="height: 35vh; overflow-y: auto; overflow-x: auto"
           >
             <div slot="header" class="clearfix">
               <span style="font-size: medium">鍙橀噺</span>
@@ -312,9 +311,9 @@
                     :show-header="false"
                     style="width: 100%"
                   >
-                    <el-table-column prop="formula" width="120">
+                    <el-table-column prop="formula" width="300">
                     </el-table-column>
-                    <el-table-column prop="desc" width="200"> </el-table-column>
+                    <el-table-column prop="desc"> </el-table-column>
                   </el-table>
                 </el-tab-pane>
                 <el-tab-pane label="绯荤粺鍙橀噺" name="second">
@@ -324,9 +323,9 @@
                     :show-header="false"
                     style="width: 100%"
                   >
-                    <el-table-column prop="formula" width="200">
+                    <el-table-column prop="formula" width="300">
                     </el-table-column>
-                    <el-table-column prop="desc" width="200"> </el-table-column>
+                    <el-table-column prop="desc"> </el-table-column>
                   </el-table>
                 </el-tab-pane>
               </el-tabs>
@@ -343,7 +342,7 @@
 export default {
   name: "formulaEditor",
   props: {
-     // 瀵硅瘽妗嗘樉绀洪殣钘忔帶鍒�
+    // 瀵硅瘽妗嗘樉绀洪殣钘忔帶鍒�
     visible: {
         type: "Boolean",
         default: false,
@@ -649,13 +648,14 @@
     };
   },
   watch: {
-      // 鐩戝惉鐖剁粍浠朵紶鐨勭獥鍙f樉绀洪殣钘忕殑鍊�
-      visible (){
-          this.isShowformulaEdit = this.visible;
-      }
+      // 鐩戝惉鐖剁粍浠朵紶鐨勭獥鍙f樉绀洪殣钘忕殑鍊硷紝浠ュ強鍊肩殑鍥炲~
+      visible() {
+        this.isShowformulaEdit = this.visible;
+        this.formulaContent=this.componentRuleText || '';
+      },
   },
   mounted() {
-    this.formulaContent=this.componentRuleText
+
   },
   methods: {
 
@@ -728,8 +728,8 @@
 	}
 
   .formula-editor-btn-sm {
-    width: 4.5vw;
-    height: 4vh;
+    width: 68px;
+    height: 34px;
     margin-left: 10px;
     text-align: center;
     line-height: 0;

--
Gitblit v1.9.3