From 4a2ae34a3cf85f5e8b0409b858cfbb12ef8b5ee2 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 02 八月 2023 11:18:51 +0800
Subject: [PATCH] 注掉暂不支持内容
---
src/views/sales/salesDetails/index.vue | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/views/sales/salesDetails/index.vue b/src/views/sales/salesDetails/index.vue
index fa85409..5cb8aab 100644
--- a/src/views/sales/salesDetails/index.vue
+++ b/src/views/sales/salesDetails/index.vue
@@ -3,7 +3,7 @@
<SearchCommonView ref="searchCommonView" :query-class-options="queryClassOptions" :search-options="searchOptions" />
<div class="btn-pager">
<PublicFunctionBtnView :submit-approval="true" :operates-list="operatesList" />
- <PagerView class="page" />
+ <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
</div>
<TableCommonView ref="tableListRef" :show-summary="showSummary" :table-list="tableList">
<template slot="tableButton">
@@ -23,10 +23,12 @@
<script>
import AddSalesDetailsDialog from "@/views/sales/salesDetails/AddSalesDetailsDialog"
import { getSalesDetailsList, getDelSalesDetails } from "@/api/sales/salesDetails"
+import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
export default {
name: "SalesDetails",
props: {},
+ mixins: [pageMixin],
components: {
AddSalesDetailsDialog
},
@@ -112,7 +114,11 @@
// 璇锋眰鏁版嵁
async getData() {
this.loading = true
- await getSalesDetailsList()
+ await getSalesDetailsList({
+ keyword: "",
+ page: this.pagerOptions.currPage,
+ pageSize: this.pagerOptions.pageSize
+ })
.then((res) => {
console.log(res)
if (res.code === 200) {
@@ -124,6 +130,7 @@
}
})
this.tableList.tableInfomation = list || []
+ this.pagerOptions.totalCount = res.data.count
} else {
this.tableList.tableInfomation = []
}
@@ -149,7 +156,7 @@
console.log(row)
this.editConfig.visible = true
this.editConfig.title = "缂栬緫"
- this.editConfig.infomation = { ...row }
+ this.editConfig.infomation = { ...row, sale_chance_name: "" }
},
// 鍒犻櫎
delClick(id) {
@@ -164,7 +171,7 @@
.then((response) => {
if (response.code === 200) {
this.$message.success("鍒犻櫎鎴愬姛")
- this.getUserList()
+ this.getData()
} else {
this.$message.warning("鍒犻櫎澶辫触")
}
--
Gitblit v1.8.0