| 123456789101112131415161718 |
- import {
- QueryModifyUserInfoApply,
- } from "@/services/go/ermcp/customInfo";
- import {ModifyUserInfoApplyReq} from "@/services/go/ermcp/customInfo/interface";
- import {Ref} from "vue";
- import {commonResultInfo, getRequestResultInfo} from "@/common/methods/request";
- import {ChangeCustomInfoSign} from "@/views/information/custom/setup";
- /**
- * 修改用户申请
- * @param type: 2新 增, type: 1保存草稿
- */
- export function modifyUserInfo(type: number, userInfoApply: ModifyUserInfoApplyReq, loading: Ref<boolean>): Promise<string>{
- loading.value = true;
- const sign = getRequestResultInfo(ChangeCustomInfoSign, type) // 接口请求后的返回提示 这里统一进行管理
- const result = QueryModifyUserInfoApply(userInfoApply)
- return commonResultInfo(result, sign, loading)
- }
|