commit
This commit is contained in:
@@ -3,7 +3,7 @@ const businessTool = {
|
|||||||
listUnion: (unionId = null) => {
|
listUnion: (unionId = null) => {
|
||||||
return commonUtil
|
return commonUtil
|
||||||
.axiosService()
|
.axiosService()
|
||||||
.post("/open/common/unionOptions", { unionId })
|
.post("/open/common/unionOptions", {unionId})
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
if (resp.code === 0) {
|
if (resp.code === 0) {
|
||||||
return resp.data
|
return resp.data
|
||||||
@@ -15,7 +15,7 @@ const businessTool = {
|
|||||||
listClub: (clubId = null) => {
|
listClub: (clubId = null) => {
|
||||||
return commonUtil
|
return commonUtil
|
||||||
.axiosService()
|
.axiosService()
|
||||||
.post("/open/common/clubOptions", { clubId })
|
.post("/open/common/clubOptions", {clubId})
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
if (resp.code === 0) {
|
if (resp.code === 0) {
|
||||||
return resp.data
|
return resp.data
|
||||||
@@ -27,7 +27,19 @@ const businessTool = {
|
|||||||
listUnit(unionId = null) {
|
listUnit(unionId = null) {
|
||||||
return commonUtil
|
return commonUtil
|
||||||
.axiosService()
|
.axiosService()
|
||||||
.post("/open/common/unitOptions", { unionId })
|
.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) => {
|
.then((resp) => {
|
||||||
if (resp.code === 0) {
|
if (resp.code === 0) {
|
||||||
return resp.data
|
return resp.data
|
||||||
@@ -44,7 +56,7 @@ const businessTool = {
|
|||||||
getDictOptions(code = null) {
|
getDictOptions(code = null) {
|
||||||
return commonUtil
|
return commonUtil
|
||||||
.axiosService()
|
.axiosService()
|
||||||
.post("/open/common/dictOptions", { code })
|
.post("/open/common/dictOptions", {code})
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
if (resp.code === 0) {
|
if (resp.code === 0) {
|
||||||
return resp.data
|
return resp.data
|
||||||
@@ -61,7 +73,7 @@ const businessTool = {
|
|||||||
getAllDictOptions(code = null) {
|
getAllDictOptions(code = null) {
|
||||||
return commonUtil
|
return commonUtil
|
||||||
.axiosService()
|
.axiosService()
|
||||||
.post("/open/common/dictAllOptions", { code })
|
.post("/open/common/dictAllOptions", {code})
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
if (resp.code === 0) {
|
if (resp.code === 0) {
|
||||||
return resp.data
|
return resp.data
|
||||||
@@ -73,7 +85,7 @@ const businessTool = {
|
|||||||
getConfigKey(key) {
|
getConfigKey(key) {
|
||||||
return commonUtil
|
return commonUtil
|
||||||
.axiosService()
|
.axiosService()
|
||||||
.post("/open/common/getConfigKey", { key })
|
.post("/open/common/getConfigKey", {key})
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
if (resp.code === 0) {
|
if (resp.code === 0) {
|
||||||
return resp.data
|
return resp.data
|
||||||
|
|||||||
Reference in New Issue
Block a user