Zn 1 rok temu
rodzic
commit
6ef07534ca

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

@@ -1,7 +1,7 @@
 <template>
   <el-card class="box-card" :body-style="{ padding: '0px' }">
     <div slot="header" class="clearfix">
-      <el-tag class="tag_NO">{{ Number(index) + 1 }}</el-tag>
+      <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>
@@ -31,7 +31,6 @@
                     type="text"
                     icon="el-icon-edit"
                     @click="handleUpdate(scope.row)"
-
                   >修改
                   </el-button>
                 </el-dropdown-item>
@@ -144,12 +143,13 @@ export default {
       templateInfo: {},
       tableName: '',
       queryFromWhere:'',
-      condition: []
+      condition: [],
+      // 表名
+      dtName: '',
     };
   },
 
   computed: {
-    // currentValues
     cardDataWatcher: function(){
       return this.cardData
     },
@@ -204,6 +204,7 @@ export default {
         // 根据拖拽时设置当前列表排列顺序
         this.queryParams.isAsc = this.sortOrder ? "DESC" : "ASC"
         this.tableName = this.templateInfo.template.dtTableName;
+        this.dtName = this.templateInfo.template.dtName;
         // 得到查询条件
         this.queryFromWhere = res.data.resultMap.where;
         //  得到当前列表信息
@@ -250,8 +251,8 @@ export default {
     },
     // 获取表数据
     async getDataHandler(contion, list){
-      console.log(contion);
-      console.log(list);
+      // console.log(contion);
+      // console.log(list);
       if(contion){
         let key = contion.split('.')
         this.queryParams.queryMap['#{' + contion] = "'" + list[key[1]] + "'";

+ 0 - 80
ruoyi-ui/src/views/relateTable/relateTableEdit.vue

@@ -46,86 +46,6 @@ export default {
   data() {
     return {
       tableLists:[],
-      // dataList: [
-      //   {
-      //     tableId: "1",
-      //     title: "一级表格",
-      //     tableData: [
-      //       {
-      //         date: "2016-05-02",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1518 弄",
-      //       },
-      //       {
-      //         date: "2016-05-04",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1517 弄",
-      //       },
-      //       {
-      //         date: "2016-05-01",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1519 弄",
-      //       },
-      //       {
-      //         date: "2016-05-03",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1516 弄",
-      //       },
-      //     ],
-      //   },
-      //   {
-      //     tableId: "2",
-      //     title: "二级表格",
-      //     tableData: [
-      //       {
-      //         date: "2016-05-02",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1518 弄",
-      //       },
-      //       {
-      //         date: "2016-05-04",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1517 弄",
-      //       },
-      //       {
-      //         date: "2016-05-01",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1519 弄",
-      //       },
-      //       {
-      //         date: "2016-05-03",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1516 弄",
-      //       },
-      //     ],
-      //   },
-      //   {
-      //     tableId: "3",
-      //     title: "三级表格三级表格三级表格三级表格",
-      //     tableData: [
-      //       {
-      //         date: "2016-05-02",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1518 弄",
-      //       },
-      //       {
-      //         date: "2016-05-04",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1517 弄",
-      //       },
-      //       {
-      //         date: "2016-05-01",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1519 弄",
-      //       },
-      //       {
-      //         date: "2016-05-03",
-      //         name: "王小虎",
-      //         address: "上海市普陀区金沙江路 1516 弄",
-      //       },
-      //     ],
-      //   },
-      // ],
       // 共通查询参数接受子组件的参数
       queryParams: {
         pageNum: 1, // 第几页

+ 1 - 1
ruoyi-ui/src/views/tablelist/components/cardCountPanel.vue

@@ -84,7 +84,7 @@ export default {
     .right{
       float: right;
       font-size: 20px;
-      font-family: fantasy;
+      font-weight: 800;
     }
   }
   .description {