瀏覽代碼

优化表格联动布局/解决联动表格提交数据时的报错

lph 1 年之前
父節點
當前提交
e6d19dbd13

+ 1 - 3
zkqy-ui/src/views/relateTable/components/RelateTableCard.vue

@@ -99,8 +99,6 @@ import {
 import { inputDisableComplete } from "@/utils/other";
 
 import { camelCase } from "@/utils";
-import { CloudFog } from "lucide-vue";
-import { bottom } from "@antv/x6/lib/registry/port-layout/line";
 export default {
   name: "RelateTableCard",
   props: ["cardData", "index", "tableKey", "sort"],
@@ -457,7 +455,7 @@ export default {
       this.queryFromWhere.forEach((item) => {
         let { conditionDefaultValue, conditionField } = item;
         res[camelCase(conditionField.split(".")[1])] =
-          conditionDefaultValue.includes(".")
+          conditionDefaultValue?.includes(".")
             ? this.preRow[conditionDefaultValue.split(".")[1]]
             : conditionDefaultValue;
       });

+ 6 - 2
zkqy-ui/src/views/relateTable/relateTableEdit.vue

@@ -140,9 +140,13 @@ export default {
     // max-height: 400px;
     display: flex;
     flex-wrap: wrap;
-    max-width: 400px;
+    // max-width: 400px;
     margin-right: 20px;
-    min-width: 30%;
+    min-width: 350px;
+    flex: 1;
+    &:last-child {
+      margin-right: 0;
+    }
   }
 }
 ::v-deep .box-card[data-v-f25ef500] {