diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 644799f2c2..560ec53fd4 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -17,8 +17,8 @@ http{ add_header X-Frame-Options "SAMEORIGIN"; try_files $uri $uri/ /index.html; - location ^~ /app/ { - proxy_pass http://172.16.200.18:8081/app/; + location ^~ /front/ { + proxy_pass http://172.16.200.18:8081/; proxy_connect_timeout 2s; proxy_read_timeout 600s; proxy_send_timeout 600s; diff --git a/frontend/src/api/modules/setting/system/organizationAndProject.ts b/frontend/src/api/modules/setting/system/organizationAndProject.ts new file mode 100644 index 0000000000..597f28b465 --- /dev/null +++ b/frontend/src/api/modules/setting/system/organizationAndProject.ts @@ -0,0 +1,23 @@ +import MSR from '@/api/http/index'; +import * as orgUrl from '@/api/requrls/setting/system/organizationAndProject'; +import { TableQueryParams } from '@/models/common'; + +// 获取组织列表 +export function postOrgTable(data: TableQueryParams) { + return MSR.post({ url: orgUrl.postOrgTableUrl, data }); +} + +// 获取项目列表 +export function postProjectTable(data: TableQueryParams) { + return MSR.post({ url: orgUrl.postProjectTableUrl, data }); +} + +// 根据组织id获取项目列表 +export function postProjectTableByOrgId(data: TableQueryParams) { + return MSR.post({ url: orgUrl.postProjectTableByOrgUrl, data }); +} + +// 根据组织id获取用户列表 +export function postUserTableByOrgId(data: TableQueryParams) { + return MSR.post({ url: orgUrl.postOrgMemberUrl, data }); +} diff --git a/frontend/src/api/requrls/setting/system/organizationAndProject.ts b/frontend/src/api/requrls/setting/system/organizationAndProject.ts new file mode 100644 index 0000000000..b50b428738 --- /dev/null +++ b/frontend/src/api/requrls/setting/system/organizationAndProject.ts @@ -0,0 +1,46 @@ +// 修改组织 +export const postModifyOrgUrl = '/system/organization/update'; +// 获取系统下所有组织-下拉选项 +export const postOrgOptionsUrl = '/system/organization/option/all'; +// 获取系统下所有组织-Table +export const postOrgTableUrl = '/system/organization/list'; +// 获取组织下所有项目-Table +export const postProjectTableByOrgUrl = '/system/organization/list-project'; +// 获取组织成员 +export const postOrgMemberUrl = '/system/organization/list-member'; +// 添加组织 +export const postAddOrgUrl = '/system/organization/add'; +// 添加组织成员 +export const postAddOrgMemberUrl = '/system/organization/member/add'; +// 删除组织成员 +export const getDeleteOrgMemberUrl = '/system/organization/remove-member/'; +// 恢复组织 +export const getRecoverOrgUrl = '/system/organization/recover/'; +// 启用组织 +export const getEnableOrgUrl = '/system/organization/enable/'; +// 禁用组织 +export const getDisableOrgUrl = '/system/organization/disable/'; +// 删除组织 +export const getDeleteOrgUrl = '/system/organization/delete/'; +// 获取系统默认组织 +export const getOrgDefaultUrl = '/system/organization/default'; + +// 项目 +// 更新项目信息 +export const postModifyProjectUrl = '/system/project/update'; +// 获取项目列表 +export const postProjectTableUrl = '/system/project/list'; +// 获取项目成员 +export const postProjectMemberUrl = '/system/project/member/list'; +// 添加项目 +export const postAddProjectUrl = '/system/project/add'; +// 添加项目成员 +export const postAddProjectMemberUrl = '/system/project/member/add'; +// 撤销项目 +export const getRevokeProjectUrl = '/system/project/revoke/'; +// 移除项目成员 +export const getDeleteProjectMemberUrl = '/system/project/remove-member/'; +// 根据ID获取项目信息 +export const getProjectInfoUrl = '/system/project/get/'; +// 删除项目 +export const getDeleteProjectUrl = '/system/project/delete/'; diff --git a/frontend/src/components/bussiness/ms-user-selector/index.vue b/frontend/src/components/bussiness/ms-user-selector/index.vue new file mode 100644 index 0000000000..f09752d520 --- /dev/null +++ b/frontend/src/components/bussiness/ms-user-selector/index.vue @@ -0,0 +1,72 @@ + + + diff --git a/frontend/src/components/pure/ms-pagination/pagination.tsx b/frontend/src/components/pure/ms-pagination/pagination.tsx index 883a5f329d..53d744a355 100644 --- a/frontend/src/components/pure/ms-pagination/pagination.tsx +++ b/frontend/src/components/pure/ms-pagination/pagination.tsx @@ -390,6 +390,8 @@ export default defineComponent({ return null; } + if (props.total === 0) return null; + return (
{props.showTotal && ( diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index c8437d8d47..638efa19a7 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -1,7 +1,7 @@