From 0df0289f01cdd051328a0301fae9b3e4478ba9f2 Mon Sep 17 00:00:00 2001 From: rainbro <33367671@qq.com> Date: Fri, 4 Jul 2025 09:58:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E8=B4=A6=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/agent/payCertSetting.vue | 60 +++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/src/views/agent/payCertSetting.vue b/src/views/agent/payCertSetting.vue index ff83632..9715a01 100644 --- a/src/views/agent/payCertSetting.vue +++ b/src/views/agent/payCertSetting.vue @@ -164,7 +164,20 @@ - 分账记录 + + + + + + + + + + + + @@ -246,6 +259,7 @@ import GuipDialog from '@/components/GuipDialog.vue' import GuipInput from '@/components/GuipInput.vue' import GuipSelect from '@/components/GuipSelect.vue' import PromptText from '@/components/PromptText.vue' +import GuipTable from '@/components/GuipTable.vue' // 收款方式 const PAY_TYPE_TAOBAO = 0; // 淘宝 @@ -266,6 +280,7 @@ export default { GuipInput, GuipSelect, PromptText, + GuipTable, }, data() { return { @@ -294,6 +309,10 @@ export default { 'receiver_name': '', }, profitShareReceiversRelationType: [], + profitShareList: [], + profitShareListCurrentPage: 1, //当前页 + profitShareListPageSize: 1, //每页的容量 + profitShareListTotal: 0, //列表总数 showCustomInput: false, uploadParams: { @@ -301,6 +320,8 @@ export default { uploadHeaders: { 'Auth': this.token }, + + tableLoading: false, } }, computed: { @@ -407,6 +428,31 @@ export default { console.error(error, 'error') }) }, + getProfitShareList() { + this.tableLoading = true + const that = this + that.profitShareList = [] + this.$http('POST', '/agentnew/ajax_get_profit_share_list', { + pid: this.$route.query.payid, + cur_page: this.profitShareListCurrentPage, + page_size: this.profitShareListPageSize + },{ + headers:{ + 'Auth': this.token + } + }).then(response => { + this.tableLoading = false + this.$nextTick(() => { + that.profitShareList = response.data.list + + that.profitShareListTotal = response.data.total + + console.log(this.profitShareList) + }) + }).catch(error => { + console.error(error, 'error') + }) + }, cancle() { this.getPayment(); }, @@ -418,9 +464,21 @@ export default { }, handlePreview(file) { console.log(file); + }, handleClick(tab, event) { console.log(tab, event); + if (this.profitShareTab == 'profit_share_list') { + this.getProfitShareList(); + } + }, + handleSizeChange(val) { + this.profitShareListPageSize = val + this.getProfitShareList() + }, + handleCurrentChange(val) { + this.profitShareListCurrentPage = val + this.getProfitShareList() }, showDialog(type) { if (type == 'apiv3') {