分页缓存

dev_2022-04-07
yujialong 3 years ago
parent 51defe0d06
commit b0e4161523
  1. 5
      src/views/course/Curriculum.vue
  2. 2
      src/views/course/contentSettings.vue
  3. 2
      src/views/customer/AddCustomer.vue
  4. 5
      src/views/customer/customer.vue
  5. 5
      src/views/order/Order.vue
  6. 5
      src/views/serve/Configure.vue
  7. 2
      src/views/serve/projectAdd.vue
  8. 10
      src/views/serve/projectList.vue
  9. 2
      src/views/system/log.vue
  10. 3
      src/views/user/User.vue

@ -135,9 +135,9 @@ export default {
curriculumType: "", curriculumType: "",
curriculumName: "" curriculumName: ""
}, },
pageNo: 1, pageNo: +this.$route.query.page || 1,
pageSize: 10, pageSize: 10,
totals: 1, totals: 0,
subjectList: [], // subjectList: [], //
ProfessionalClassList: [], // ProfessionalClassList: [], //
ProfessionalList: [], // ProfessionalList: [], //
@ -284,6 +284,7 @@ export default {
// //
handleCurrentChange(val) { handleCurrentChange(val) {
this.pageNo = val; this.pageNo = val;
this.$router.push(`curriculum?page=${val}`)
this.getData(); this.getData();
}, },
// //

@ -293,7 +293,7 @@ export default {
if (this.previewing) { if (this.previewing) {
this.closeIframe(); this.closeIframe();
} else { } else {
this.$router.push("/curriculum"); this.$router.back()
} }
}, },
iframeOnload() { iframeOnload() {

@ -649,7 +649,7 @@ export default {
}, },
goback(){ goback(){
this.$router.go(-1) this.$router.back()
} }
} }
}; };

@ -115,9 +115,9 @@ export default {
multipleSelection: [], multipleSelection: [],
provinceList: [], provinceList: [],
cityList: [], cityList: [],
page: 1, page: +this.$route.query.page || 1,
pageSize: 10, pageSize: 10,
total: 1, total: 0,
ruleIds: [] ruleIds: []
}; };
}, },
@ -237,6 +237,7 @@ export default {
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.page = val this.page = val
this.$router.push(`customer?page=${val}`)
this.getData() this.getData()
}, },
resetPassword(row){ resetPassword(row){

@ -155,9 +155,9 @@ export default {
name: "已取消", name: "已取消",
value: 2 value: 2
}], }],
pageNo: 1, pageNo: +this.$route.query.page || 1,
pageSize: 10, pageSize: 10,
totals: 1, totals: 0,
searchTimer: null searchTimer: null
}; };
}, },
@ -310,6 +310,7 @@ export default {
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.pageNo = val; this.pageNo = val;
this.$router.push(`order?page=${val}`)
this.getData(); this.getData();
}, },
// //

@ -101,7 +101,7 @@ export default {
systemSearch: "", systemSearch: "",
searchTimer: null, searchTimer: null,
systemData: [], systemData: [],
totals: 1, totals: 0,
systemBelongList: [ systemBelongList: [
{ {
label: "外部产品", label: "外部产品",
@ -134,7 +134,7 @@ export default {
0: '运行中', 0: '运行中',
1: '默认' 1: '默认'
}, },
pageNo: 1, pageNo: +this.$route.query.page || 1,
pageSize: 10 pageSize: 10
}; };
}, },
@ -170,6 +170,7 @@ export default {
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.pageNo = val; this.pageNo = val;
this.$router.push(`configure?page=${val}`)
this.getData(); this.getData();
}, },
edit(row) { edit(row) {

@ -747,7 +747,7 @@ export default {
}, },
// //
toList() { toList() {
this.$router.push(`/projectList?systemId=${this.$route.query.systemId}&show=${this.isDetails}&founder=${this.founder}&name=${this.$route.query.name}`); this.$router.back()
}, },
// //
back() { back() {

@ -197,7 +197,7 @@ export default {
0: '草稿箱', 0: '草稿箱',
1: '已发布' 1: '已发布'
}, },
page: 1, page: +this.$route.query.page || 1,
pageSize: 10, pageSize: 10,
multipleSelection: [], multipleSelection: [],
copyVisible: false, copyVisible: false,
@ -215,7 +215,6 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.$route.query.founder)
if (this.$route.query.founder && this.$route.query.founder != 'undefined'){ if (this.$route.query.founder && this.$route.query.founder != 'undefined'){
this.queryData.founder = +this.$route.query.founder this.queryData.founder = +this.$route.query.founder
}else{ }else{
@ -245,6 +244,13 @@ export default {
}, },
handleCurrentChange(val) { // handleCurrentChange(val) { //
this.page = val; this.page = val;
this.$router.push({
path: 'projectList',
query: {
...this.$route.query,
page: val
}
})
this.getData(); this.getData();
}, },
add() { // add() { //

@ -58,6 +58,7 @@ export default {
this.searchTimer = setTimeout(() => { this.searchTimer = setTimeout(() => {
const list = this.listData const list = this.listData
this.listData = val ? list.filter(e => e.name.includes(val)) : this.listDataAll this.listData = val ? list.filter(e => e.name.includes(val)) : this.listDataAll
this.total = this.listData.length
}, 500); }, 500);
} }
}, },
@ -75,6 +76,7 @@ export default {
}) })
this.listDataAll = res.logManagementListVo this.listDataAll = res.logManagementListVo
this.listData = res.logManagementListVo this.listData = res.logManagementListVo
this.total = this.listData.length
}).catch(res => {}) }).catch(res => {})
}, },
currentChange(val) { currentChange(val) {

@ -209,7 +209,7 @@ export default {
label: '数据前瞻' label: '数据前瞻'
}, },
], ],
page: 1, page: +this.$route.query.page || 1,
pageSize: 10, pageSize: 10,
totals: 0, totals: 0,
multipleSelection: [], multipleSelection: [],
@ -326,6 +326,7 @@ export default {
}, },
currentChange(val) { currentChange(val) {
this.page = val this.page = val
this.$router.push(`user?page=${val}`)
this.getData() this.getData()
}, },
toDetail(row, detail){ toDetail(row, detail){

Loading…
Cancel
Save