From 512d5d7e79e0a64b36e24cbe5d7c5f8d0adc0b94 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 26 九月 2024 17:46:48 +0800 Subject: [PATCH] 1.升级了element-plus版本 2.对外支持模块新设备匹配工地功能完成 3.新增设备匹配模块单挑匹配记录编辑功能(未完成) --- src/api/fysp/userApi.js | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/api/fysp/userApi.js b/src/api/fysp/userApi.js index 389bf87..fc38ad2 100644 --- a/src/api/fysp/userApi.js +++ b/src/api/fysp/userApi.js @@ -27,5 +27,19 @@ */ autoCreateAccount(sId) { return $fysp.post(`userinfo/create?sceneId=${sId}`).then((res) => res.data); + }, + + /** + * 鐢ㄦ埛妯$硦鎼滅储 + * @param {object} area 鍖哄煙鑼冨洿鏉′欢 + * @param {String} keyword 鎼滅储鍏抽敭瀛� + * @param {Number} userType 鐢ㄦ埛绫诲瀷锛岄粯璁�3锛氫紒涓� + * @returns + */ + searchUser(area, keyword, page = 1, perPage = 20, userType = 3) { + const param = `?keyword=${keyword}&userType=${userType}&page=${page}&per_page=${perPage}` + return $fysp + .post(`userinfo/search${param}`, area) + .then((res) => res.data); } }; -- Gitblit v1.9.3