mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-04-27 17:38:38 +00:00
fix: 抽取sliceName方法,移除流程发布校验是否存在进行中的单据方法
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user