first commit

This commit is contained in:
2026-08-26 14:25:17 +08:00
commit 06debfd1fc
10595 changed files with 1836924 additions and 0 deletions
@@ -0,0 +1,121 @@
//业务工具
const businessTool = {
listUnion: (unionId = null) => {
return commonUtil
.axiosService()
.post("/open/common/unionOptions", {unionId})
.then((resp) => {
if (resp.code === 0) {
return resp.data
} else {
return []
}
})
},
listClub: (clubId = null) => {
return commonUtil
.axiosService()
.post("/open/common/clubOptions", {clubId})
.then((resp) => {
if (resp.code === 0) {
return resp.data
} else {
return []
}
})
},
listUnit(unionId = null) {
return commonUtil
.axiosService()
.post("/open/common/unitOptions", {unionId})
.then((resp) => {
if (resp.code === 0) {
return resp.data
} else {
return []
}
})
},
listClubByRole() {
return commonUtil
.axiosService()
.post("/platform/club/common/listClubByRole", {})
.then((resp) => {
if (resp.code === 0) {
return resp.data
} else {
return []
}
})
},
listManageClubByRole() {
return commonUtil
.axiosService()
.post("/platform/club/common/listManageClubByRole", {})
.then((resp) => {
if (resp.code === 0) {
return resp.data
} else {
return []
}
})
},
/**
* 获取字典数据,不包含禁用
* @param code
* @returns {*}
*/
getDictOptions(code = null) {
return commonUtil
.axiosService()
.post("/open/common/dictOptions", {code})
.then((resp) => {
if (resp.code === 0) {
return resp.data
} else {
return []
}
})
},
/**
* 包含禁用
* @param code
* @returns {*}
*/
getAllDictOptions(code = null) {
return commonUtil
.axiosService()
.post("/open/common/dictAllOptions", {code})
.then((resp) => {
if (resp.code === 0) {
return resp.data
} else {
return []
}
})
},
getConfigKey(key) {
return commonUtil
.axiosService()
.post("/open/common/getConfigKey", {key})
.then((resp) => {
if (resp.code === 0) {
return resp.data
} else {
return ""
}
})
},
getEnumOptions(name = null) {
return commonUtil
.axiosService()
.post("/open/common/dictEnumOptions", {name})
.then((resp) => {
if (resp.code === 0) {
return resp.data
} else {
return []
}
})
}
}