@@ -218,7 +218,7 @@ function hint(msg: string) { | |||
let params = { | |||
openId: openId, | |||
} | |||
BaseService.post(loginOutApi, params).then((res: any) => { | |||
BaseService.post('/userw/portal/logout', params).then((res: any) => { | |||
if (res && res.statusCode === 0) { | |||
$storeInitData.dispatch('loginOut', false) | |||
router.push('/login') |
@@ -160,7 +160,7 @@ function getList() { | |||
params[key] = searchFormList[key] | |||
} | |||
} | |||
BaseService.post('/ifmw/interfaceInvokeLog/interfaceinvokelog', params).then((res: any) => { | |||
BaseService.post('/ifmw/interfacePowerLog/query', params).then((res: any) => { | |||
if (res && res.code === 0) { | |||
let bizContent = res.data | |||
let data = bizContent.data || []; |
@@ -185,7 +185,6 @@ watchEffect(() => { | |||
(res: any) => { | |||
formLoding.value = false | |||
if (res && res.statusCode === 0) { | |||
console.log(JSON.parse(res.bizContent)) | |||
const configList = res.data?.data?.configList | |||
console.log(configList) | |||
configList.forEach((element) => { |
@@ -175,7 +175,7 @@ function handleCurrentChange(val: number) { | |||
const messageClientData = ref<any>([]) | |||
// 获取客户端数据 | |||
function getmessageClientData() { | |||
BaseService.post('6cc81c3e07114f898605292b0d52c999').then((res: any) => { | |||
BaseService.post('/msgw/clientconfig/list').then((res: any) => { | |||
if (res && res.statusCode === 0) { | |||
let bizContent = res.data | |||
let data = bizContent.data || [] |
@@ -34,13 +34,13 @@ const isLoading = ref(false) | |||
const logList = ref<any>([]) | |||
const getList = () => { | |||
isLoading.value = true | |||
BaseService.post('d6c7ed5023a64ef1950ae3ba232cc5a6', { | |||
BaseService.post('/msgw/messageimport/auditloglist', { | |||
importRecordId: props.dataList.id, | |||
}) | |||
.then((res: any) => { | |||
if (res && res.statusCode === 0) { | |||
console.log(res) | |||
const bizContent = JSON.parse(res.bizContent) | |||
const bizContent = res.data | |||
const data = bizContent.data || [] | |||
data.forEach((element) => { |
@@ -298,14 +298,14 @@ const submitForm = () => { | |||
if (!valid) { | |||
return false | |||
} | |||
let api = loginApi | |||
let api = '/userw/portal/login' | |||
let params: any = { | |||
//appId: dataForm.value.appId, | |||
mobile: dataForm.value.mobile, | |||
password: dataForm.value.loginPass, | |||
} | |||
if (formType.value === 'logon') { | |||
api = logonApi | |||
api = '/userw/portal/register' | |||
params = { | |||
nickName: dataForm.value.nickName, | |||
loginPass: dataForm.value.loginPass, | |||
@@ -320,7 +320,7 @@ const submitForm = () => { | |||
mobile: dataForm.value.mobile, | |||
code: dataForm.value.code, | |||
} | |||
api = loginBycodeApi | |||
api = '/userw/portal/loginbycode' | |||
} else if (formType.value === 'forgetPassword') { | |||
params = { | |||
mobile: dataForm.value.mobile, | |||
@@ -328,7 +328,7 @@ const submitForm = () => { | |||
newPassword: dataForm.value.newPassword, | |||
affirmNewPassword: dataForm.value.affirmNewPassword, | |||
} | |||
api = modifyPasswordByCodeApi | |||
api = '/userw/portal/changepasswordbycode' | |||
} | |||
submitFormLoading.value = true | |||
let lock = false | |||
@@ -346,7 +346,7 @@ const submitForm = () => { | |||
formType.value === 'loginByCode' | |||
) { | |||
// 获取token | |||
let bizContent = JSON.parse(res.bizContent) | |||
let bizContent = res.data | |||
let code = bizContent.code || '' | |||
lock = true | |||
getTokenHandle(code) | |||
@@ -454,10 +454,10 @@ const timerHandler = (type) => { | |||
// 获取token | |||
const getTokenHandle = (code: string) => { | |||
if (code) { | |||
BaseService.post(getToken, { code: code }) | |||
BaseService.post('/userw/portal/loginconfirm', { code: code }) | |||
.then((res: any) => { | |||
if (res && res.statusCode === 0) { | |||
let bizContent = JSON.parse(res.bizContent) | |||
let bizContent = res.data | |||
setCache('cacheAccessToken', bizContent, false) | |||
ElMessage.success('登录成功') | |||
//初始化数据 |
@@ -153,7 +153,7 @@ | |||
} | |||
let api = ""; | |||
if (formType.value === 'oldPassword') { | |||
api = modifyPasswordApi; | |||
api = '/userw/portal/changepassword'; | |||
params = { | |||
...params, | |||
mobile: dataForm.value.mobile, | |||
@@ -162,7 +162,7 @@ | |||
affirmNewPassword: dataForm.value.affirmNewPassword, | |||
} | |||
} else if (formType.value === 'byCode') { | |||
api = modifyPasswordByCodeApi; | |||
api = '/userw/portal/changepasswordbycode'; | |||
params = { | |||
...params, | |||
mobile: dataForm.value.mobile, | |||
@@ -171,7 +171,7 @@ | |||
affirmNewPassword: dataForm.value.affirmNewPassword, | |||
} | |||
} else { | |||
api = changePasswordApi; | |||
api = '/userw/portal/changepasswordsimple'; | |||
params = { | |||
...params, | |||
newPassword: dataForm.value.newPassword, |