From c550e8bb49cad3a43601c17ded0c0b06b1f0a40f Mon Sep 17 00:00:00 2001 From: nihaotian Date: Wed, 25 Sep 2024 17:43:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/response/administrator.js | 11 +++ .../component/selectUserDetails.vue | 75 +++++++++++++++++++ .../responding/component/selectUserNew.vue | 21 +++++- 3 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 src/views/responseManagement/responding/component/selectUserDetails.vue diff --git a/src/api/response/administrator.js b/src/api/response/administrator.js index 7955736..3212705 100644 --- a/src/api/response/administrator.js +++ b/src/api/response/administrator.js @@ -118,4 +118,15 @@ export const updatePasswordByOldPassword = (account,oldPassword,newPassword,tena } }); +} + +//根据用户名与租户Id验证密码是否正确 +export const getUserById = (id) => { + return request({ + url: '/api/' + moduleName + '/ui/administrator/getUserById', + method: 'get', + params: { + id, + } + }); } \ No newline at end of file diff --git a/src/views/responseManagement/responding/component/selectUserDetails.vue b/src/views/responseManagement/responding/component/selectUserDetails.vue new file mode 100644 index 0000000..4765f72 --- /dev/null +++ b/src/views/responseManagement/responding/component/selectUserDetails.vue @@ -0,0 +1,75 @@ + + + + + \ No newline at end of file diff --git a/src/views/responseManagement/responding/component/selectUserNew.vue b/src/views/responseManagement/responding/component/selectUserNew.vue index b515e5c..977cd14 100644 --- a/src/views/responseManagement/responding/component/selectUserNew.vue +++ b/src/views/responseManagement/responding/component/selectUserNew.vue @@ -7,6 +7,12 @@ + + + @@ -139,10 +151,12 @@ import { getAdminPage } from '/@/api/response/administrator.js'; import { ref, reactive, onMounted } from 'vue'; import { useThemeConfig } from '/@/stores/themeConfig'; import { storeToRefs } from 'pinia'; +import SelectUserDetails from './selectUserDetails.vue'; const storesThemeConfig = useThemeConfig(); const { website } = storeToRefs(storesThemeConfig); const formRef = ref(); +const selectUserDetailsRef = ref(); const dataIndex=[]; let chiefCount=0 let adminCount=0 @@ -190,6 +204,10 @@ const state = reactive({ selectType: [] }); +const getSelectUserDetails = (row) => { + selectUserDetailsRef.value.openDialog(row); +} + const sendToLeft = (index,row) => { if (row.roleId == '1793193529859244033') { chiefCount=chiefCount-1 @@ -453,6 +471,7 @@ const getTableDataNew = () => { state.tableDataNew.data = da.records; state.tableDataNew.data.forEach((item) => { item.userId = item.adminId; + item.id = item.adminId; item.name = item.userName; item.email = item.userEmail; item.roleId = item.userStatus==0?'1793193529859244033':'1123598816738675203';