[update] 通过ids获取用户信息接口改成post请求

This commit is contained in:
lideqin
2024-02-27 14:42:26 +08:00
parent 6996c38303
commit da123e0f65
4 changed files with 8 additions and 8 deletions
@@ -62,7 +62,7 @@
</template>
<script>
import { getAction } from '@/api/manage'
import { getAction, postAction } from '@/api/manage'
export default {
name: 'UserSelectByContactModal',
@@ -343,7 +343,7 @@ export default {
const params = {}
params.userIds = ids
this.loadingRight = true
getAction(this.url.userListByIds, params).then((res) => {
postAction(this.url.userListByIds, params).then((res) => {
if (res.success) {
this.dataSourceRight = res.result.map(item => {
return {
@@ -114,7 +114,7 @@
</template>
<script>
import { getAction } from '@/api/manage'
import { getAction, postAction } from '@/api/manage'
import { getWorkGroupTreeList } from '@/api/api'
export default {
@@ -435,7 +435,7 @@ export default {
const params = {}
params.userIds = ids
this.loadingRight = true
getAction(this.url.userListByIds, params).then((res) => {
postAction(this.url.userListByIds, params).then((res) => {
if (res.success) {
this.dataSourceRight = res.result.map(item => { return { ...item, userId: item.id } }) || []
} else {
+2 -2
View File
@@ -89,7 +89,7 @@
<script>
import JSearchSelectTag from '../dict/JSearchSelectTag'
import { queryall, queryDepartTreeList } from '@/api/api'
import { getAction } from '@/api/manage'
import { getAction, postAction } from '@/api/manage'
export default {
name: 'UserSelectModal',
@@ -394,7 +394,7 @@ export default {
const params = {}
params.userIds = ids
this.loadingRight = true
getAction(this.url.userListByIds, params).then((res) => {
postAction(this.url.userListByIds, params).then((res) => {
if (res.success) {
this.dataSourceRight = res.result || []
} else {
@@ -141,7 +141,7 @@
</template>
<script>
import { httpAction, getAction } from '@/api/manage'
import { httpAction, postAction } from '@/api/manage'
// import pick from 'lodash.pick'
import JDate from '@/components/jero/JDate'
@@ -214,7 +214,7 @@ export default {
if (record && record.msgType === 'USER') {
this.userType = true
this.userIds = record.userIds
getAction(this.url.queryByIds, { userIds: this.userIds }).then((res) => {
postAction(this.url.queryByIds, { userIds: this.userIds }).then((res) => {
if (res.success) {
// update--begin--autor:wangshuai-----date:20200601------for:系统公告选人后,不能删除------
const userList = []