agilebuilder-ui 1.0.55 → 1.0.56-beta1
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/super-ui.css +1 -1
- package/lib/super-ui.js +43379 -45513
- package/lib/super-ui.umd.cjs +100 -97
- package/package.json +1 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -2
- package/packages/department-user-tree-inline/src/search-result.vue +12 -9
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +4 -2
- package/packages/fs-upload-new/src/fs-button-upload.vue +1 -1
- package/packages/fs-upload-new/src/fs-preview-new.vue +3 -3
- package/packages/plugins/export-data-new.js +6 -0
- package/packages/super-grid/src/dynamic-input.vue +8 -1
- package/packages/super-grid/src/group-column.vue +27 -13
- package/packages/super-grid/src/normal-column.vue +40 -18
- package/packages/super-grid/src/super-grid.vue +41 -27
- package/packages/workflow-history-list/src/workflow-history-list.vue +41 -9
- package/src/styles/theme/dark-blue/table.scss +1 -1
- package/src/styles/theme/ocean-blue/button.scss +2 -8
- package/src/styles/theme/ocean-blue/sidebar.scss +1 -1
- package/src/utils/jump-page-utils.js +3 -3
- package/src/utils/workflow-util.js +3 -0
- package/src/views/layout/components/Menubar/Item.vue +6 -6
- package/src/views/layout/components/Menubar/SidebarItem.vue +3 -3
package/package.json
CHANGED
|
@@ -112,7 +112,6 @@
|
|
|
112
112
|
|
|
113
113
|
<script>
|
|
114
114
|
import {Calendar, Menu, Search as ElIconSearch, Tickets, User} from '@element-plus/icons-vue'
|
|
115
|
-
import {$emit} from '../../utils/gogocodeTransfer'
|
|
116
115
|
import localStorage from '../../../src/utils/local-storage'
|
|
117
116
|
import UserResult from './search-result.vue'
|
|
118
117
|
import utils from '../../utils/utils'
|
|
@@ -658,7 +657,7 @@ export default {
|
|
|
658
657
|
}
|
|
659
658
|
if (selectNodeInfo.userIds.length > 0) {
|
|
660
659
|
selectNodeInfo.containBranch = this.containBranch
|
|
661
|
-
|
|
660
|
+
this.$emit('result', selectNodeInfo)
|
|
662
661
|
} else {
|
|
663
662
|
showTip = true
|
|
664
663
|
}
|
|
@@ -170,7 +170,6 @@
|
|
|
170
170
|
|
|
171
171
|
<script>
|
|
172
172
|
import {Delete as ElIconDelete, Plus as ElIconPlus} from '@element-plus/icons-vue'
|
|
173
|
-
import {$emit} from '../../utils/gogocodeTransfer'
|
|
174
173
|
|
|
175
174
|
export default {
|
|
176
175
|
data() {
|
|
@@ -227,28 +226,32 @@ export default {
|
|
|
227
226
|
// },
|
|
228
227
|
// 移除用户
|
|
229
228
|
removeUser(index, row) {
|
|
230
|
-
|
|
229
|
+
this.$emit( 'removeUser', index, row)
|
|
231
230
|
},
|
|
232
231
|
// 添加用户
|
|
233
232
|
addUser(index, row) {
|
|
234
|
-
|
|
233
|
+
this.$emit( 'addUser', index, row)
|
|
235
234
|
},
|
|
236
235
|
selectUser(selectVal) {
|
|
237
236
|
// console.log('selectUser', selectVal)
|
|
238
|
-
|
|
237
|
+
this.$emit( 'selectResult', this.gridData[selectVal])
|
|
239
238
|
},
|
|
240
239
|
rowClick(row, column, event) {
|
|
241
|
-
this.
|
|
242
|
-
|
|
240
|
+
if(!this.multiple){
|
|
241
|
+
this.singleUserIndex = row.row_index
|
|
242
|
+
this.$emit( 'selectResult', row)
|
|
243
|
+
}
|
|
243
244
|
},
|
|
244
245
|
tableRowClassName({row, rowIndex}) {
|
|
245
|
-
|
|
246
|
+
if(!this.multiple){
|
|
247
|
+
row.row_index = rowIndex
|
|
248
|
+
}
|
|
246
249
|
},
|
|
247
250
|
rowDblclick(row, column, event) {
|
|
248
251
|
if (this.multiple) {
|
|
249
|
-
|
|
252
|
+
this.$emit( 'addUser', null, row)
|
|
250
253
|
} else {
|
|
251
|
-
|
|
254
|
+
this.$emit( 'resultRowDblclick', row)
|
|
252
255
|
}
|
|
253
256
|
},
|
|
254
257
|
isDisable(row) {
|
|
@@ -297,6 +297,7 @@ export default {
|
|
|
297
297
|
// 默认选中处理
|
|
298
298
|
if (dynamicDataSourceDto.defaultSelect) {
|
|
299
299
|
// 多选处理
|
|
300
|
+
/**
|
|
300
301
|
if (this.baseProps.multiple) {
|
|
301
302
|
this.$emit('set-default-value', [
|
|
302
303
|
this.optionItems[0][this.valueAttribute],
|
|
@@ -309,7 +310,8 @@ export default {
|
|
|
309
310
|
this.optionItems[0][this.valueAttribute]
|
|
310
311
|
)
|
|
311
312
|
}
|
|
312
|
-
}
|
|
313
|
+
} */
|
|
314
|
+
this.setValues(this.optionItems[0][this.valueAttribute])
|
|
313
315
|
}
|
|
314
316
|
// console.log('判断参数',this.analysisArea);
|
|
315
317
|
// console.log('判断参数',this.remote);
|
|
@@ -404,7 +406,7 @@ export default {
|
|
|
404
406
|
// 必须有该方法,否则无法给字段赋值
|
|
405
407
|
inputValue(newValue) {
|
|
406
408
|
this.$emit('update:value', newValue)
|
|
407
|
-
if (newValue === null || newValue === undefined || newValue === '') {
|
|
409
|
+
if (this.remote && (newValue === null || newValue === undefined || newValue === '')) {
|
|
408
410
|
this.remoteQueryMethod(newValue)
|
|
409
411
|
}
|
|
410
412
|
this.setValues(newValue)
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
<span style="margin-left: 6.5px">{{ file.showName }}</span>
|
|
8
8
|
</span>
|
|
9
9
|
</el-tooltip>
|
|
10
|
-
<el-tooltip content="下载" placement="top">
|
|
11
|
-
<el-icon
|
|
10
|
+
<el-tooltip v-if="!disabled" content="下载" placement="top">
|
|
11
|
+
<el-icon @click="handleDownload(file)">
|
|
12
12
|
<Download />
|
|
13
13
|
</el-icon>
|
|
14
14
|
</el-tooltip>
|
|
15
|
-
<el-tooltip content="移除" placement="top">
|
|
15
|
+
<el-tooltip v-if="!disabled" content="移除" placement="top">
|
|
16
16
|
<el-icon @click="handleOnRemove(file)"><Close /></el-icon>
|
|
17
17
|
</el-tooltip>
|
|
18
18
|
</el-tag>
|
|
@@ -97,6 +97,9 @@ function exportResultData(
|
|
|
97
97
|
.catch((error) => {
|
|
98
98
|
reject(error)
|
|
99
99
|
})
|
|
100
|
+
if(exportOptions.pageContext) {
|
|
101
|
+
exportOptions.pageContext.canClick = true
|
|
102
|
+
}
|
|
100
103
|
} else {
|
|
101
104
|
// const dataIds = []
|
|
102
105
|
if (dataParam && dataParam.hasOwnProperty('data')) {
|
|
@@ -322,6 +325,9 @@ function exportListData(
|
|
|
322
325
|
param
|
|
323
326
|
)
|
|
324
327
|
.then((data) => {
|
|
328
|
+
if(exportOptions.pageContext) {
|
|
329
|
+
exportOptions.pageContext.canClick = true
|
|
330
|
+
}
|
|
325
331
|
if (isAsync) {
|
|
326
332
|
Message({
|
|
327
333
|
message: getI18n().t('imatrixUIMessage.asyncExport'),
|
|
@@ -424,6 +424,7 @@ import { getToken } from '../../../src/utils/auth'
|
|
|
424
424
|
import apis from './apis'
|
|
425
425
|
import ViewImageDialog from './view-image-dialog'
|
|
426
426
|
import { $emit } from '../../utils/gogocodeTransfer'
|
|
427
|
+
import eventBus from './eventBus'
|
|
427
428
|
|
|
428
429
|
export default {
|
|
429
430
|
name: 'DynamicInput',
|
|
@@ -477,6 +478,10 @@ export default {
|
|
|
477
478
|
rowIndex: {
|
|
478
479
|
type: Number,
|
|
479
480
|
default: -1
|
|
481
|
+
},
|
|
482
|
+
disabled: {
|
|
483
|
+
type: Boolean,
|
|
484
|
+
default: false
|
|
480
485
|
}
|
|
481
486
|
},
|
|
482
487
|
data() {
|
|
@@ -493,6 +498,7 @@ export default {
|
|
|
493
498
|
innerValue = defaultValue
|
|
494
499
|
}
|
|
495
500
|
const disabled = isDisableEdit(this.column.prop, this.listCode, this.row)
|
|
501
|
+
this.$emit('change-disabled', disabled)
|
|
496
502
|
const defaultAction = window.$vueApp.config.globalProperties.baseAPI + '/component/super-form/uploads'
|
|
497
503
|
if (!this.listCode) {
|
|
498
504
|
this.listCode = store.get('_list_code')
|
|
@@ -532,7 +538,7 @@ export default {
|
|
|
532
538
|
wgManTree: false, // 是否是工作组人员树
|
|
533
539
|
wgTree: false, // 是否是工作组树
|
|
534
540
|
newValue: null,
|
|
535
|
-
disabled, // 当前用户是否禁止编辑该字段/ 是否新增行
|
|
541
|
+
// disabled, // 当前用户是否禁止编辑该字段/ 是否新增行
|
|
536
542
|
componentName: '',
|
|
537
543
|
validateErrorField: '', // 保存行记录时,验证失败的字段名
|
|
538
544
|
annexUploadFlag: false,
|
|
@@ -1478,6 +1484,7 @@ export default {
|
|
|
1478
1484
|
return 'YYYY-MM-DD'
|
|
1479
1485
|
},
|
|
1480
1486
|
fnProhibitToEdit(entity) {
|
|
1487
|
+
eventBus.$emit('prohibitToEdit', entity)
|
|
1481
1488
|
$emit(this, 'prohibitToEdit', entity)
|
|
1482
1489
|
},
|
|
1483
1490
|
setInputNumberConfig() {
|
|
@@ -12,11 +12,14 @@
|
|
|
12
12
|
:is-sql="isSql"
|
|
13
13
|
:custom-format="child.prop ? customFormat[child.prop] : customFormat"
|
|
14
14
|
:list-code="listCode"
|
|
15
|
+
:grid-data="gridData"
|
|
16
|
+
:page-grid-data="gridData"
|
|
15
17
|
@findIndex="findIndex(scope.$index)"
|
|
16
18
|
@refresData="refresData"
|
|
17
19
|
@refresPortData="refresPortData"
|
|
18
20
|
@refresPortsData="refresPortsData"
|
|
19
21
|
@refresMainTableFields="refresMainTableFields"
|
|
22
|
+
@prohibit-to-edit="prohibitToEdit"
|
|
20
23
|
/>
|
|
21
24
|
</template>
|
|
22
25
|
<template v-else>
|
|
@@ -27,6 +30,9 @@
|
|
|
27
30
|
:is-sql="isSql"
|
|
28
31
|
:column="child"
|
|
29
32
|
:list-code="listCode"
|
|
33
|
+
:grid-data="gridData"
|
|
34
|
+
:page-grid-data="gridData"
|
|
35
|
+
@prohibit-to-edit="prohibitToEdit"
|
|
30
36
|
/>
|
|
31
37
|
</template>
|
|
32
38
|
</el-table-column>
|
|
@@ -39,31 +45,39 @@ import { doFormatWithValueSet } from './formatter'
|
|
|
39
45
|
export default {
|
|
40
46
|
name: 'GroupColumn',
|
|
41
47
|
components: {
|
|
42
|
-
NormalColumn
|
|
48
|
+
NormalColumn
|
|
43
49
|
// GroupColumn,
|
|
44
50
|
},
|
|
45
51
|
props: {
|
|
46
52
|
column: {
|
|
47
53
|
type: Object,
|
|
48
|
-
default: null
|
|
54
|
+
default: null
|
|
49
55
|
},
|
|
50
56
|
// 操作列、占位符列内容显示的函数,格式为:{'属性名':方法},例如:{'name':viewUser,'operation':showOperation}
|
|
51
57
|
customFormat: {
|
|
52
58
|
type: Object,
|
|
53
|
-
default: null
|
|
59
|
+
default: null
|
|
54
60
|
},
|
|
55
61
|
listCode: {
|
|
56
62
|
type: String,
|
|
57
|
-
default: null
|
|
63
|
+
default: null
|
|
58
64
|
},
|
|
59
65
|
isSql: {
|
|
60
66
|
type: Boolean,
|
|
61
|
-
default: false
|
|
67
|
+
default: false
|
|
62
68
|
},
|
|
69
|
+
gridData: {
|
|
70
|
+
type: Array,
|
|
71
|
+
default: null
|
|
72
|
+
},
|
|
73
|
+
pageGridData: {
|
|
74
|
+
type: Array,
|
|
75
|
+
default: null
|
|
76
|
+
}
|
|
63
77
|
},
|
|
64
78
|
data() {
|
|
65
79
|
return {
|
|
66
|
-
label: null
|
|
80
|
+
label: null // 标题
|
|
67
81
|
}
|
|
68
82
|
},
|
|
69
83
|
computed: {
|
|
@@ -75,11 +89,11 @@ export default {
|
|
|
75
89
|
} else {
|
|
76
90
|
return []
|
|
77
91
|
}
|
|
78
|
-
}
|
|
92
|
+
}
|
|
79
93
|
},
|
|
80
94
|
created() {
|
|
81
95
|
this.label = this.getHeader()
|
|
82
|
-
|
|
96
|
+
console.log('%c描述-181624', 'color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px', this.column)
|
|
83
97
|
},
|
|
84
98
|
methods: {
|
|
85
99
|
getHeader() {
|
|
@@ -90,11 +104,11 @@ export default {
|
|
|
90
104
|
}
|
|
91
105
|
},
|
|
92
106
|
formatHeader() {
|
|
93
|
-
return doFormatWithValueSet(
|
|
94
|
-
this.column.titleValueSetValue,
|
|
95
|
-
this.column.label
|
|
96
|
-
)
|
|
107
|
+
return doFormatWithValueSet(this.column.titleValueSetValue, this.column.label)
|
|
97
108
|
},
|
|
98
|
-
|
|
109
|
+
prohibitToEdit(entity) {
|
|
110
|
+
this.$emit('prohibit-to-edit', entity)
|
|
111
|
+
}
|
|
112
|
+
}
|
|
99
113
|
}
|
|
100
114
|
</script>
|
|
@@ -34,19 +34,21 @@
|
|
|
34
34
|
:list-toolbar-form-data="listToolbarFormData"
|
|
35
35
|
:options="column.valueSet"
|
|
36
36
|
:position="{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
row: scope.$index,
|
|
38
|
+
prop: column.prop,
|
|
39
|
+
}"
|
|
40
|
+
:disabled="disabled"
|
|
40
41
|
:row="scope.row"
|
|
41
42
|
:row-index="scope.$index"
|
|
42
43
|
:type="column.componentType"
|
|
43
44
|
@findIndex="findIndex(scope.$index)"
|
|
44
45
|
@focus="onFocus(scope.$index)"
|
|
45
|
-
@
|
|
46
|
+
@prohibit-to-edit="prohibitToEdit"
|
|
46
47
|
@refresData="refresData"
|
|
47
48
|
@refresMainTableFields="refresMainTableFields"
|
|
48
49
|
@refresPortData="refresPortData"
|
|
49
50
|
@refresPortsData="refresPortsData"
|
|
51
|
+
@change-disabled="changeDisabled"
|
|
50
52
|
/>
|
|
51
53
|
<span v-else>
|
|
52
54
|
<span v-if="column.operations" class="grid-operation-buttons">
|
|
@@ -479,6 +481,9 @@ import eventBus from './eventBus'
|
|
|
479
481
|
import FsPreview from '../../fs-preview'
|
|
480
482
|
import RichEditorViewer from '../../rich-editor/viewer.vue'
|
|
481
483
|
import GridIcon from './components/grid-icon.vue'
|
|
484
|
+
import {
|
|
485
|
+
isDisableEdit
|
|
486
|
+
} from './utils'
|
|
482
487
|
export default {
|
|
483
488
|
components: {
|
|
484
489
|
DynamicInput,
|
|
@@ -577,7 +582,8 @@ export default {
|
|
|
577
582
|
showRichEditorViewer: false,
|
|
578
583
|
getFormData: gridParams.options.getFormData,
|
|
579
584
|
getTableGridData: gridParams.options.getGridData,
|
|
580
|
-
additionalParamMap
|
|
585
|
+
additionalParamMap,
|
|
586
|
+
disabled: false
|
|
581
587
|
}
|
|
582
588
|
},
|
|
583
589
|
computed: {
|
|
@@ -864,9 +870,20 @@ export default {
|
|
|
864
870
|
}
|
|
865
871
|
}
|
|
866
872
|
})
|
|
873
|
+
const that = this
|
|
874
|
+
if (this.$parent.$parent && this.$parent.$parent.$options._componentTag === 'GroupColumn') {
|
|
875
|
+
eventBus.$on('prohibitToEdit', (param) => {
|
|
876
|
+
if (param[that.column.prop] !== undefined) {
|
|
877
|
+
that.fnProhibitToEdit(param[that.column.prop])
|
|
878
|
+
}
|
|
879
|
+
})
|
|
880
|
+
}
|
|
867
881
|
},
|
|
868
882
|
unmounted() {
|
|
869
883
|
$off(eventBus, 'un-edit')
|
|
884
|
+
if (this.$parent.$parent && this.$parent.$parent.$options._componentTag === 'GroupColumn') {
|
|
885
|
+
eventBus.$off('prohibitToEdit')
|
|
886
|
+
}
|
|
870
887
|
},
|
|
871
888
|
methods: {
|
|
872
889
|
...customFormatter,
|
|
@@ -1144,7 +1161,9 @@ export default {
|
|
|
1144
1161
|
},
|
|
1145
1162
|
// 设置字段禁止编辑
|
|
1146
1163
|
fnProhibitToEdit(isEditable) {
|
|
1147
|
-
this
|
|
1164
|
+
this.$nextTick(() => {
|
|
1165
|
+
this.disabled = !isEditable
|
|
1166
|
+
})
|
|
1148
1167
|
},
|
|
1149
1168
|
// 设置字段禁止编辑
|
|
1150
1169
|
prohibitToEdit(entity) {
|
|
@@ -1200,18 +1219,21 @@ export default {
|
|
|
1200
1219
|
return result
|
|
1201
1220
|
},
|
|
1202
1221
|
getLinkType(row) {
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1222
|
+
if (this.column.events && this.column.events['cellStyle']) {
|
|
1223
|
+
const params = {
|
|
1224
|
+
value: row[this.column.property],
|
|
1225
|
+
row: row,
|
|
1226
|
+
column: this.column,
|
|
1227
|
+
prop: this.column.property
|
|
1228
|
+
}
|
|
1229
|
+
const gridParams = store.get(this.listCode)
|
|
1230
|
+
return gridParams.options['eventCallBack'][this.column.events['cellStyle']].call(this, params)
|
|
1231
|
+
}
|
|
1232
|
+
return 'primary'
|
|
1233
|
+
},
|
|
1234
|
+
changeDisabled(state) {
|
|
1235
|
+
this.disabled = state
|
|
1236
|
+
}
|
|
1215
1237
|
},
|
|
1216
1238
|
emits: [
|
|
1217
1239
|
'refresData',
|
|
@@ -307,6 +307,10 @@ export default {
|
|
|
307
307
|
settings:{
|
|
308
308
|
type: Object,
|
|
309
309
|
default: null
|
|
310
|
+
},
|
|
311
|
+
additionalParamMap: {
|
|
312
|
+
type: Object,
|
|
313
|
+
default: null
|
|
310
314
|
}
|
|
311
315
|
},
|
|
312
316
|
data() {
|
|
@@ -2944,32 +2948,40 @@ export default {
|
|
|
2944
2948
|
jumpMode = openPageParams.jumpMode
|
|
2945
2949
|
}
|
|
2946
2950
|
const popPageSetting = openPageParams
|
|
2947
|
-
if
|
|
2948
|
-
//
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2951
|
+
if(this.pageContext){
|
|
2952
|
+
// 新页面设计组件中弹框或刷新区域时
|
|
2953
|
+
if (jumpMode === 'popup' || jumpMode === 'refresh') {
|
|
2954
|
+
// 弹出页面
|
|
2955
|
+
const gridParams = store.get(this.code)
|
|
2956
|
+
this.jumpPageSetting = popPageSetting
|
|
2957
|
+
const isSubTableShowPage = gridParams.isSubTableShowPage
|
|
2958
|
+
// 每页显示多少条
|
|
2959
|
+
const pageSize = gridParams.pagination && gridParams.pagination.pageSize
|
|
2960
|
+
const isMobile = false
|
|
2961
|
+
const row = popPageSetting.row
|
|
2962
|
+
const eventParams = {
|
|
2963
|
+
position: popPageSetting._position,
|
|
2964
|
+
listCode: popPageSetting._listCode,
|
|
2965
|
+
rowIndex: popPageSetting._rowIndex,
|
|
2966
|
+
row: popPageSetting.row,
|
|
2967
|
+
id: row?(row.ID?row.ID:row.id):null,
|
|
2968
|
+
isMobile,
|
|
2969
|
+
gridData: isSubTableShowPage
|
|
2970
|
+
? gridParams.subTableData
|
|
2971
|
+
: gridParams.gridData,
|
|
2972
|
+
pageGridData: isSubTableShowPage ? gridParams.gridData : null,
|
|
2973
|
+
pageSize }
|
|
2974
|
+
this.$emit('new-open-grid-dialog', {pageContext: this.pageContext,configureObj: this.configureObj, eventParams, jumpPageSetting: this.jumpPageSetting})
|
|
2975
|
+
}
|
|
2976
|
+
} else {
|
|
2977
|
+
if (jumpMode === 'popup') {
|
|
2978
|
+
// 弹出页面
|
|
2979
|
+
this.jumpPageSetting = popPageSetting
|
|
2980
|
+
this.$emit('open-grid-dialog', this.jumpPageSetting)
|
|
2981
|
+
this.isShowPageDialog = true
|
|
2982
|
+
} else if (jumpMode === 'refresh') {
|
|
2983
|
+
this.$router.push({ path: '/dsc/page', query: popPageSetting })
|
|
2984
|
+
}
|
|
2973
2985
|
}
|
|
2974
2986
|
},
|
|
2975
2987
|
closeSearchFormDialog() {
|
|
@@ -3046,7 +3058,9 @@ export default {
|
|
|
3046
3058
|
// console.log('key', key)
|
|
3047
3059
|
// console.log('this.$refs[key]', this.$refs)
|
|
3048
3060
|
if (this.$refs[key]) {
|
|
3049
|
-
this.$
|
|
3061
|
+
this.$nextTick(() => {
|
|
3062
|
+
this.$refs[key][0].fnProhibitToEdit(entity[key])
|
|
3063
|
+
})
|
|
3050
3064
|
}
|
|
3051
3065
|
}
|
|
3052
3066
|
}
|
|
@@ -173,6 +173,14 @@ export default {
|
|
|
173
173
|
type: [String, Number],
|
|
174
174
|
default: null,
|
|
175
175
|
},
|
|
176
|
+
beanName: {
|
|
177
|
+
type: String,
|
|
178
|
+
default: null
|
|
179
|
+
},
|
|
180
|
+
entityName: {
|
|
181
|
+
type: String,
|
|
182
|
+
default: null
|
|
183
|
+
}
|
|
176
184
|
},
|
|
177
185
|
data() {
|
|
178
186
|
let histories = null
|
|
@@ -216,19 +224,43 @@ export default {
|
|
|
216
224
|
methods: {
|
|
217
225
|
...ApiJs,
|
|
218
226
|
getData() {
|
|
219
|
-
this
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
+
if (this.beanName || this.entityName) {
|
|
228
|
+
const params = {
|
|
229
|
+
beanName: this.beanName,
|
|
230
|
+
entityName: this.entityName,
|
|
231
|
+
workflowId: this.workflowId
|
|
232
|
+
}
|
|
233
|
+
this.$http.post(window.$vueApp.config.globalProperties.baseURL + '/dsc/workflow-commons/instance-histories', params).then(data => {
|
|
234
|
+
this.handleHistory(data)
|
|
235
|
+
}).catch(error => {
|
|
236
|
+
console.log(error)
|
|
237
|
+
this.loaded = true
|
|
227
238
|
})
|
|
228
|
-
|
|
239
|
+
} else {
|
|
240
|
+
this.$http.get(window.$vueApp.config.globalProperties.baseAPI + '/wf-editor/instance-histories/' + this.workflowId).then(data => {
|
|
241
|
+
this.handleHistory(data)
|
|
242
|
+
}).catch(error => {
|
|
229
243
|
console.log(error)
|
|
230
244
|
this.loaded = true
|
|
231
245
|
})
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
handleHistory(data) {
|
|
249
|
+
this.histories = data.histories
|
|
250
|
+
if (data && data.currentTasks) {
|
|
251
|
+
this.histories = this.histories.concat(data.currentTasks)
|
|
252
|
+
}
|
|
253
|
+
this.loaded = true
|
|
254
|
+
if (this.maxHeight) {
|
|
255
|
+
this.tableMaxHeight = Number(this.maxHeight)
|
|
256
|
+
} else {
|
|
257
|
+
if (this.$parent.$el.offsetHeight) {
|
|
258
|
+
this.tableMaxHeight = this.$parent.$el.offsetHeight
|
|
259
|
+
}
|
|
260
|
+
if (!this.tableMaxHeight) {
|
|
261
|
+
this.tableMaxHeight = window.innerHeight - 120
|
|
262
|
+
}
|
|
263
|
+
}
|
|
232
264
|
},
|
|
233
265
|
initTableData(data) {
|
|
234
266
|
if(data) {
|
|
@@ -82,23 +82,17 @@
|
|
|
82
82
|
background-color: $th-cell-background;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
//警告按钮
|
|
86
|
-
.el-button--danger{
|
|
87
|
-
background-color: #FFFFFF;
|
|
88
|
-
color: #8C8C8C;
|
|
89
|
-
border: 1px solid #E3E3E3;
|
|
90
|
-
}
|
|
91
85
|
//工作流结束按钮
|
|
92
86
|
.workflow-end-button{
|
|
93
87
|
background-color: #ee6666;
|
|
94
88
|
border-color: #ee6666;
|
|
95
89
|
color: #FFFFFF;
|
|
96
90
|
}
|
|
97
|
-
|
|
91
|
+
|
|
92
|
+
//返回按钮
|
|
98
93
|
.button--return {
|
|
99
94
|
background-color: #FFFFFF;
|
|
100
95
|
color: #8C8C8C;
|
|
101
96
|
border: 1px solid #E3E3E3;
|
|
102
97
|
}
|
|
103
|
-
|
|
104
98
|
}
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
|
|
201
201
|
.sidebar-container .el-menu--collapse .el-submenu__title:not(.is-disabled):hover,
|
|
202
202
|
.sidebar-container .el-menu-item:not(.is-disabled):hover {
|
|
203
|
-
background:
|
|
203
|
+
background: $--color-hover;
|
|
204
204
|
color: rgba(0, 13, 31, 0.85);
|
|
205
205
|
font-weight: medium;
|
|
206
206
|
}
|
|
@@ -204,7 +204,7 @@ export function jumpToPage(
|
|
|
204
204
|
if (!jumpPageSetting.jumpPageUrl) {
|
|
205
205
|
resolve()
|
|
206
206
|
}
|
|
207
|
-
getSystem(system, jumpPageSetting.jumpPageUrl, jumpPageSetting.isNewPage)
|
|
207
|
+
getSystem(system, jumpPageSetting.jumpPageUrl, jumpPageSetting.isNewPage, jumpPageSetting)
|
|
208
208
|
.then((system) => {
|
|
209
209
|
if (
|
|
210
210
|
jumpPageSetting.jumpPageAdditional &&
|
|
@@ -273,12 +273,12 @@ export function jumpToPage(
|
|
|
273
273
|
})
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
function getSystem(system, jumpPageUrl, isNewPage) {
|
|
276
|
+
function getSystem(system, jumpPageUrl, isNewPage, jumpPageSetting) {
|
|
277
277
|
return new Promise((resolve, reject) => {
|
|
278
278
|
if (isFullPath(jumpPageUrl)) {
|
|
279
279
|
resolve(null)
|
|
280
280
|
} else {
|
|
281
|
-
if (!system || system === null) {
|
|
281
|
+
if ((!system || system === null) || (jumpPageSetting.jumpSystemCode && jumpPageSetting.jumpSystemCode !== system.code)) {
|
|
282
282
|
if (jumpPageUrl.indexOf('page:') === 0) {
|
|
283
283
|
const pageCode = jumpPageUrl.substring(
|
|
284
284
|
jumpPageUrl.indexOf('page:') + 'page:'.length
|
|
@@ -25,6 +25,9 @@ export function i18nOperation(history, processNameI18n, processI18n, language) {
|
|
|
25
25
|
const buttonOperation = params['2']
|
|
26
26
|
// 国际化buttonOperation
|
|
27
27
|
params['key_2'] = getI18n().t('workflowButton.' + buttonOperation)
|
|
28
|
+
if (params['2'].indexOf('workflowButton.') === 0) {
|
|
29
|
+
params['2'] = buttonOperation
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
32
|
if (
|
|
30
33
|
i18nKey === 'process_start' &&
|
|
@@ -30,16 +30,16 @@ export default defineComponent ({
|
|
|
30
30
|
if (icon.indexOf('fa-') === 0) {
|
|
31
31
|
// 表示以“fa-”开头,使用font-awesome中的图标
|
|
32
32
|
icon = 'fa ' + icon
|
|
33
|
-
vnodes.push(h('div', {style:{display:'inline-block'
|
|
34
|
-
// vnodes.push(<div style='display: inline-block;
|
|
33
|
+
vnodes.push(h('div', {style:{display:'inline-block'}},[h('i',{class:icon})]))
|
|
34
|
+
// vnodes.push(<div style='display: inline-block;'><i class={icon}/></div>)
|
|
35
35
|
} else if (icon.indexOf('svg-') === 0) {
|
|
36
36
|
icon = icon.substring(icon.indexOf('svg-') + 4)
|
|
37
|
-
vnodes.push(h('div', {style:{display:'inline-block'
|
|
38
|
-
// vnodes.push(<div style='display: inline-block;
|
|
37
|
+
vnodes.push(h('div', {style:{display:'inline-block'}},[h(SvgIcon,{'icon-class':icon})]))
|
|
38
|
+
// vnodes.push(<div style='display: inline-block;'><svg-icon icon-class={icon}/></div>)
|
|
39
39
|
} else {
|
|
40
40
|
icon += ' svg-icon'
|
|
41
|
-
vnodes.push(h('div', {style:{display:'inline-block'
|
|
42
|
-
// vnodes.push(<div style='display: inline-block;
|
|
41
|
+
vnodes.push(h('div', {style:{display:'inline-block'}},[h('i',{class:icon})]))
|
|
42
|
+
// vnodes.push(<div style='display: inline-block;'><i class={icon} /></div>)
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|