bladex前端ui项目,基于avue-cli2.0开发
包含基础工作流,不包含表单设计器
https://git.javablade.com/blade/Saber
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
1.7 KiB
104 lines
1.7 KiB
import request from '@/axios'; |
|
|
|
|
|
|
|
export const getList = (current, size, params) => { |
|
return request({ |
|
url: '/blade-system/tenant/list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const getDetail = (id) => { |
|
return request({ |
|
url: '/blade-system/tenant/detail', |
|
method: 'get', |
|
params: { |
|
id |
|
} |
|
}) |
|
} |
|
|
|
export const remove = (ids) => { |
|
return request({ |
|
url: '/blade-system/tenant/remove', |
|
method: 'post', |
|
params: { |
|
ids, |
|
} |
|
}) |
|
} |
|
|
|
export const add = (row) => { |
|
return request({ |
|
url: '/blade-system/tenant/submit', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |
|
|
|
export const update = (row) => { |
|
return request({ |
|
url: '/blade-system/tenant/submit', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |
|
|
|
export const setting = (ids, form) => { |
|
return request({ |
|
url: '/blade-system/tenant/setting', |
|
method: 'post', |
|
params: { |
|
...form, |
|
ids |
|
} |
|
}) |
|
} |
|
|
|
export const datasource = (tenantId, datasourceId) => { |
|
return request({ |
|
url: '/blade-system/tenant/datasource', |
|
method: 'post', |
|
params: { |
|
tenantId, |
|
datasourceId |
|
} |
|
}) |
|
} |
|
|
|
export const info = (domain) => { |
|
return request({ |
|
url: '/blade-system/tenant/info', |
|
method: 'get', |
|
params: { |
|
domain |
|
} |
|
}) |
|
} |
|
|
|
export const packageInfo = (tenantId) => { |
|
return request({ |
|
url: '/blade-system/tenant/package-detail', |
|
method: 'get', |
|
params: { |
|
tenantId |
|
} |
|
}) |
|
} |
|
|
|
export const packageSetting = (tenantId, packageId) => { |
|
return request({ |
|
url: '/blade-system/tenant/package-setting', |
|
method: 'post', |
|
params: { |
|
tenantId, |
|
packageId |
|
} |
|
}) |
|
}
|
|
|