forked from dyf/dyf-vue-ui
app用户管理bug修复
This commit is contained in:
@ -75,7 +75,7 @@ export const userAllCustomerAll = () => {
|
|||||||
export const deviceUnbind = (params: any) => {
|
export const deviceUnbind = (params: any) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/device/unbind',
|
url: '/api/device/unbind',
|
||||||
method: 'GET',
|
method: 'delete',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ export const userStatus = (data: any): AxiosPromise => {
|
|||||||
// 解绑设备
|
// 解绑设备
|
||||||
export const deviceUnBind = (data: any): AxiosPromise => {
|
export const deviceUnBind = (data: any): AxiosPromise => {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/app/device/unBind',
|
url: '/api/device/unbind',
|
||||||
method: 'delete',
|
method: 'delete',
|
||||||
data,
|
data,
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -58,6 +58,7 @@ const queryParams = reactive({
|
|||||||
deviceImei: ''
|
deviceImei: ''
|
||||||
})
|
})
|
||||||
function openDialog(row: OperLogForm) {
|
function openDialog(row: OperLogForm) {
|
||||||
|
console.log(row,'roweee');
|
||||||
info.value = row;
|
info.value = row;
|
||||||
open.value = true;
|
open.value = true;
|
||||||
getList();
|
getList();
|
||||||
@ -105,7 +106,8 @@ const handleUnbind = (row) => {
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
const data = {
|
const data = {
|
||||||
// deviceMac: row.deviceMac,
|
// deviceMac: row.deviceMac,
|
||||||
id: row.id
|
id: row.id,
|
||||||
|
userId:info.value.userId
|
||||||
}
|
}
|
||||||
api.deviceUnBind(data).then(() => {
|
api.deviceUnBind(data).then(() => {
|
||||||
proxy?.$modal.msgSuccess({ type: 'success', message: '解绑成功!' })
|
proxy?.$modal.msgSuccess({ type: 'success', message: '解绑成功!' })
|
||||||
|
Reference in New Issue
Block a user