From b61205adfb447bb868a454b971aa90c3d82034de Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 21 十一月 2023 14:52:13 +0800 Subject: [PATCH] # --- pages/business/plan/plan.vue | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/pages/business/plan/plan.vue b/pages/business/plan/plan.vue index 5254556..81672e2 100644 --- a/pages/business/plan/plan.vue +++ b/pages/business/plan/plan.vue @@ -160,6 +160,15 @@ getCsmtr1(e) { let that = this that.csmtrList = [] + uni.showLoading({}) + let param = {curr:1,limit:4,dept_id: 0,user_id: 67} + if (this.user.type == 'user_id') { + param = {curr:1,limit:4,user_id: that.user.id} + } else if(this.user.type == 'dept_id') { + param = {curr:1,limit:4,dept_id: that.user.id} + } else { + param = {curr:1,limit:4} + } uni.request({ url: that.baseUrl + '/plan/page/auth', header: {'token' : uni.getStorageSync('token'),}, @@ -196,10 +205,22 @@ }); }, 1000); }, + complete() { + uni.hideLoading() + } }) }, getCsmtr() { let that = this + uni.showLoading({}) + let param = {curr:that.curr,limit:4,dept_id: 0,user_id: 67} + if (this.user.type == 'user_id') { + param = {curr:that.curr,limit:4,user_id: that.user.id} + } else if(this.user.type == 'dept_id') { + param = {curr:that.curr,limit:4,dept_id: that.user.id} + } else { + param = {curr:that.curr,limit:4} + } uni.request({ url: that.baseUrl + '/plan/page/auth', header: {'token' : uni.getStorageSync('token'),}, @@ -237,6 +258,9 @@ }); }, 1000); }, + complete() { + uni.hideLoading() + } }) }, getDetails(id) { @@ -269,7 +293,7 @@ margin-top: 20px; } .popup-content { - margin-top: 150rpx; + margin-top: 260rpx; display: flex; align-items: center; justify-content: center; -- Gitblit v1.9.1