From 3c664e9ba607921784777a4b32e397596d5296a3 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 8 Jan 2025 13:33:56 +0800 Subject: [PATCH] =?UTF-8?q?1.07=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/admin.js | 8 ++++ src/api/trials.js | 8 ++++ src/components/BaseTable/index.vue | 4 ++ src/views/system/login-log/detail.vue | 44 ++++++++++++------- src/views/system/user/components/UserInfo.vue | 11 +++-- src/views/system/user/list/index.vue | 39 +++++++++++++++- .../personnel-manage/components/site.vue | 2 +- .../personnel-manage/components/staff.vue | 36 +++++++++++++++ src/views/trials/trials-workbench/index.vue | 2 +- 9 files changed, 132 insertions(+), 22 deletions(-) diff --git a/src/api/admin.js b/src/api/admin.js index 71a658c3..fa0cc84e 100644 --- a/src/api/admin.js +++ b/src/api/admin.js @@ -334,3 +334,11 @@ export function updateUserRoleInfo(data) { data }) } +// 管理端新增用户发送邮件 +export function addNewUserSendEmail(data) { + return request({ + url: `/User/addNewUserSendEmail`, + method: 'post', + data + }) +} diff --git a/src/api/trials.js b/src/api/trials.js index 63045745..432f32c5 100644 --- a/src/api/trials.js +++ b/src/api/trials.js @@ -3950,4 +3950,12 @@ export function setTrialQuestionExportResult(data) { method: 'post', data }) +} +// 项目加入人员发送邮件 +export function trialUserSendJoinEmail(data) { + return request({ + url: `/TrialMaintenance/trialUserSendJoinEmail`, + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/components/BaseTable/index.vue b/src/components/BaseTable/index.vue index 9f1bb6e0..dfdc43da 100644 --- a/src/components/BaseTable/index.vue +++ b/src/components/BaseTable/index.vue @@ -64,6 +64,10 @@ {{ operate.name }} - - - - {{ curData[key] }} + + + + + {{ + scope.row.value + }} @@ -21,9 +27,9 @@ }}{{ $fd('IsEnable', !item.IsUserRoleDisabled) }} - - - + + + @@ -76,12 +82,18 @@ export default { return Object.keys(this.curData) }, curData() { - if (!this.JsonObj) return {} + if (!this.JsonObj) return [] let obj = JSON.parse(this.JsonObj) - let curData = {} + let curData = [] + console.log(obj, 'obj') Object.keys(obj).forEach((key) => { if (this.curKeys.includes(key)) { - curData[key] = obj[key] + let o = { + key: this.$t(`system:loginLog:form:${key}`), + value: obj[key], + prop: key, + } + curData.push(o) } }) return curData diff --git a/src/views/system/user/components/UserInfo.vue b/src/views/system/user/components/UserInfo.vue index 73a63687..557113f6 100644 --- a/src/views/system/user/components/UserInfo.vue +++ b/src/views/system/user/components/UserInfo.vue @@ -46,7 +46,7 @@ --> - + @@ -89,7 +89,7 @@ > { if (res.IsSuccess) { - this.userTypeOptions = res.Result + this.userTypeOptions = [] + res.Result.forEach((item) => { + if (item.UserTypeEnum !== 21) { + this.userTypeOptions.push(item) + } + }) } }) }, diff --git a/src/views/system/user/list/index.vue b/src/views/system/user/list/index.vue index 076c8b5a..d963d16d 100644 --- a/src/views/system/user/list/index.vue +++ b/src/views/system/user/list/index.vue @@ -20,6 +20,7 @@ :total="total" @getList="getList" @editCb="handleEditUser" + @sendCb="addNewUserSendEmail" @deleteCb="handleDeleteUser" @sortByColumn="sortByColumn" > @@ -73,7 +74,12 @@