adtec-core-package 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adtec-core-package",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -46,7 +46,7 @@
46
46
  <div v-show="isEmpty" class="el-table__empty-block">
47
47
  <span class="el-table__empty-text">暂无数据</span>
48
48
  </div>
49
- <process-instance-step v-show="!isEmpty" style="padding-top: 10px" ref="stepRef"></process-instance-step>
49
+ <process-instance-step @view-detail="viewDetail" :source="source" v-show="!isEmpty" style="padding-top: 10px" ref="stepRef"></process-instance-step>
50
50
  </el-tab-pane>
51
51
  <el-tab-pane label="流程步骤" name="1" style="height: 100%">
52
52
  <template #label>
@@ -77,16 +77,19 @@ const props = withDefaults(
77
77
  defineProps<{
78
78
  businessId: string
79
79
  task: IWfTaskVo
80
- showTitle: boolean
80
+ showTitle?: boolean
81
81
  showDescriptions: boolean
82
+ source?: string
82
83
  }>(),
83
84
  {
84
85
  task: undefined,
85
86
  businessId: undefined,
86
87
  showTitle: false,
87
- showDescriptions: false
88
+ showDescriptions: false,
89
+ source: ''
88
90
  },
89
91
  )
92
+ const emit = defineEmits(['viewDetail'])
90
93
  const activeName = ref('0')
91
94
  const loading = ref(false)
92
95
  const bpmnRef = ref<InstanceType<typeof ProcessInstance>>()
@@ -127,6 +130,9 @@ const open = async () => {
127
130
  ElMessage.warning('缺少必要参数')
128
131
  }
129
132
  }
133
+ const viewDetail = (task: IWfTaskVo) => {
134
+ emit('viewDetail', task)
135
+ }
130
136
  watch(
131
137
  [
132
138
  () => props.task?.procInsId,
@@ -15,9 +15,9 @@ import type { IWfProcessInstVo } from '../../../interface/workflow/IWfTaskVo'
15
15
  import frameworkUtils from '../../../utils/FrameworkUtils.ts'
16
16
  const props = withDefaults(
17
17
  defineProps<{
18
- procDefId: string
19
- procInstId: string
20
- readonly: boolean
18
+ procDefId?: string
19
+ procInstId?: string
20
+ readonly?: boolean
21
21
  }>(),
22
22
  {
23
23
  procDefId: '',
@@ -13,8 +13,8 @@ import documentApi from '../../../api/DocumentApi'
13
13
  import frameworkUtils from '../../../utils/FrameworkUtils.ts'
14
14
  const props = withDefaults(
15
15
  defineProps<{
16
- procInstId: string
17
- source: string
16
+ procInstId?: string
17
+ source?: string
18
18
  }>(),
19
19
  {
20
20
  procInstId: '',