Jelajahi Sumber

Update groupRecordManager.vue

lex 2 tahun lalu
induk
melakukan
06c8c922fe
1 mengubah file dengan 39 tambahan dan 17 penghapusan
  1. 39 17
      src/views/tenantSetting/groupRecordManager.vue

+ 39 - 17
src/views/tenantSetting/groupRecordManager.vue

@@ -11,7 +11,7 @@
         ref="searchForm"
         @submit="search"
         @reset="reset"
-        :saveKey="'tenantTradeManager'"
+        :saveKey="'groupRecordManager'"
         :model.sync="searchForm"
       >
         <el-form-item prop="queryCondition">
@@ -55,18 +55,37 @@
           <el-table-column align="center" label="交易流水号" prop="transNo">
             <template slot-scope="scope">
               <div>
-                  <copy-text>{{scope.row.transNo}}</copy-text>
+                <copy-text>{{ scope.row.transNo }}</copy-text>
               </div>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="订单号" prop="orderNo" width="160px">
+          <el-table-column
+            align="center"
+            label="订单号"
+            prop="orderNo"
+            width="160px"
+          >
           </el-table-column>
-          <el-table-column align="center" label="订单时间" prop="orderTime" width="160px">
+          <el-table-column
+            align="center"
+            label="订单时间"
+            prop="orderTime"
+            width="160px"
+          >
           </el-table-column>
-          <el-table-column align="center" label="学员编号" prop="studentId" width="80px">
-
+          <el-table-column
+            align="center"
+            label="学员编号"
+            prop="studentId"
+            width="80px"
+          >
           </el-table-column>
-          <el-table-column align="center" label="学员名称" prop="name" width="120px">
+          <el-table-column
+            align="center"
+            label="学员名称"
+            prop="name"
+            width="120px"
+          >
           </el-table-column>
           <el-table-column align="center" label="手机号码" prop="phone">
           </el-table-column>
@@ -94,7 +113,7 @@
           </el-table-column>
         </el-table>
         <pagination
-          :saveKey="'tenantTradeManager'"
+          :saveKey="'groupRecordManager'"
           sync
           :total.sync="pageInfo.total"
           :page.sync="pageInfo.page"
@@ -104,7 +123,6 @@
         />
       </div>
     </div>
-
   </div>
 </template>
 <script>
@@ -115,7 +133,7 @@ import { getTimes } from "@/utils";
 const initSearch = {
   queryCondition: null,
   orderNo: null,
-  createTimer: [],
+  createTimer: []
 };
 export default {
   components: { pagination },
@@ -128,7 +146,7 @@ export default {
         limit: 10, // 限制显示条数
         page: 1, // 当前页
         total: 0, // 总条数
-        page_size: [10, 20, 40, 50], // 选择限制显示条数
+        page_size: [10, 20, 40, 50] // 选择限制显示条数
       },
       searchForm: { ...initSearch }
     };
@@ -142,11 +160,15 @@ export default {
         let { createTimer, ...reset } = this.searchForm;
         const res = await queryActiveRecord({
           ...reset,
-          ...getTimes(createTimer, ["startTime", "endTime"], "YYYY-MM-DD HH:mm:ss"),
+          ...getTimes(
+            createTimer,
+            ["startTime", "endTime"],
+            "YYYY-MM-DD HH:mm:ss"
+          ),
           page: this.pageInfo.page,
           rows: this.pageInfo.limit
         });
-        console.log(res)
+        console.log(res);
         this.pageInfo.total = res.data.total;
         this.tableList = res.data.rows;
       } catch (e) {}
@@ -162,8 +184,8 @@ export default {
       this.search();
     },
     openService(row) {
-      this.orderVisible = true
-    },
+      this.orderVisible = true;
+    }
   },
   filters: {
     tenantOrderStatus(val) {
@@ -171,8 +193,8 @@ export default {
         0: "待支付",
         1: "已支付",
         2: "支付失败"
-      }
-      return template[val]
+      };
+      return template[val];
     }
   }
 };