refactor(unitManage): 修改创建单位默认类型为党政机关

-将 EnterprisesUnitType 枚举中的 party_government 类型名称从 "党政机关 " 修改为 "党政机关"
- 在评估标准和单位管理页面中,将创建单位的默认类型从 'school' 修改为 'party_government'
This commit is contained in:
luozhun 2024-11-11 14:41:11 +08:00
parent b27a42611a
commit 44861bb66c
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ import java.util.stream.Collectors;
@AllArgsConstructor
public enum EnterprisesUnitType implements BaseEnum<String>, IEnum<String> {
party_government("party_government", "党政机关 "),
party_government("party_government", "党政机关"),
medical("medical", "医疗机构"),
residential("residential", "小区"),
higher_learning("higher_learning", "高等院校"),

View File

@ -12,7 +12,7 @@ export const saveOrUpdateCkProject = (params: SaveOrUpdateCkProjectParams = {
name: '',
totalScore: 100,
remark: '',
type: 'school'
type: 'party_government'
}, callback: Function) => {
submitSimpleFormModal<SaveOrUpdateCkProjectParams>({
title: params.snowFlakeId ? `编辑【${params.name}` : '添加考核项目',

View File

@ -220,7 +220,7 @@ export const showEnterprisesUnit = (policeUnitPagerVo: PoliceUnitPagerVo) => {
class="btn-success"
onClick={() => saveOrUpdateEnterprisesUnit({
name: undefined,
type: 'school',
type: 'party_government',
policeUnitId: policeUnitPagerVo.snowFlakeId,
administrativeDivisionCodes: [policeUnitPagerVo.province, policeUnitPagerVo.city, policeUnitPagerVo.districts, policeUnitPagerVo.street].filter(Boolean)
}, _tableRef.value?.requestGetTableData)}