Browse Source

采购价页面渲染

pull/14/head
pengda 3 weeks ago
parent
commit
2876f06847
  1. 18
      src/views/super/Ranking/Purchase.vue

18
src/views/super/Ranking/Purchase.vue

@ -170,7 +170,8 @@ export default {
} }
}, },
mounted() { mounted() {
this.init() this.currentPage = 1
this.getData()
}, },
computed: { computed: {
type2nameOptions() { type2nameOptions() {
@ -194,7 +195,9 @@ export default {
}, },
watch: { watch: {
'$route'() { '$route'() {
this.init() document.title = this.pageTitle
this.currentPage = 1
this.getData()
}, },
'form.date'(newVal) { 'form.date'(newVal) {
if (Array.isArray(newVal) && newVal.length === 2) { if (Array.isArray(newVal) && newVal.length === 2) {
@ -207,9 +210,7 @@ export default {
} }
}, },
methods: { methods: {
init() { getData(){
document.title = this.pageTitle;
if (this.type == 'purchase') { if (this.type == 'purchase') {
this.getPurchase() this.getPurchase()
} else { } else {
@ -217,7 +218,8 @@ export default {
} }
}, },
changeSelectType() { changeSelectType() {
this.init() this.currentPage = 1
this.getData()
}, },
getPurchase() { getPurchase() {
const that = this const that = this
@ -255,11 +257,11 @@ export default {
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val this.pageSize = val
this.init() this.getData()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.currentPage = val this.currentPage = val
this.init() this.getData()
}, },
openDialog() { openDialog() {
this.dialogVisible = true; this.dialogVisible = true;

Loading…
Cancel
Save