lph hai 1 ano
pai
achega
9d83353f2a

+ 9 - 3
ruoyi-ui/src/components/updateModule/k-form-design/packages/components/KFormDesign/module/formProperties.vue

@@ -25,12 +25,13 @@
         <a-form-item
           label="关联的自定义表格"
         >
-          <el-select v-model="config.tdId" placeholder="请选择">
+          <el-select v-model="config.tdId" @change="relationTableChange" filterable placeholder="请选择">
             <el-option
               v-for="item in tableList"
               :key="item.tId"
               :label="item.dtName"
               :value="item.tId">
+              <!-- <span v-show="false">{{ $sessionStorage.setItem('sqlKey',item.sqlKey) }}</span> -->
             </el-option>
           </el-select>
         </a-form-item>
@@ -161,7 +162,11 @@ export default {
 
       this.config.wrapperCol.xs = this.config.wrapperCol.sm = this.config.wrapperCol.md = this.config.wrapperCol.lg = this.config.wrapperCol.xl = this.config.wrapperCol.xxl =
         24 - e;
-    }
+    },
+    relationTableChange(tId) {
+      let sqlKey = this.tableList.filter(item => item.tId == tId)[0].sqlKey;
+sessionStorage.setItem('sqlKey',sqlKey)
+  }
   },
   async created () {
     let res = await dragTableList()
@@ -171,6 +176,7 @@ export default {
       this.$message.error("请选择数据表");
       this.$message.error(res.msg)
     }
-  }
+  },
+  
 };
 </script>