agilebuilder-ui 1.1.27 → 1.1.29
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/lib/{401-c1ecc1a9.js → 401-b6438df4.js} +1 -1
- package/lib/{404-a507cf9c.js → 404-a63f6f05.js} +1 -1
- package/lib/{iframe-page-32671903.js → iframe-page-37f43db7.js} +1 -1
- package/lib/{index-ce3ae297.js → index-d3663821.js} +19913 -19927
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +98 -95
- package/lib/{tab-content-iframe-index-55b69efd.js → tab-content-iframe-index-86707264.js} +1 -1
- package/lib/{tab-content-index-f8882314.js → tab-content-index-c7251161.js} +25 -24
- package/lib/{tache-subprocess-history-a2d815d2.js → tache-subprocess-history-6de071c9.js} +1 -1
- package/package.json +1 -1
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +5 -1
- package/packages/fs-preview/src/fs-preview.vue +75 -53
- package/packages/organization-input/src/organization-input.vue +1 -1
- package/packages/row-form/operation.vue +1 -0
- package/packages/super-grid/src/components/mobile-table-card.jsx +12 -2
- package/packages/super-grid/src/custom-formatter.js +10 -7
- package/packages/super-grid/src/dynamic-input.vue +8 -7
- package/packages/super-grid/src/index-column.vue +24 -15
- package/packages/super-grid/src/normal-column-content.vue +19 -2
- package/packages/super-grid/src/normal-column.vue +14 -13
- package/packages/super-grid/src/row-operation.vue +49 -27
- package/packages/super-grid/src/selection-column.vue +2 -12
- package/packages/super-grid/src/super-grid.vue +27 -7
- package/packages/workflow-history-list/src/workflow-history-list.vue +101 -160
- package/src/components/Affix/index.vue +19 -12
- package/src/i18n/langs/cn.js +292 -294
- package/src/i18n/langs/en.js +291 -304
- package/src/permission.js +1 -1
- package/src/store/modules/table.js +1 -0
- package/src/styles/_layout-custom-properties.scss +2 -2
- package/src/styles/display-layout.scss +4 -4
- package/src/styles/index.scss +2 -9
- package/src/styles/theme/dark-blue/button.scss +6 -6
- package/src/styles/theme/dark-blue/card.scss +11 -15
- package/src/styles/theme/dark-blue/index.scss +0 -4
- package/src/styles/theme/dark-blue/sidebar.scss +0 -5
- package/src/styles/theme/default.scss +1 -1
- package/src/styles/theme/green/button.scss +2 -2
- package/src/styles/theme/green/index.scss +0 -4
- package/src/styles/theme/green/sidebar.scss +0 -5
- package/src/styles/theme/ocean-blue/button.scss +2 -2
- package/src/styles/theme/ocean-blue/index.scss +0 -4
- package/src/styles/theme/ocean-blue/sidebar.scss +0 -5
- package/src/styles/theme/tiffany-blue-mobile/button.scss +2 -2
- package/src/styles/theme/tiffany-blue-mobile/index.scss +1 -5
- package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -5
- package/src/utils/iframe-communicator.js +222 -222
- package/src/utils/jump-page-utils.js +1 -1
- package/vite.config.js +2 -1
|
@@ -76,6 +76,7 @@ import FsPreview from '../../fs-preview'
|
|
|
76
76
|
import RichEditorViewer from '../../rich-editor/viewer.vue'
|
|
77
77
|
import GridIcon from './components/grid-icon.vue'
|
|
78
78
|
import NormalColumnContent from './normal-column-content.vue'
|
|
79
|
+
import eventBus from './eventBus'
|
|
79
80
|
export default {
|
|
80
81
|
components: {
|
|
81
82
|
DynamicInput,
|
|
@@ -189,17 +190,8 @@ export default {
|
|
|
189
190
|
}
|
|
190
191
|
},
|
|
191
192
|
fixed() {
|
|
192
|
-
if (
|
|
193
|
-
|
|
194
|
-
this.column.fixed === undefined ||
|
|
195
|
-
this.column.fixed === ''
|
|
196
|
-
) {
|
|
197
|
-
return false
|
|
198
|
-
}
|
|
199
|
-
if (this.column.prop === 'operation' && this.column.fixed && this.column.fixed === 'left') {
|
|
200
|
-
// 操作列居右固定
|
|
201
|
-
return 'right'
|
|
202
|
-
}
|
|
193
|
+
if (!this.column.fixed) return false
|
|
194
|
+
if (['null', 'false', 'undefined'].includes(this.column.fixed)) return false
|
|
203
195
|
return this.column.fixed
|
|
204
196
|
},
|
|
205
197
|
sortable() {
|
|
@@ -297,8 +289,17 @@ export default {
|
|
|
297
289
|
gridParams.options &&
|
|
298
290
|
gridParams.options.showOperationButton
|
|
299
291
|
},
|
|
300
|
-
mounted() {
|
|
301
|
-
|
|
292
|
+
mounted() {
|
|
293
|
+
if(this.column.prop === 'operation'){
|
|
294
|
+
const that = this
|
|
295
|
+
eventBus.$on('change-add-state',(value)=>{
|
|
296
|
+
that.isShowAdd = value
|
|
297
|
+
})
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
unmounted() {
|
|
301
|
+
eventBus.$off('change-add-state')
|
|
302
|
+
},
|
|
302
303
|
methods: {
|
|
303
304
|
...customFormatter,
|
|
304
305
|
...apis,
|
|
@@ -4,41 +4,39 @@
|
|
|
4
4
|
<span :style="myStyle">
|
|
5
5
|
<template v-if="isShowButton()">
|
|
6
6
|
<template v-if="label">
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
>
|
|
25
|
-
<!-- </el-tooltip> -->
|
|
7
|
+
<template v-if="operationSettingData.permission">
|
|
8
|
+
<component
|
|
9
|
+
v-bind="operationSettingData"
|
|
10
|
+
:is="isElementType"
|
|
11
|
+
v-permission="operationSettingData.permission"
|
|
12
|
+
:disabled="preventReclick"
|
|
13
|
+
@mousedown="onClickFun(operationSettingData)"
|
|
14
|
+
>{{ label }}</component>
|
|
15
|
+
</template>
|
|
16
|
+
<template v-else>
|
|
17
|
+
<component
|
|
18
|
+
v-bind="operationSettingData"
|
|
19
|
+
:is="isElementType"
|
|
20
|
+
:disabled="preventReclick"
|
|
21
|
+
@mousedown="onClickFun(operationSettingData)"
|
|
22
|
+
>{{ label }}</component>
|
|
23
|
+
</template>
|
|
26
24
|
</template>
|
|
27
25
|
<template v-else>
|
|
28
26
|
<component
|
|
29
|
-
v-bind="
|
|
30
|
-
:is="
|
|
31
|
-
v-if="
|
|
32
|
-
v-permission="
|
|
27
|
+
v-bind="operationSettingData"
|
|
28
|
+
:is="isElementType"
|
|
29
|
+
v-if="operationSettingData.permission"
|
|
30
|
+
v-permission="operationSettingData.permission"
|
|
33
31
|
:disabled="preventReclick"
|
|
34
|
-
@mousedown="onClickFun(
|
|
32
|
+
@mousedown="onClickFun(operationSettingData)"
|
|
35
33
|
/>
|
|
36
34
|
<component
|
|
37
|
-
v-bind="
|
|
38
|
-
:is="
|
|
35
|
+
v-bind="operationSettingData"
|
|
36
|
+
:is="isElementType"
|
|
39
37
|
v-else
|
|
40
38
|
:disabled="preventReclick"
|
|
41
|
-
@mousedown="onClickFun(
|
|
39
|
+
@mousedown="onClickFun(operationSettingData)"
|
|
42
40
|
/>
|
|
43
41
|
</template>
|
|
44
42
|
</template>
|
|
@@ -58,6 +56,10 @@ export default {
|
|
|
58
56
|
type: Boolean,
|
|
59
57
|
default: false,
|
|
60
58
|
},
|
|
59
|
+
isTableBtnLink: {
|
|
60
|
+
type: [Boolean],
|
|
61
|
+
default: false,
|
|
62
|
+
},
|
|
61
63
|
isShow: {
|
|
62
64
|
type: [Boolean, Function],
|
|
63
65
|
default: true,
|
|
@@ -107,6 +109,26 @@ export default {
|
|
|
107
109
|
},
|
|
108
110
|
computed: {
|
|
109
111
|
...mapGetters(['preventReclick']),
|
|
112
|
+
// 是否自动开启表格 按钮 转 文字按钮
|
|
113
|
+
isTableBtnLinkShow() {
|
|
114
|
+
if (this.operationSetting.text) return true
|
|
115
|
+
if (this.isTableBtnLink && this.elementType === 'el-button') {
|
|
116
|
+
return [this.operationSetting.text, this.operationSetting.plain, this.operationSetting.round].every(v => v === undefined)
|
|
117
|
+
}
|
|
118
|
+
return false
|
|
119
|
+
},
|
|
120
|
+
operationSettingData() {
|
|
121
|
+
const dataList = { ...this.operationSetting }
|
|
122
|
+
if (this.isTableBtnLinkShow) {
|
|
123
|
+
dataList.underline = false
|
|
124
|
+
delete dataList.text
|
|
125
|
+
}
|
|
126
|
+
return dataList
|
|
127
|
+
},
|
|
128
|
+
isElementType() {
|
|
129
|
+
if (this.isTableBtnLinkShow) return 'el-link'
|
|
130
|
+
return this.elementType
|
|
131
|
+
}
|
|
110
132
|
},
|
|
111
133
|
created() {
|
|
112
134
|
if (
|
|
@@ -27,18 +27,8 @@ export default {
|
|
|
27
27
|
},
|
|
28
28
|
computed: {
|
|
29
29
|
fixed() {
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
this.column.fixed === null ||
|
|
33
|
-
this.column.fixed === '' ||
|
|
34
|
-
this.column.fixed === 'false'
|
|
35
|
-
) {
|
|
36
|
-
return false
|
|
37
|
-
}
|
|
38
|
-
// 左右都固定会导致列表显示速度慢,暂只支持左侧固定
|
|
39
|
-
if (this.column.fixed && this.column.fixed === 'right') {
|
|
40
|
-
return 'left'
|
|
41
|
-
}
|
|
30
|
+
if (!this.column.fixed) return false
|
|
31
|
+
if (['null', 'false', 'undefined'].includes(this.column.fixed)) return false
|
|
42
32
|
return this.column.fixed
|
|
43
33
|
},
|
|
44
34
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div data-v="1.0.0" class="super-grid-main-view" :style="subTableStyle" @click="onClickTableMain">
|
|
2
|
+
<div v-resize="onResize" data-v="1.0.0" class="super-grid-main-view" :style="subTableStyle" @click="onClickTableMain">
|
|
3
3
|
<search-form
|
|
4
4
|
v-if="!isFormSubTable && hasLoadedColumns && query && query.showType === 'embedded'"
|
|
5
5
|
v-show="!isMobile || (isMobile && isShowMobileSearch)"
|
|
@@ -305,7 +305,12 @@ export default {
|
|
|
305
305
|
additionalParamMap: {
|
|
306
306
|
type: Object,
|
|
307
307
|
default: null
|
|
308
|
-
}
|
|
308
|
+
},
|
|
309
|
+
// 手动控制高度偏移
|
|
310
|
+
manualHeightOffset: {
|
|
311
|
+
type: [undefined, Number],
|
|
312
|
+
default: undefined
|
|
313
|
+
},
|
|
309
314
|
},
|
|
310
315
|
data() {
|
|
311
316
|
let parentProp
|
|
@@ -453,15 +458,19 @@ export default {
|
|
|
453
458
|
}
|
|
454
459
|
},
|
|
455
460
|
computed: {
|
|
461
|
+
// 高度偏移
|
|
462
|
+
heightOffset() {
|
|
463
|
+
return Number(this.manualHeightOffset ?? this.options?.configureObj?.props?.size?.pc?.heightOffset ?? 33)
|
|
464
|
+
},
|
|
456
465
|
// 限制高度最低值
|
|
457
466
|
hasMaxHeight() {
|
|
458
467
|
if (this.maxHeight) {
|
|
459
|
-
return this.maxHeight <= 100 ? 100 : this.maxHeight ?? undefined
|
|
468
|
+
return this.maxHeight <= 100 ? 100 : this.maxHeight + this.heightOffset ?? undefined
|
|
460
469
|
}
|
|
461
470
|
return undefined
|
|
462
471
|
},
|
|
463
472
|
|
|
464
|
-
//
|
|
473
|
+
// 是指固定高度最低值
|
|
465
474
|
hasTableHeight() {
|
|
466
475
|
if (this.tableHeight) {
|
|
467
476
|
return this.tableHeight <= 100 ? 100 : this.tableHeight ?? undefined
|
|
@@ -473,7 +482,7 @@ export default {
|
|
|
473
482
|
},
|
|
474
483
|
// 是否显示卡片
|
|
475
484
|
isShowCard() {
|
|
476
|
-
return this.isShowAutoCard && this.isMobileListCard && !this.options.isAdministerListView
|
|
485
|
+
return this.isShowAutoCard && this.isMobileListCard && !this.options.isAdministerListView && (this.options?.configureObj?.props?.base?.isMobileCard ?? true)
|
|
477
486
|
},
|
|
478
487
|
visibleColumns() {
|
|
479
488
|
const gridParams = store.get(this.code)
|
|
@@ -800,7 +809,7 @@ export default {
|
|
|
800
809
|
}
|
|
801
810
|
)
|
|
802
811
|
}
|
|
803
|
-
|
|
812
|
+
window.addEventListener('resize', this.resizeTableHeight);
|
|
804
813
|
this.$watch(
|
|
805
814
|
'hasLoadData',
|
|
806
815
|
function (newVal, oldVal) {
|
|
@@ -899,11 +908,17 @@ export default {
|
|
|
899
908
|
)
|
|
900
909
|
})
|
|
901
910
|
},
|
|
911
|
+
beforeDestroy() {
|
|
912
|
+
window.removeEventListener('resize', this.resizeTableHeight);
|
|
913
|
+
},
|
|
902
914
|
methods: {
|
|
903
915
|
...events,
|
|
904
916
|
...publicMethods,
|
|
905
917
|
...superGridService,
|
|
906
918
|
...apis,
|
|
919
|
+
onResize(entry) {
|
|
920
|
+
this.resizeTableHeight()
|
|
921
|
+
},
|
|
907
922
|
onClickMain() {
|
|
908
923
|
// 清理编辑选中
|
|
909
924
|
storeVuex?.dispatch?.('clearAllEditing')
|
|
@@ -3270,6 +3285,7 @@ export default {
|
|
|
3270
3285
|
'options': this.options,
|
|
3271
3286
|
'current-page': this.currentPage,
|
|
3272
3287
|
'pagination': this.pagination,
|
|
3288
|
+
'is-data-children': this.tableDatas.some(d => Array.isArray(d?.children)),
|
|
3273
3289
|
'grid-data': this.isSubTableShowPage ? this.subTableData : this.gridData,
|
|
3274
3290
|
'page-grid-data': this.isSubTableShowPage ? this.getSubTableGridData(this.subTableData) : this.gridData,
|
|
3275
3291
|
...(myCustomFormatter ? {
|
|
@@ -3296,6 +3312,9 @@ export default {
|
|
|
3296
3312
|
column
|
|
3297
3313
|
}
|
|
3298
3314
|
}
|
|
3315
|
+
},
|
|
3316
|
+
changeOperationAddState(state){
|
|
3317
|
+
eventBus.$emit('change-add-state', state)
|
|
3299
3318
|
}
|
|
3300
3319
|
},
|
|
3301
3320
|
emits: [
|
|
@@ -3309,7 +3328,8 @@ export default {
|
|
|
3309
3328
|
'un-edit',
|
|
3310
3329
|
'refresMainTableFields',
|
|
3311
3330
|
'refresh',
|
|
3312
|
-
'cancel-search'
|
|
3331
|
+
'cancel-search',
|
|
3332
|
+
'changeOperationAddState'
|
|
3313
3333
|
]
|
|
3314
3334
|
}
|
|
3315
3335
|
</script>
|
|
@@ -1,177 +1,112 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-table
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
v-if="loaded"
|
|
4
|
+
ref="historyList"
|
|
5
|
+
:data="histories"
|
|
6
|
+
:height="tableHeight"
|
|
7
|
+
:load="getChildren"
|
|
8
|
+
:max-height="tableMaxHeight"
|
|
9
|
+
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
|
10
|
+
border
|
|
11
|
+
element-loading-text="Loading"
|
|
12
|
+
fit
|
|
13
|
+
highlight-current-row
|
|
14
|
+
lazy
|
|
15
|
+
row-key="uuid"
|
|
16
|
+
style="width: 100%"
|
|
17
17
|
>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<el-table-column
|
|
28
|
-
:label="$t('workflowHistoryList.taskName')"
|
|
29
|
-
align="left"
|
|
30
|
-
width="250"
|
|
31
|
-
>
|
|
32
|
-
<template v-slot="scope">
|
|
33
|
-
<span
|
|
34
|
-
v-if="
|
|
35
|
-
scope.row.historyType && scope.row.historyType === 'PROCESS_START'
|
|
36
|
-
"
|
|
37
|
-
>{{ $t('workflowHistoryList.processStart') }}</span
|
|
38
|
-
>
|
|
39
|
-
<span
|
|
40
|
-
v-else-if="
|
|
41
|
-
scope.row.historyType && scope.row.historyType === 'PROCESS_END'
|
|
42
|
-
"
|
|
43
|
-
>{{ $t('workflowHistoryList.processEnd') }}</span
|
|
44
|
-
>
|
|
45
|
-
<span v-else-if="scope.row.current" style="color: #e6a23c">{{
|
|
46
|
-
i18nTaskName(scope.row)
|
|
18
|
+
<el-table-column :label="$t('workflowHistoryList.index')" align="left" width="80px">
|
|
19
|
+
<template v-slot="scope">
|
|
20
|
+
{{ scope.$index + 1 }}
|
|
21
|
+
</template>
|
|
22
|
+
</el-table-column>
|
|
23
|
+
<el-table-column :label="$t('workflowHistoryList.taskName')" align="left" width="250">
|
|
24
|
+
<template v-slot="scope">
|
|
25
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_START'">{{
|
|
26
|
+
$t('workflowHistoryList.processStart')
|
|
47
27
|
}}</span>
|
|
48
|
-
<span v-else-if="
|
|
49
|
-
|
|
28
|
+
<span v-else-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'">{{
|
|
29
|
+
$t('workflowHistoryList.processEnd')
|
|
50
30
|
}}</span>
|
|
31
|
+
<span v-else-if="scope.row.current" style="color: #e6a23c">{{ i18nTaskName(scope.row) }}</span>
|
|
32
|
+
<span v-else-if="!scope.row.special">{{ i18nTaskName(scope.row) }}</span>
|
|
51
33
|
<span v-else-if="scope.row.special === true" style="color: red">{{
|
|
52
|
-
i18nTaskName(scope.row) +
|
|
53
|
-
'[' +
|
|
54
|
-
$t('workflowHistoryList.specailText') +
|
|
55
|
-
']'
|
|
34
|
+
i18nTaskName(scope.row) + '[' + $t('workflowHistoryList.specailText') + ']'
|
|
56
35
|
}}</span>
|
|
57
36
|
</template>
|
|
58
37
|
</el-table-column>
|
|
59
|
-
<el-table-column
|
|
60
|
-
:label="$t('workflowHistoryList.operator')"
|
|
61
|
-
align="left"
|
|
62
|
-
width="250"
|
|
63
|
-
>
|
|
38
|
+
<el-table-column :label="$t('workflowHistoryList.operator')" align="left" width="250">
|
|
64
39
|
<template v-slot="scope">
|
|
65
|
-
<span
|
|
66
|
-
v-if="
|
|
67
|
-
scope.row.historyType && scope.row.historyType === 'PROCESS_END'
|
|
68
|
-
"
|
|
69
|
-
/>
|
|
40
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
70
41
|
<span v-else>{{ scope.row.creatorName }}</span>
|
|
71
42
|
</template>
|
|
72
43
|
</el-table-column>
|
|
73
|
-
<el-table-column
|
|
74
|
-
:label="$t('workflowHistoryList.operatorLg')"
|
|
75
|
-
align="left"
|
|
76
|
-
width="250"
|
|
77
|
-
>
|
|
44
|
+
<el-table-column :label="$t('workflowHistoryList.operatorLg')" align="left" width="250">
|
|
78
45
|
<template v-slot="scope">
|
|
79
|
-
<span
|
|
80
|
-
v-if="
|
|
81
|
-
scope.row.historyType && scope.row.historyType === 'PROCESS_END'
|
|
82
|
-
"
|
|
83
|
-
/>
|
|
46
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
84
47
|
<span v-else>{{ scope.row.creator }}</span>
|
|
85
48
|
</template>
|
|
86
49
|
</el-table-column>
|
|
87
|
-
<el-table-column
|
|
88
|
-
:label="$t('workflowHistoryList.operatorDept')"
|
|
89
|
-
align="left"
|
|
90
|
-
width="150"
|
|
91
|
-
>
|
|
50
|
+
<el-table-column :label="$t('workflowHistoryList.operatorDept')" align="left" width="150">
|
|
92
51
|
<template v-slot="scope">
|
|
93
|
-
<span
|
|
94
|
-
v-if="
|
|
95
|
-
scope.row.historyType && scope.row.historyType === 'PROCESS_END'
|
|
96
|
-
"
|
|
97
|
-
/>
|
|
52
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
98
53
|
<span v-else>{{ scope.row.departmentName }}</span>
|
|
99
54
|
</template>
|
|
100
55
|
</el-table-column>
|
|
101
|
-
<el-table-column
|
|
102
|
-
:label="$t('workflowHistoryList.operationTime')"
|
|
103
|
-
align="left"
|
|
104
|
-
width="200"
|
|
105
|
-
>
|
|
56
|
+
<el-table-column :label="$t('workflowHistoryList.operationTime')" align="left" width="200">
|
|
106
57
|
<template v-slot="scope">
|
|
107
|
-
<span
|
|
108
|
-
v-if="
|
|
109
|
-
scope.row.historyType && scope.row.historyType === 'PROCESS_END'
|
|
110
|
-
"
|
|
111
|
-
/>
|
|
58
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
112
59
|
<span v-else>{{ scope.row.formatCreatedTime }}</span>
|
|
113
60
|
</template>
|
|
114
61
|
</el-table-column>
|
|
115
|
-
<el-table-column
|
|
116
|
-
:label="$t('workflowHistoryList.operation')"
|
|
117
|
-
align="left"
|
|
118
|
-
width="400"
|
|
119
|
-
>
|
|
62
|
+
<el-table-column :label="$t('workflowHistoryList.operation')" align="left" width="400">
|
|
120
63
|
<template v-slot="scope">
|
|
121
|
-
<span
|
|
122
|
-
v-if="
|
|
123
|
-
scope.row.historyType && scope.row.historyType === 'PROCESS_END'
|
|
124
|
-
"
|
|
125
|
-
/>
|
|
64
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
126
65
|
<span v-else-if="scope.row.current" style="color: #e6a23c"
|
|
127
|
-
>{{ scope.row.transactionResult }}
|
|
128
|
-
{{ $t('workflowHistoryList.toDoText') }}</span
|
|
66
|
+
>{{ scope.row.transactionResult }} {{ $t('workflowHistoryList.toDoText') }}</span
|
|
129
67
|
>
|
|
130
68
|
<span v-else>{{ i18nOperation(scope.row) }}</span>
|
|
131
69
|
</template>
|
|
132
70
|
</el-table-column>
|
|
133
|
-
<el-table-column
|
|
134
|
-
:label="$t('workflowHistoryList.opinion')"
|
|
135
|
-
align="left"
|
|
136
|
-
width="400"
|
|
137
|
-
>
|
|
71
|
+
<el-table-column :label="$t('workflowHistoryList.opinion')" align="left" width="400">
|
|
138
72
|
<template v-slot="scope">
|
|
139
|
-
<span
|
|
140
|
-
v-if="
|
|
141
|
-
scope.row.historyType && scope.row.historyType === 'PROCESS_END'
|
|
142
|
-
"
|
|
143
|
-
/>
|
|
73
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
144
74
|
<span v-else>{{ scope.row.opinion }}</span>
|
|
145
75
|
</template>
|
|
146
76
|
</el-table-column>
|
|
77
|
+
<el-table-column :label="$t('workflowHistoryList.remark')" align="left" width="400">
|
|
78
|
+
<template v-slot="scope">
|
|
79
|
+
<span>{{ scope.row.remark }}</span>
|
|
80
|
+
</template>
|
|
81
|
+
</el-table-column>
|
|
147
82
|
</el-table>
|
|
148
83
|
</template>
|
|
149
84
|
|
|
150
85
|
<script>
|
|
151
|
-
import {i18nOperation} from '../../../src/utils/workflow-util'
|
|
152
|
-
import {getLanguageWithLocale} from '../../../src/utils/util'
|
|
86
|
+
import { i18nOperation } from '../../../src/utils/workflow-util'
|
|
87
|
+
import { getLanguageWithLocale } from '../../../src/utils/util'
|
|
153
88
|
import ApiJs from './api'
|
|
154
89
|
|
|
155
90
|
export default {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
91
|
+
name: 'WorkflowHistoryList',
|
|
92
|
+
props: {
|
|
93
|
+
workflowId: {
|
|
94
|
+
type: Number,
|
|
95
|
+
default: null
|
|
96
|
+
},
|
|
97
|
+
// 流转历史列表,在图形流转历史中查看子流程流转历史需要使用
|
|
98
|
+
historyList: {
|
|
99
|
+
type: Array,
|
|
100
|
+
default: null
|
|
101
|
+
},
|
|
102
|
+
// 主子流程的国际化配置
|
|
103
|
+
allProcessI18n: {
|
|
104
|
+
type: Object,
|
|
105
|
+
default: null
|
|
106
|
+
},
|
|
107
|
+
maxHeight: {
|
|
173
108
|
type: [String, Number],
|
|
174
|
-
default: null
|
|
109
|
+
default: null
|
|
175
110
|
},
|
|
176
111
|
beanName: {
|
|
177
112
|
type: String,
|
|
@@ -193,16 +128,16 @@ export default {
|
|
|
193
128
|
processI18n: null,
|
|
194
129
|
processNameI18n: null,
|
|
195
130
|
tableMaxHeight: null,
|
|
196
|
-
|
|
131
|
+
tableHeight: null
|
|
197
132
|
}
|
|
198
133
|
},
|
|
199
134
|
computed: {},
|
|
200
135
|
provide() {
|
|
201
136
|
return {}
|
|
202
137
|
},
|
|
203
|
-
|
|
138
|
+
created() {
|
|
204
139
|
console.log('historyList---workflowId==', this.workflowId)
|
|
205
|
-
if(this.workflowId !== undefined && this.workflowId !== null){
|
|
140
|
+
if (this.workflowId !== undefined && this.workflowId !== null) {
|
|
206
141
|
this.getI18nSet().then((processI18n) => {
|
|
207
142
|
this.processI18n = processI18n
|
|
208
143
|
if (!this.histories || this.histories === null) {
|
|
@@ -212,37 +147,43 @@ export default {
|
|
|
212
147
|
}
|
|
213
148
|
})
|
|
214
149
|
} else {
|
|
215
|
-
|
|
216
|
-
|
|
150
|
+
// 页面设计器预览页面时会用该方法
|
|
151
|
+
this.initTableData()
|
|
217
152
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
153
|
+
},
|
|
154
|
+
mounted() {
|
|
155
|
+
this.$nextTick(() => {
|
|
156
|
+
this.tableHeight = window.innerHeight - 120
|
|
157
|
+
})
|
|
158
|
+
},
|
|
159
|
+
methods: {
|
|
160
|
+
...ApiJs,
|
|
161
|
+
getData() {
|
|
227
162
|
if (this.beanName || this.entityName) {
|
|
228
163
|
const params = {
|
|
229
164
|
beanName: this.beanName,
|
|
230
165
|
entityName: this.entityName,
|
|
231
166
|
workflowId: this.workflowId
|
|
232
167
|
}
|
|
233
|
-
this.$http
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
168
|
+
this.$http
|
|
169
|
+
.post(window.$vueApp.config.globalProperties.baseURL + '/dsc/workflow-commons/instance-histories', params)
|
|
170
|
+
.then((data) => {
|
|
171
|
+
this.handleHistory(data)
|
|
172
|
+
})
|
|
173
|
+
.catch((error) => {
|
|
174
|
+
console.log(error)
|
|
175
|
+
this.loaded = true
|
|
176
|
+
})
|
|
239
177
|
} else {
|
|
240
|
-
this.$http
|
|
241
|
-
this.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
178
|
+
this.$http
|
|
179
|
+
.get(window.$vueApp.config.globalProperties.baseAPI + '/wf-editor/instance-histories/' + this.workflowId)
|
|
180
|
+
.then((data) => {
|
|
181
|
+
this.handleHistory(data)
|
|
182
|
+
})
|
|
183
|
+
.catch((error) => {
|
|
184
|
+
console.log(error)
|
|
185
|
+
this.loaded = true
|
|
186
|
+
})
|
|
246
187
|
}
|
|
247
188
|
},
|
|
248
189
|
handleHistory(data) {
|
|
@@ -263,7 +204,7 @@ export default {
|
|
|
263
204
|
}
|
|
264
205
|
},
|
|
265
206
|
initTableData(data) {
|
|
266
|
-
if(data) {
|
|
207
|
+
if (data) {
|
|
267
208
|
this.histories = data.histories
|
|
268
209
|
if (data && data.currentTasks) {
|
|
269
210
|
this.histories = this.histories.concat(data.currentTasks)
|
|
@@ -341,7 +282,7 @@ export default {
|
|
|
341
282
|
},
|
|
342
283
|
getChildren(row, treeNode, resolve) {
|
|
343
284
|
resolve(row.children)
|
|
344
|
-
}
|
|
345
|
-
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
346
287
|
}
|
|
347
288
|
</script>
|