潘志宝
8 天以前 ca22cdd5550cfa0defb0f430c538698182cdaec1
提交 | 用户 | 时间
9259c2 1 import UserTask from './task-components/UserTask.vue'
H 2 import ServiceTask from './task-components/ServiceTask.vue'
3 import ScriptTask from './task-components/ScriptTask.vue'
4 import ReceiveTask from './task-components/ReceiveTask.vue'
5 import CallActivity from './task-components/CallActivity.vue'
6
7 export const installedComponent = {
8   UserTask: {
9     name: '用户任务',
10     component: UserTask
11   },
12   ServiceTask: {
13     name: '服务任务',
14     component: ServiceTask
15   },
16   ScriptTask: {
17     name: '脚本任务',
18     component: ScriptTask
19   },
20   ReceiveTask: {
21     name: '接收任务',
22     component: ReceiveTask
23   },
24   CallActivity: {
25     name: '调用活动',
26     component: CallActivity
27   }
28 }
29
30 export const getTaskCollapseItemName = (elementType) => {
31   return installedComponent[elementType].name
32 }
33
34 export const isTaskCollapseItemShow = (elementType) => {
35   return installedComponent[elementType]
36 }