[update] 通过ids获取用户信息接口改成post请求
This commit is contained in:
@@ -136,7 +136,7 @@
|
|||||||
import ListMixin from '../mixins/ListMixin'
|
import ListMixin from '../mixins/ListMixin'
|
||||||
import CustomHeader from '@/components/CustomHeader'
|
import CustomHeader from '@/components/CustomHeader'
|
||||||
import { queryAllRole, queryDepartTreeList } from '../api/api'
|
import { queryAllRole, queryDepartTreeList } from '../api/api'
|
||||||
import { getAction } from '@/api/manage'
|
import { postAction } from '@/api/manage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SelectUser',
|
name: 'SelectUser',
|
||||||
@@ -262,7 +262,7 @@ export default {
|
|||||||
getUserListByIds (ids) {
|
getUserListByIds (ids) {
|
||||||
const params = {}
|
const params = {}
|
||||||
params.userIds = ids
|
params.userIds = ids
|
||||||
getAction(this.url.userListByIds, params).then((res) => {
|
postAction(this.url.userListByIds, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.selectedDataArr = res.result || []
|
this.selectedDataArr = res.result || []
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
import CustomHeader from '@/components/CustomHeader'
|
import CustomHeader from '@/components/CustomHeader'
|
||||||
import ListMixin from '@/mixins/ListMixin'
|
import ListMixin from '@/mixins/ListMixin'
|
||||||
import { getWorkGroupTreeList, queryAllRole } from '@/api/api'
|
import { getWorkGroupTreeList, queryAllRole } from '@/api/api'
|
||||||
import { getAction } from '@/api/manage'
|
import { postAction } from '@/api/manage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SelectUserByWorkGroup',
|
name: 'SelectUserByWorkGroup',
|
||||||
@@ -254,7 +254,7 @@ export default {
|
|||||||
getUserListByIds (ids) {
|
getUserListByIds (ids) {
|
||||||
const params = {}
|
const params = {}
|
||||||
params.userIds = ids
|
params.userIds = ids
|
||||||
getAction(this.url.userListByIds, params).then((res) => {
|
postAction(this.url.userListByIds, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.selectedDataArr = res.result.map(item => {
|
this.selectedDataArr = res.result.map(item => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user