xgwangman 4 år sedan
förälder
incheckning
875167a93b

+ 6 - 6
src/web/staticres/frontRouter/pc/seeHistory/js/index-pc.js

@@ -41,8 +41,8 @@ var vm = new Vue({
             statusEnum: ['存续', '吊销', '注销', '撤销'],
             statusEnum: ['存续', '吊销', '注销', '撤销'],
             statusColors: ['#2CB7CA', '#F5AF5C', '#58A1E7', '#51CEA2'],
             statusColors: ['#2CB7CA', '#F5AF5C', '#58A1E7', '#51CEA2'],
             seeList: {
             seeList: {
-                pageNum: 0, // 当前页
-                pageSize: 50, // 每页多少条数据
+                pageNum: 1, // 当前页
+                pageSize: 10, // 每页多少条数据
                 total: 0, // 总页数
                 total: 0, // 总页数
                 list: [] // 返回的数据
                 list: [] // 返回的数据
             }
             }
@@ -51,7 +51,6 @@ var vm = new Vue({
     created() {
     created() {
         this.years = new Date().getFullYear()
         this.years = new Date().getFullYear()
         this.months = parseInt(new Date().getMonth() + 1)
         this.months = parseInt(new Date().getMonth() + 1)
-        // this.dateVal = this.years + '年' + this.months + '月'
         this.dateVal = new Date()
         this.dateVal = new Date()
         this.subPoint()
         this.subPoint()
         this.subRecord()
         this.subRecord()
@@ -75,7 +74,7 @@ var vm = new Vue({
                 year: this.years,
                 year: this.years,
                 month: this.months,
                 month: this.months,
                 pageSize: this.seeList.pageSize,
                 pageSize: this.seeList.pageSize,
-                pageNum: this.seeList.pageNum
+                pageNum: this.seeList.pageNum - 1
             }
             }
         },
         },
         subRecord() {
         subRecord() {
@@ -89,7 +88,7 @@ var vm = new Vue({
                 var _this = this
                 var _this = this
                 if (res.error_code == 0 && res.data.list) {
                 if (res.error_code == 0 && res.data.list) {
                     if (res.data.total) {
                     if (res.data.total) {
-                        this.listState.total = res.data.total
+                        this.seeList.total = res.data.total
                     }
                     }
                     res.data.list.forEach(v => {
                     res.data.list.forEach(v => {
                         const arrs = {
                         const arrs = {
@@ -114,12 +113,13 @@ var vm = new Vue({
         },
         },
         onPageChange(page) {
         onPageChange(page) {
             this.seeList.pageNum = page
             this.seeList.pageNum = page
+            this.seeList.list = []
             this.subRecord()
             this.subRecord()
         },
         },
         dateHandler(val) {
         dateHandler(val) {
             this.years = val.getFullYear()
             this.years = val.getFullYear()
             this.months = val.getMonth() + 1
             this.months = val.getMonth() + 1
-            this.seeList.pageNum = 0
+            this.seeList.pageNum = 1
             this.seeList.list = []
             this.seeList.list = []
             this.subRecord()
             this.subRecord()
         },
         },

+ 3 - 3
src/web/templates/frontRouter/pc/seeHistory/sess/index.html

@@ -46,7 +46,7 @@
                 <i class="el-icon-arrow-down r-icons" @click="dateHandler"></i>
                 <i class="el-icon-arrow-down r-icons" @click="dateHandler"></i>
             </div>
             </div>
         </div>
         </div>
-        <div class="see-content w" v-show="seeList.length !== 0">
+        <div class="see-content w" v-show="seeList.list.length !== 0">
             <div class="lists flex" v-for="item in seeList.list" :key="item._id">
             <div class="lists flex" v-for="item in seeList.list" :key="item._id">
                 <div class="words-img" :style="{'background-color': item.color}" @click="detailed(item._id)">
                 <div class="words-img" :style="{'background-color': item.color}" @click="detailed(item._id)">
                     <span>{item.abbr1}</span><span class="xin-xi">{item.abbr2}</span>
                     <span>{item.abbr1}</span><span class="xin-xi">{item.abbr2}</span>
@@ -59,7 +59,7 @@
                     <div class="cont-tips di-zhi">地址:<span>{item.address}</span></div>
                     <div class="cont-tips di-zhi">地址:<span>{item.address}</span></div>
                 </div>
                 </div>
             </div>
             </div>
-            <div class="el-pagination-container">
+            <div class="el-pagination-container" v-show="seeList.total">
                 <el-pagination
                 <el-pagination
                     background
                     background
                     layout="prev, pager, next, ->"
                     layout="prev, pager, next, ->"
@@ -71,7 +71,7 @@
                 ></el-pagination>
                 ></el-pagination>
             </div>
             </div>
         </div>
         </div>
-        <div class="no-data" v-show="seeList.length === 0"><el-image src="/images/pc_12.png"></el-image><div class="tip-text"><p>暂无数据</p></div></div>
+        <div class="no-data" v-show="seeList.list.length === 0"><el-image src="/images/pc_12.png"></el-image><div class="tip-text"><p>暂无数据</p></div></div>
     </section>
     </section>
 
 
     {{include "/common/pcbottom.html"}}
     {{include "/common/pcbottom.html"}}