master
Gitea 2 weeks ago
parent 123a10f7ae
commit 2aa7699ed7
  1. 3
      jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java
  2. 30
      jeecgboot-vue3/src/views/projectApplication/project/Project.api.ts
  3. 32
      jeecgboot-vue3/src/views/system/usersetting/UserSetting.data.ts

@ -212,7 +212,8 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
sysDepart.setOrgCategory("1"); sysDepart.setOrgCategory("1");
} else { } else {
//sysDepart.setOrgCategory("2");原来设置为2,暂时设置3 //sysDepart.setOrgCategory("2");原来设置为2,暂时设置3
sysDepart.setOrgCategory("3"); sysDepart.setOrgCategory(departMapper.getDepartById(parentId).getOrgCategory());
} }
} }
this.save(sysDepart); this.save(sysDepart);

@ -5,14 +5,22 @@ const {createConfirm} = useMessage();
enum Api { enum Api {
list = '/project/project/list', list = '/project/project/list',
projectType = '/projectType/getProjectTypeList',
departDtoInfo = '/project/project/getDepartDtoInfo',
save = '/project/project/add', save = '/project/project/add',
edit = '/project/project/edit', edit = '/project/project/edit',
deleteOne = '/project/project/delete', deleteOne = '/project/project/delete',
submitOne = '/project/project/submitApply',
rollbackOne = '/project/project/rollbackProject',
deleteBatch = '/project/project/deleteBatch', deleteBatch = '/project/project/deleteBatch',
importExcel = '/project/project/importExcel', importExcel = '/project/project/importExcel',
exportXls = '/project/project/exportXls', exportXls = '/project/project/exportXls',
} }
export const getDepartDtoByProjectId = (params) =>
defHttp.get({url: Api.departDtoInfo, params});
/** /**
* 导出api * 导出api
* @param params * @param params
@ -29,6 +37,14 @@ export const getImportUrl = Api.importExcel;
export const list = (params) => export const list = (params) =>
defHttp.get({url: Api.list, params}); defHttp.get({url: Api.list, params});
export const getProjectTypeList = (params) =>
defHttp.get({url: Api.projectType, params});
export const getDepartBaseInfo = (params) =>
defHttp.get({url: Api.departBaseInfo, params});
/** /**
* 删除单个 * 删除单个
*/ */
@ -37,6 +53,20 @@ export const deleteOne = (params, handleSuccess) => {
handleSuccess(); handleSuccess();
}); });
} }
export const submitOne = (params, handleSuccess) => {
return defHttp.post({url: Api.submitOne, params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
export const rollbackOne = (params, handleSuccess) => {
return defHttp.post({url: Api.rollbackOne, params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
/** /**
* 批量删除 * 批量删除
* @param params * @param params

@ -30,7 +30,7 @@ export const settingList = [
img1: geren1, img1: geren1,
img2: geren2, img2: geren2,
}, },
/* { /*{
key: '2', key: '2',
name: '我的组织', name: '我的组织',
component: 'TenantSetting', component: 'TenantSetting',
@ -47,7 +47,7 @@ export const settingList = [
img1: anquan1, img1: anquan1,
img2: anquan2, img2: anquan2,
}, },
/* { /*{
key: '4', key: '4',
name: '第三方APP', name: '第三方APP',
component: 'WeChatDingSetting', component: 'WeChatDingSetting',
@ -98,18 +98,18 @@ export const formSchema: FormSchema[] = [
], ],
} }
}, },
{ // {
field: 'relTenantIds', // field: 'relTenantIds',
component: 'JDictSelectTag', // component: 'JDictSelectTag',
label: '租户', // label: '',
colProps: { span: 24 }, // colProps: { span: 24 },
componentProps:{ // componentProps:{
mode:'multiple', // mode:'multiple',
dictCode:'sys_tenant,name,id', // dictCode:'sys_tenant,name,id',
disabled:true // disabled:true
} // }
}, // },
{ /* {
field: 'post', field: 'post',
component: 'JDictSelectTag', component: 'JDictSelectTag',
label: '职位', label: '职位',
@ -117,9 +117,9 @@ export const formSchema: FormSchema[] = [
componentProps:{ componentProps:{
mode:'multiple', mode:'multiple',
dictCode:'sys_position,name,id', dictCode:'sys_position,name,id',
disabled:true disabled:false
} }
}, },*/
{ {
label: '', label: '',
field: 'id', field: 'id',

Loading…
Cancel
Save