fix : 修复角色替换接口
This commit is contained in:
@@ -21,9 +21,9 @@ export const getUserAccount = () => {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export const judgeIsSameRole = () => {
|
export const judgeIsSameRole = (userId) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/admin/mosr/user/company/same',
|
url: `/admin/mosr/user/company/same/${userId}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,9 +122,9 @@ const schame = computed(() => {
|
|||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
change: async (val) => {
|
change: async (val) => {
|
||||||
const {code, data} = await judgeIsSameRole()
|
const {code, data} = await judgeIsSameRole(form.value.getValues().userId)
|
||||||
if (code === 1000) {
|
if (code === 1000) {
|
||||||
console.log('currentRoleArray.value', currentRoleArray.value)
|
console.log('currentRoleArray.value',data)
|
||||||
if (currentRoleArray.value.length !== 0) {
|
if (currentRoleArray.value.length !== 0) {
|
||||||
val.forEach(selectItem => {
|
val.forEach(selectItem => {
|
||||||
currentRoleArray.value.forEach(currentItem => {
|
currentRoleArray.value.forEach(currentItem => {
|
||||||
|
|||||||
Reference in New Issue
Block a user