|
|
|
@ -32,13 +32,15 @@ export default {
|
|
|
|
|
components: { CountTo },
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
pageSize: 7,
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
intervalID: undefined,
|
|
|
|
|
list: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted: function () {
|
|
|
|
|
this.getContractList();
|
|
|
|
|
//this.intervalStrat();
|
|
|
|
|
this.intervalStrat();
|
|
|
|
|
},
|
|
|
|
|
// mounted() {
|
|
|
|
|
// var date = new Date();
|
|
|
|
@ -53,8 +55,8 @@ export default {
|
|
|
|
|
url: "/api/contractMobile/ContractMobile/getMobileList",
|
|
|
|
|
method: "post",
|
|
|
|
|
data: {
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
pageSize: 7,
|
|
|
|
|
currentPage: this.currentPage,
|
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
|
json: "",
|
|
|
|
|
keyword: "",
|
|
|
|
|
sidx: "",
|
|
|
|
@ -62,6 +64,11 @@ export default {
|
|
|
|
|
}).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.list = res.data.list;
|
|
|
|
|
if (this.list.length === this.pageSize) {
|
|
|
|
|
this.currentPage = this.currentPage + 1;
|
|
|
|
|
} else {
|
|
|
|
|
this.currentPage = 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
})
|
|
|
|
@ -69,8 +76,8 @@ export default {
|
|
|
|
|
intervalStrat() {
|
|
|
|
|
this.intervalDel();
|
|
|
|
|
this.intervalID = setInterval(() => {
|
|
|
|
|
console.log('hi');
|
|
|
|
|
}, 1000);
|
|
|
|
|
this.getContractList();
|
|
|
|
|
}, 5000);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
intervalDel() {
|
|
|
|
|