fix: 抽取sliceName方法,移除流程发布校验是否存在进行中的单据方法

This commit is contained in:
smallNorthLee
2025-02-12 22:50:40 +08:00
parent d0da7d67c7
commit 9a233ab6bf
6 changed files with 23 additions and 39 deletions

View File

@@ -65,7 +65,7 @@
/>
<div v-else class="flow-icon">
<span style="font-size: 12px; color: #fff">{{
sliceName(definition.name)
sliceName(definition.name,0,2)
}}</span>
</div>
<el-text class="!ml-10px" size="large">{{ definition.name }}</el-text>
@@ -97,6 +97,7 @@ import * as ProcessInstanceApi from '@/api/bpm/processInstance'
import { CategoryApi, CategoryVO } from '@/api/bpm/category'
import ProcessDefinitionDetail from './ProcessDefinitionDetail.vue'
import { groupBy } from 'lodash-es'
import { sliceName } from '@/utils/index'
defineOptions({ name: 'BpmProcessInstanceCreate' })
@@ -284,14 +285,6 @@ const availableCategories = computed(() => {
)
})
// 处理显示的名称
const sliceName = (name: string) => {
if (name.length > 2) {
return name.slice(0, 2)
}
return name
}
/** 初始化 */
onMounted(() => {
getList()