Browse Source

屏蔽网课

Changpeng Duan 5 năm trước cách đây
mục cha
commit
2a32d919b2
2 tập tin đã thay đổi với 22 bổ sung9 xóa
  1. 3 1
      online/src/page/login.vue
  2. 19 8
      pc/src/views/cost.vue

+ 3 - 1
online/src/page/login.vue

@@ -106,7 +106,6 @@
             },
             success() {
                 let that = this;
-
                 // 发送验证码
                 let param = {
                     token: localStorage.token,
@@ -124,6 +123,9 @@
                         this.Toast(json.Memo);
                         this.vertifyShow = true;
                         this.codeShow = false;
+                        this.btnShow = true;
+                        this.controlShow = true;
+                        this.vertifyShow = false;
                     }
                 })
             },

+ 19 - 8
pc/src/views/cost.vue

@@ -231,12 +231,16 @@
                 </el-table-column>
             </el-table>
             <br>
-            <el-pagination
-                    background
-                    :total="pageination.total"
-                    :page-size="pageination.pageItem"
-                    @current-change="pageChange"
-            ></el-pagination>
+            <div class="pagination" v-if="pageshow">
+                <el-pagination
+                        background
+                        @size-change="handleSizeChange"
+                        @current-change="pageChange"
+                        :current-page.sync="cur_page"
+                        :page-size="pageination.pageItem"
+                        :total="pageination.total">
+                </el-pagination>
+            </div>
         </div>
 
         <el-dialog :title="dialogTitle" :visible.sync="dialogMemberVisible" width="1200px">
@@ -353,6 +357,8 @@
                 dialogValue: [],
                 start: 0,
                 draw: 1,
+                cur_page: 1,
+                pageshow: true,
                 // panel 配置项目
                 panel: {
                     name: '',
@@ -433,7 +439,7 @@
                 this.form.btnType = 1;
 
                 this.form.shopId = row.Id;
-                this.dialogMemberVisible = true
+                this.dialogMemberVisible = true;
                 this.dialogTitle = '编辑会员'
             },
             // 禁用
@@ -1003,6 +1009,7 @@
                 let that = this;
                 this.draw = 1;
                 this.start = 0;
+                this.cur_page = 1;//cur_page 当前页
                 that.serachBtnStatus = true;
                 let totalTime = 2;
                 let clock = window.setInterval(() => {
@@ -1013,6 +1020,10 @@
                     }
                 }, 1000);
                 this.getTableQuery();
+                this.pageshow = false;//让分页隐藏
+                this.$nextTick(() => {//重新渲染分页
+                    this.pageshow = true;
+                });
                 this.$message.success('查询完毕');
             },
             clearForm() {
@@ -1045,7 +1056,7 @@
                         that.loading = false;
                         if (json.Rs) {
                             that.allTableData = json.Rs;
-                            that.recordsTotal = parseInt(json.PageCount) * 100;
+                            that.recordsTotal = parseInt(json.AllCount);
                         } else {
                             that.allTableData = [];
                             that.recordsTotal = 0;