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

Loading…
Cancel
Save