Browse Source

修改数据引擎列表传参格式

xuezizhuo 2 năm trước cách đây
mục cha
commit
9cb1921885

+ 3 - 3
ruoyi-ui/src/api/dataEngine/index.js

@@ -1,10 +1,10 @@
 import request from '@/utils/request'
 
-export function tableInfoList(data) {
+export function tableInfoList(query) {
   return request({
     url: '/tableInfo/tableInfoList',
-    method: 'post',
-    data: data,
+    method: 'get',
+    params: query,
     baseURL:process.env.VUE_APP_BASE_API2
   })
 }

+ 6 - 1
ruoyi-ui/src/views/dataEngine/datamodeling/index.vue

@@ -77,7 +77,12 @@ export default {
   methods: {
     getList() {
       this.loading = true;
-      tableInfoList(this.queryParams).then((response) => {
+      tableInfoList({
+        pageNum: 1,
+        pageSize: 10,
+        databaseType: this.$store.state.user.dataSource.databaseType,
+        databaseName: this.$store.state.user.dataSource.databaseName,
+      }).then((response) => {
         this.aaaList = response.data;
         this.total = response.total;
         this.loading = false;