فهرست منبع

批量关联录入子表优化

wu 5 ماه پیش
والد
کامیت
9af7fd12af
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      src/components/Generator/components/InputTable/index.vue
  2. 2 2
      src/utils/request.js

+ 1 - 1
src/components/Generator/components/InputTable/index.vue

@@ -565,7 +565,7 @@ export default {
           isText: t.isText || false,
           ...additionalType
         }
-        if (this.config.relationColumnList && this.config.relationColumnList.length){
+        if (relationFlag && this.config.relationColumnList && this.config.relationColumnList.length){
           let relationColumn = this.config.relationColumnList.find(item => item.foreignId == res.__vModel__)
           if (relationColumn) {
             res.value = val ? val[relationColumn.primaryId] : null

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 2 - 2
src/utils/request.js