Zn vor 1 Jahr
Ursprung
Commit
1377206818

+ 5 - 5
ruoyi-ui/src/views/relateTable/components/RelateTableCard.vue

@@ -2,6 +2,7 @@
   <el-card class="box-card" :body-style="{ padding: '0px' }">
     <div slot="header" class="clearfix">
       <el-tag class="tag_NO">{{ dtName }}</el-tag>
+      <!-- <span class="title">{{ cardData.title }}</span> -->
       <el-button icon="el-icon-plus" type="primary" @click="handleAdd">新增数据</el-button>
     </div>
     <!-- body -->
@@ -85,6 +86,7 @@
 import {
   delTableData,
   dragTableInfo,
+  listTable,
   unionListTableData,
   getInfoBySqlKey,
   addTableData,
@@ -196,7 +198,7 @@ export default {
       const res = await dragTableInfo({queryMap: {tableKey : tableKey }})
       this.getTableHandle(res, paramsContion = [],defaultVal = {})
     },
-    // 处理请求回来的数据
+    // 处理表格表头
     async getTableHandle(res){
         this.columns = []
         // 得到当前模版信息 --- sql columns queryWhere
@@ -259,7 +261,7 @@ export default {
             
         }  
     },
-    // 获取表数据
+    // 获取表数据
     async getDataHandler(contion, list){
       // console.log(contion);
       this.myContion=contion;
@@ -359,7 +361,7 @@ export default {
           console.log("验证未通过,获取失败");
         });
     },
-     //提交编辑结果按钮回调
+    //提交编辑结果按钮回调
     editConfirmHandler() {
       this.$refs.addFromRef
         .getData()
@@ -414,8 +416,6 @@ export default {
               this.$emit('getEditHandle', this.index)
             }
           }
-          // this.getDataHandler(this.contion, this.row)
-          // this.gettableListHandler(this.tableKey)
           this.defaultValue = {};
           this.open = false;
 

+ 1 - 2
ruoyi-ui/src/views/relateTable/relateTableEdit.vue

@@ -31,7 +31,6 @@
 import TableCard from "./components/RelateTableCard.vue";
 import {dragGroupTableInfo} from "@/api/relateTable/index"
 
-
 export default {
   name: "relateTableEdit",
   props: [],
@@ -68,7 +67,7 @@ export default {
     this.getLists()
   },
   methods: { 
-    // 获取tableKey 和 sort
+    // 获取相关表格信息
     async getLists(){
       let res = await dragGroupTableInfo({queryMap: {groupKey: this.groupKey}})
       this.tableLists = JSON.parse(res.msg)