From 1b69035ed22cbeed6b3f5a24b8ea5b587a5aad73 Mon Sep 17 00:00:00 2001 From: qiaomu <3520484422@qq.com> Date: Tue, 4 Mar 2025 17:32:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AC=E6=8D=A2=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/workBench/components/account/index.js | 6 +++--- service/tenement.js | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pages/workBench/components/account/index.js b/pages/workBench/components/account/index.js index c5982f6..676b28b 100644 --- a/pages/workBench/components/account/index.js +++ b/pages/workBench/components/account/index.js @@ -1,7 +1,7 @@ // pages/workBench/components/account/index.js import request from "../../../../utils/request" -import { getTenementBackInfo, } from "../../../../service/tenement" -import { getBackApproveList, removeUser, approveUser } from "../../../../service/user" +import { getTenementBackInfo, updateUserApp} from "../../../../service/tenement" +import { getBackApproveList, removeUser } from "../../../../service/user" import { alertInfo, alertSuccess, wxModal } from "../../../../utils/index" const { OK } = request @@ -72,7 +72,7 @@ Component({ const { id, name } = e.currentTarget.dataset; const { tenement } = this.data; await wxModal({ content: `确认要将${name}设置为管理吗?` }) - const { code, message } = await approveUser({ userId: id, type: 2, tenement: tenement }) + const { code, message } = await updateUserApp({ userId: id, type: 2, tenement: tenement }) if (code !== OK) { alertInfo(message) return; diff --git a/service/tenement.js b/service/tenement.js index 7073550..e26e11e 100644 --- a/service/tenement.js +++ b/service/tenement.js @@ -76,4 +76,9 @@ export const bindMeter = async function(pid, tid, data) { // 修改管理员手机号 export const updateAdminPhone = async function(data) { return await PUT(`/wx/updatePhone`, data) +} + +// 工作台移交管理权限 +export const updateUserApp = async function(data) { + return await PUT(`/wx/updateUserApp`, data) } \ No newline at end of file