|
|
@@ -28,7 +28,9 @@ export async function getLoginUser(data) {
|
|
|
*/
|
|
|
|
|
|
export async function getExpiryDate(accountId) {
|
|
|
- const res = await request.get(`/system/account/checkPasswordPeriod/${accountId}`);
|
|
|
+ const res = await request.get(
|
|
|
+ `/system/account/checkPasswordPeriod/${accountId}`
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
@@ -91,3 +93,15 @@ export async function getLatestVersion() {
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 获取部门所有父级
|
|
|
+ *
|
|
|
+ */
|
|
|
+export async function getParentIdListByDeptId(id) {
|
|
|
+ const res = await request.get(`/main/group/getParentIdListById/${id}`);
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ return res.data.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
+}
|