Merge branch 'main' of http://192.168.0.229:3180/OMC/ems_frontend_vue3
This commit is contained in:
@@ -61,9 +61,9 @@ export function getAuth(neId: string, imsi: string) {
|
|||||||
* @param data 鉴权对象
|
* @param data 鉴权对象
|
||||||
* @returns object
|
* @returns object
|
||||||
*/
|
*/
|
||||||
export function updateAuth(data: Record<string, any>) {
|
export function updateAuth(data: Record<string, any>,neID:string) {
|
||||||
return request({
|
return request({
|
||||||
url: `/udmUserManage/v1/auth/${data.neId}`,
|
url: `/udmUserManage/v1/auth/${neID}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ function fnModalOk() {
|
|||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const from = toRaw(modalState.from);
|
const from = toRaw(modalState.from);
|
||||||
const neID = queryParams.neId || '-';
|
const neID = queryParams.neId || '-';
|
||||||
const result = from.id ? updateAuth(from) : addAuth(neID, from);
|
const result = from.id ? updateAuth(from,neID) : addAuth(neID, from);
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading({ content: t('common.loading') });
|
||||||
result
|
result
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user