|
|
|
@@ -3,7 +3,7 @@
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getEnumOptions = async (enumName) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/enumOptions", {enumName})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/enumOptions", {enumName})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -12,7 +12,7 @@ const getEnumOptions = async (enumName) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getDictOptions = async (code) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/dictOptions", {code})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/dictOptions", {code})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -21,7 +21,7 @@ const getDictOptions = async (code) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getDictState = async (code) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/dictState", {code})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/dictState", {code})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -30,7 +30,7 @@ const getDictState = async (code) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getCampus = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getCampus")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getCampus")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -40,19 +40,19 @@ const getCampus = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getDbt = async (jdhId) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getDbt", {jdhId})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getDbt", {jdhId})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询当前用户管理的院级工会
|
|
|
|
|
const getUnion = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getUnion")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getUnion")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询当前用户管理的院级工会下的单位
|
|
|
|
|
const getUnit = async (unionid) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getUnit", {unionid: unionid})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getUnit", {unionid: unionid})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -61,7 +61,7 @@ const getUnit = async (unionid) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getGroup = async (jdhId) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getGroup", {jdhId})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getGroup", {jdhId})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -76,7 +76,7 @@ const getOpenJdh = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getUnions = async (delegationId = null, isPermission = false) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unions", {delegationId, isPermission})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unions", {delegationId, isPermission})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -94,12 +94,12 @@ const getActivityUnions = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getUnits = async (unionId = null) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/units", {unionId})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/units", {unionId})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const getClubUnits = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getClubUnits", {})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getClubUnits", {})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -118,7 +118,7 @@ const getActivityUnits = async (unionId) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getUnionUnits = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unionUnits")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unionUnits")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -127,7 +127,7 @@ const getUnionUnits = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getWelfareUnits = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/welfareUnits")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/welfareUnits")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -136,7 +136,7 @@ const getWelfareUnits = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getUnitsByWelfareUnit = async (welfareUnitId) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unitsByWelfareUnit", {welfareUnitId})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unitsByWelfareUnit", {welfareUnitId})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -145,7 +145,7 @@ const getUnitsByWelfareUnit = async (welfareUnitId) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getClubs = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/clubs", {})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/clubs", {})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -154,7 +154,7 @@ const getClubs = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getJc = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getJcByDict")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getJcByDict")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -163,7 +163,7 @@ const getJc = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getClubsByRole = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getClubsByRole", {})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getClubsByRole", {})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
@@ -171,7 +171,7 @@ const getClubsByRole = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getClubsByUser = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getClubsByUser", {})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getClubsByUser", {})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -180,7 +180,7 @@ const getClubsByUser = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getFileType = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getFileTypeByDict")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getFileTypeByDict")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -189,7 +189,7 @@ const getFileType = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getJcgbJs = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getJcgbJsByDict")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getJcgbJsByDict")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -198,7 +198,7 @@ const getJcgbJs = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getSpyJs = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getSpyJsByDict")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getSpyJsByDict")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -207,7 +207,7 @@ const getSpyJs = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getClubType = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getClubTypeByDict")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getClubTypeByDict")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -216,7 +216,7 @@ const getClubType = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getSystemName = async () => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getSystemNameByDict")
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getSystemNameByDict")
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -225,7 +225,7 @@ const getSystemName = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getGdh = async (open = true) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getGdh", {open})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getGdh", {open})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -243,7 +243,7 @@ const getGdhDbt = async (jdhId) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const queryUserByIds = async (ids) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/queryUserByIds", {ids: JSON.stringify(ids)})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/queryUserByIds", {ids: JSON.stringify(ids)})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -252,7 +252,7 @@ const queryUserByIds = async (ids) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const queryUserById = async (id) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/queryUserById", {id: id})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/queryUserById", {id: id})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -266,7 +266,7 @@ const queryUserById = async (id) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const searchUser = async (query, unionId = null, unitId = null, sex = null, member = null) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/searchUser", {
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/searchUser", {
|
|
|
|
|
query,
|
|
|
|
|
unionId,
|
|
|
|
|
unitId,
|
|
|
|
@@ -326,11 +326,11 @@ const getNowLxyHd = async () => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getUnionList = async (unionId) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unionList", {unionId})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unionList", {unionId})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
const threeUnitsByUnionGroupOrUnitId = async (unitId, groupId) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/threeUnitsByUnionGroupOrUnitId", {
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/threeUnitsByUnionGroupOrUnitId", {
|
|
|
|
|
unitId,
|
|
|
|
|
groupId
|
|
|
|
|
})
|
|
|
|
@@ -338,7 +338,7 @@ const threeUnitsByUnionGroupOrUnitId = async (unitId, groupId) => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const unionGroupsByUnionId = async (unionId) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unionGroupsByUnionId", {unionId})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unionGroupsByUnionId", {unionId})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -388,7 +388,7 @@ const getLocationVariable = (variable) => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const getConfigKey = async (key) => {
|
|
|
|
|
const {data} = await $.get('/platform/staffTherapyRecuperation/common/getValue', {key})
|
|
|
|
|
const {data} = await $.get('/platform/inclusiveTherapyV3/common/getValue', {key})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -397,7 +397,7 @@ const getConfigKey = async (key) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getUnitByUnions = async (unionId = null) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getUnitsByUnions", {unionId})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getUnitsByUnions", {unionId})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -408,7 +408,7 @@ const getUnitByUnions = async (unionId = null) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getThreeUnitsByUnionGroupsOrUnitIds = async (unitId, groupId) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getThreeUnitsByUnionGroupsOrUnitIds", {
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getThreeUnitsByUnionGroupsOrUnitIds", {
|
|
|
|
|
unitId,
|
|
|
|
|
groupId
|
|
|
|
|
})
|
|
|
|
@@ -421,6 +421,6 @@ const getThreeUnitsByUnionGroupsOrUnitIds = async (unitId, groupId) => {
|
|
|
|
|
* @returns {Promise<*>}
|
|
|
|
|
*/
|
|
|
|
|
const getUnionGroupsByUnions = async (unionId) => {
|
|
|
|
|
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getUnionGroupsByUnions", {unionId})
|
|
|
|
|
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getUnionGroupsByUnions", {unionId})
|
|
|
|
|
return data
|
|
|
|
|
}
|
|
|
|
|