adtec-core-package 1.3.0 → 1.3.2
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 +1 -1
- package/src/components/Table/ElTableColumnEdit.vue +9 -10
- package/src/components/workflow/components/CheckDialog.vue +1 -0
- package/src/config/VxeTableConfig.ts +29 -23
- package/src/hooks/useFileView.ts +2 -25
- package/src/interface/workflow/IWfReturnNodeVo.ts +1 -0
- package/src/interface/workflow/IWfTaskAskVo.ts +4 -0
package/package.json
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
<template>
|
|
6
6
|
<div
|
|
7
7
|
@click.stop.prevent="displayClick"
|
|
8
|
-
style="width: 100%; min-height: 35px"
|
|
8
|
+
style="width: 100%; min-height: 35px;cursor: pointer;display: flex;align-items: center;"
|
|
9
9
|
ref="ref_divView"
|
|
10
10
|
:id="guid"
|
|
11
|
-
:class="getClass"
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
:class="getClass" >
|
|
12
|
+
<!-- <FocusLock v-if="display" :no-focus-guards="false" class="foucs-lock">-->
|
|
13
|
+
<!-- <slot name="edit" v-if="display" tabindex="9"></slot>-->
|
|
14
|
+
<!-- </FocusLock>-->
|
|
15
|
+
<slot name="edit" v-if="display" tabindex="9"></slot>
|
|
16
16
|
<slot v-else name="view"></slot>
|
|
17
17
|
</div>
|
|
18
18
|
<div class="box" v-if="required" v-show="getRequiredComp"></div>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<script setup lang="ts">
|
|
21
21
|
import { computed, getCurrentInstance, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
22
22
|
import { useActiveElement, useEventBus, useFocus, watchPausable } from '@vueuse/core'
|
|
23
|
-
import FocusLock from 'vue-focus-lock'
|
|
23
|
+
// import FocusLock from 'vue-focus-lock'
|
|
24
24
|
const ref_divView = ref()
|
|
25
25
|
import { v4 as uuidv4 } from 'uuid'
|
|
26
26
|
// const { focused } = useFocusWithin(ref_divView)
|
|
@@ -203,13 +203,12 @@ function listener() {
|
|
|
203
203
|
const displayClick = () => {
|
|
204
204
|
if (props.isEdit) {
|
|
205
205
|
bus.emit()
|
|
206
|
-
console.log(guid)
|
|
207
206
|
bus.on(listener)
|
|
208
207
|
bus1.on(listener)
|
|
209
208
|
resume()
|
|
210
209
|
display.value = true
|
|
211
|
-
nextTick(()
|
|
212
|
-
|
|
210
|
+
nextTick(()=>{
|
|
211
|
+
ref_divView.value.querySelector('input')?.focus()
|
|
213
212
|
})
|
|
214
213
|
}
|
|
215
214
|
}
|
|
@@ -252,6 +252,7 @@ const handleComplete = async () => {
|
|
|
252
252
|
userId: userInfoStore().getUserInfo.id,
|
|
253
253
|
comment: task.value.comment,
|
|
254
254
|
targetKey: selectActivity.value,
|
|
255
|
+
isFirstActivity: returnData.value.find(x => x.taskKey === selectActivity.value)?.isFirstActivity
|
|
255
256
|
}
|
|
256
257
|
if (taskOperate.value?.backFunction) {
|
|
257
258
|
await taskOperate.value.backFunction(askVo)
|
|
@@ -11,8 +11,10 @@ import {
|
|
|
11
11
|
} from 'vxe-pc-ui'
|
|
12
12
|
import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element'
|
|
13
13
|
import '@vxe-ui/plugin-render-element/dist/style.css'
|
|
14
|
+
import 'vxe-pc-ui/styles/cssvar.scss'
|
|
14
15
|
// 导入主题变量,也可以重写主题变量
|
|
15
16
|
import 'vxe-table/styles/cssvar.scss'
|
|
17
|
+
import 'vxe-pc-ui/lib/style.css'
|
|
16
18
|
import '../css/vxeTableUI/all.scss'
|
|
17
19
|
// 导入默认的语言
|
|
18
20
|
import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
|
|
@@ -26,39 +28,37 @@ VxeUI.setConfig({
|
|
|
26
28
|
// version: 1, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
|
|
27
29
|
table: {
|
|
28
30
|
showHeader: true,
|
|
29
|
-
keepSource:true,
|
|
31
|
+
keepSource: true,
|
|
30
32
|
autoResize: true,
|
|
31
33
|
height: '100%',
|
|
32
|
-
showOverflow:
|
|
33
|
-
showHeaderOverflow:
|
|
34
|
-
showFooterOverflow:
|
|
35
|
-
cellConfig:{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
height:41
|
|
34
|
+
showOverflow: true,
|
|
35
|
+
showHeaderOverflow: true,
|
|
36
|
+
showFooterOverflow: true,
|
|
37
|
+
cellConfig: {},
|
|
38
|
+
headerCellConfig: {
|
|
39
|
+
height: 41
|
|
39
40
|
},
|
|
40
41
|
resizeConfig: {
|
|
41
42
|
refreshDelay: 20
|
|
42
43
|
},
|
|
43
44
|
resizableConfig: {
|
|
44
45
|
dragMode: 'auto',
|
|
45
|
-
showDragTip:
|
|
46
|
+
showDragTip: false,
|
|
46
47
|
isSyncAutoHeight: true,
|
|
47
48
|
isSyncAutoWidth: true,
|
|
48
49
|
minHeight: 18
|
|
49
50
|
},
|
|
50
51
|
columnDragConfig: {
|
|
51
52
|
showIcon: true,
|
|
52
|
-
showGuidesStatus:
|
|
53
|
-
showDragTip:
|
|
53
|
+
showGuidesStatus: false,
|
|
54
|
+
showDragTip: false
|
|
54
55
|
},
|
|
55
56
|
checkboxConfig: {
|
|
57
|
+
showHeader:true,
|
|
56
58
|
// trigger: 'default',
|
|
57
|
-
strict: true
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
theme: 'light',
|
|
61
|
-
enterable: true
|
|
59
|
+
strict: true,
|
|
60
|
+
highlight: true,
|
|
61
|
+
range: true,
|
|
62
62
|
},
|
|
63
63
|
validConfig: {
|
|
64
64
|
showMessage: true,
|
|
@@ -69,9 +69,14 @@ VxeUI.setConfig({
|
|
|
69
69
|
theme: 'beautify'
|
|
70
70
|
},
|
|
71
71
|
columnConfig: {
|
|
72
|
-
maxFixedSize: 4
|
|
72
|
+
maxFixedSize: 4,
|
|
73
|
+
resizable: true,
|
|
74
|
+
},
|
|
75
|
+
tooltipConfig: {
|
|
76
|
+
enterable: true,
|
|
77
|
+
theme: 'light'
|
|
73
78
|
},
|
|
74
|
-
rowConfig:{
|
|
79
|
+
rowConfig: {
|
|
75
80
|
isCurrent: true,
|
|
76
81
|
},
|
|
77
82
|
footerCellConfig: {
|
|
@@ -127,7 +132,7 @@ VxeUI.setConfig({
|
|
|
127
132
|
childrenField: 'children',
|
|
128
133
|
hasChildField: 'hasChild',
|
|
129
134
|
mapChildrenField: '_X_ROW_CHILD',
|
|
130
|
-
indent:
|
|
135
|
+
indent: 10,
|
|
131
136
|
transform: true,
|
|
132
137
|
iconOpen: 'vxe-icon-square-minus',
|
|
133
138
|
iconClose: 'vxe-icon-square-plus',
|
|
@@ -160,8 +165,7 @@ VxeUI.setConfig({
|
|
|
160
165
|
txt: 1
|
|
161
166
|
}
|
|
162
167
|
},
|
|
163
|
-
printConfig: {
|
|
164
|
-
},
|
|
168
|
+
printConfig: {},
|
|
165
169
|
mouseConfig: {
|
|
166
170
|
extension: true
|
|
167
171
|
},
|
|
@@ -256,8 +260,9 @@ VxeUI.setConfig({
|
|
|
256
260
|
// buttons: []
|
|
257
261
|
}
|
|
258
262
|
})
|
|
263
|
+
|
|
259
264
|
// 可选组件
|
|
260
|
-
function lazyVxeTable
|
|
265
|
+
function lazyVxeTable(app: import("vue").App) {
|
|
261
266
|
app.use(VxeTooltip)
|
|
262
267
|
app.use(VxeTable)
|
|
263
268
|
app.use(VxeColumn)
|
|
@@ -265,8 +270,9 @@ function lazyVxeTable (app:import("vue").App) {
|
|
|
265
270
|
app.use(VxeGrid)
|
|
266
271
|
app.use(VxeToolbar)
|
|
267
272
|
}
|
|
273
|
+
|
|
268
274
|
export default {
|
|
269
|
-
install
|
|
275
|
+
install(app: import("vue").App) {
|
|
270
276
|
// 默认组件
|
|
271
277
|
lazyVxeTable(app)
|
|
272
278
|
}
|
package/src/hooks/useFileView.ts
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import FileView from '../components/upload/FileViewComponents.vue'
|
|
3
|
-
|
|
1
|
+
import WujieVue from 'wujie-vue3'
|
|
4
2
|
const useFileView = () => {
|
|
5
|
-
const ref_fileView = ref(null)
|
|
6
|
-
|
|
7
3
|
const fileView = (id: string) => {
|
|
8
|
-
|
|
9
|
-
//@ts-ignore
|
|
10
|
-
ref_fileView.value?.viewFile(id)
|
|
11
|
-
}
|
|
4
|
+
WujieVue.bus.$emit('viewFile', id)
|
|
12
5
|
}
|
|
13
|
-
|
|
14
|
-
onMounted(() => {
|
|
15
|
-
const container = document.createElement('div')
|
|
16
|
-
document.body.appendChild(container)
|
|
17
|
-
//@ts-ignore
|
|
18
|
-
ref_fileView.value = createApp(FileView).mount(container)
|
|
19
|
-
onUnmounted(() => {
|
|
20
|
-
try {
|
|
21
|
-
//@ts-ignore
|
|
22
|
-
ref_fileView?.value.$destroy()
|
|
23
|
-
} catch {
|
|
24
|
-
/* empty */
|
|
25
|
-
}
|
|
26
|
-
document.body.removeChild(container)
|
|
27
|
-
})
|
|
28
|
-
})
|
|
29
6
|
return {
|
|
30
7
|
fileView,
|
|
31
8
|
}
|