From 883ca635ebb2df1ccb9e7f6dc19a88c7ad374cb6 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期日, 21 七月 2024 14:47:00 +0800 Subject: [PATCH] update 部分需求变更 --- mixin/mixin.js | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/mixin/mixin.js b/mixin/mixin.js index 5551356..a2ac9ad 100644 --- a/mixin/mixin.js +++ b/mixin/mixin.js @@ -24,6 +24,9 @@ cache_user: state => { return state.currentInfo || {} }, + sign: state => { + return state.sign || {} + }, // currentEnId: state=>{ // // console.log('currentEnId',state.currentInfo.enId,state.currentInfo) // return state.currentInfo.enId || '' @@ -259,13 +262,17 @@ this.page.current = 1 await this.getList() }, - async getList() { + async getList(type='get') { if (this.listApi) { this.$message.showLoading() const { data - } = await this.$http.request('get', this.listApi, { + } = await this.$http.request(type, this.listApi, { params: { + ...this.query, + ...this.page + }, + data:{ ...this.query, ...this.page } @@ -292,10 +299,10 @@ } }, - async getMore() { + async getMore(type='get') { if (this.page.total > this.page.current * this.page.size) { this.page.current += 1 - await this.getList() + await this.getList(type) } }, backHome() { -- Gitblit v1.9.3