|
@@ -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()
|
|
},
|
|
},
|