[update] 通过ids获取用户信息接口改成post请求
This commit is contained in:
@@ -62,7 +62,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UserSelectByContactModal',
|
name: 'UserSelectByContactModal',
|
||||||
@@ -343,7 +343,7 @@ export default {
|
|||||||
const params = {}
|
const params = {}
|
||||||
params.userIds = ids
|
params.userIds = ids
|
||||||
this.loadingRight = true
|
this.loadingRight = true
|
||||||
getAction(this.url.userListByIds, params).then((res) => {
|
postAction(this.url.userListByIds, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSourceRight = res.result.map(item => {
|
this.dataSourceRight = res.result.map(item => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
import { getWorkGroupTreeList } from '@/api/api'
|
import { getWorkGroupTreeList } from '@/api/api'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -435,7 +435,7 @@ export default {
|
|||||||
const params = {}
|
const params = {}
|
||||||
params.userIds = ids
|
params.userIds = ids
|
||||||
this.loadingRight = true
|
this.loadingRight = true
|
||||||
getAction(this.url.userListByIds, params).then((res) => {
|
postAction(this.url.userListByIds, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSourceRight = res.result.map(item => { return { ...item, userId: item.id } }) || []
|
this.dataSourceRight = res.result.map(item => { return { ...item, userId: item.id } }) || []
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import JSearchSelectTag from '../dict/JSearchSelectTag'
|
import JSearchSelectTag from '../dict/JSearchSelectTag'
|
||||||
import { queryall, queryDepartTreeList } from '@/api/api'
|
import { queryall, queryDepartTreeList } from '@/api/api'
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UserSelectModal',
|
name: 'UserSelectModal',
|
||||||
@@ -394,7 +394,7 @@ export default {
|
|||||||
const params = {}
|
const params = {}
|
||||||
params.userIds = ids
|
params.userIds = ids
|
||||||
this.loadingRight = true
|
this.loadingRight = true
|
||||||
getAction(this.url.userListByIds, params).then((res) => {
|
postAction(this.url.userListByIds, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSourceRight = res.result || []
|
this.dataSourceRight = res.result || []
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { httpAction, getAction } from '@/api/manage'
|
import { httpAction, postAction } from '@/api/manage'
|
||||||
// import pick from 'lodash.pick'
|
// import pick from 'lodash.pick'
|
||||||
|
|
||||||
import JDate from '@/components/jero/JDate'
|
import JDate from '@/components/jero/JDate'
|
||||||
@@ -214,7 +214,7 @@ export default {
|
|||||||
if (record && record.msgType === 'USER') {
|
if (record && record.msgType === 'USER') {
|
||||||
this.userType = true
|
this.userType = true
|
||||||
this.userIds = record.userIds
|
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) {
|
if (res.success) {
|
||||||
// update--begin--autor:wangshuai-----date:20200601------for:系统公告选人后,不能删除------
|
// update--begin--autor:wangshuai-----date:20200601------for:系统公告选人后,不能删除------
|
||||||
const userList = []
|
const userList = []
|
||||||
|
|||||||
Reference in New Issue
Block a user