新大宝股票管理后台
1
admin
9 days ago 25bbee380e5d5266ee2c3edbf9093b320f6c6cb5
src/views/product/markettrading.vue
@@ -154,7 +154,7 @@
</template>
<script>
  import {
    SettingqueryAll,
    queryAllPage,
    stockupdata,
    stockadd,
    stockdelete
@@ -400,12 +400,13 @@
      getinit() {
        this.getqueryParam()
        this.pagination.current = 1
        this.pagination.pageSize = this.queryParam.pageSize
        this.getlist()
      },
      getlist() {
        this.loading = true
        SettingqueryAll(this.queryParam).then((res) => {
          this.datalist = res.data
        queryAllPage(this.queryParam).then((res) => {
          this.datalist = res.data.records
          this.pagination.total = res.data.total
          this.loading = false
        })
@@ -413,12 +414,17 @@
      onPageChange(page, pageSize) {
        this.queryParam.pageNum = page
        this.pagination.current = page
        if (pageSize) {
          this.queryParam.pageSize = pageSize
          this.pagination.pageSize = pageSize
        }
        this.getlist()
      },
      onSizeChange(current, pageSize) {
        this.queryParam.pageNum = current
        this.pagination.current = page
        this.queryParam.pageSize = pageSize
        this.pagination.current = current
        this.pagination.pageSize = pageSize
        this.getlist()
      },
    },