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 @@