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

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

View File

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