imatrix-ui 2.9.10-dw → 2.9.11-boe2
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.umd.min.js +5 -35
- package/package.json +2 -2
- package/src/api/sso-service.js +19 -1
- package/src/i18n/i18n.js +1 -1
- package/src/i18n/langs/cn.js +14 -4
- package/src/i18n/langs/en.js +16 -5
- package/src/permission.js +1 -1
- package/src/plugins.js +3 -3
- package/src/router/index.js +10 -0
- package/src/store/modules/tab-content.js +6 -0
- package/src/store/modules/user.js +19 -0
- package/src/styles/index.scss +74 -4
- package/src/styles/theme/black/font-style.scss +70 -0
- package/src/styles/theme/black/index.scss +6 -30
- package/src/styles/theme/blue/font-style.scss +37 -0
- package/src/styles/theme/blue/index.scss +2 -18
- package/src/styles/theme/blue2/font-style.scss +70 -0
- package/src/styles/theme/blue2/index.scss +3 -13
- package/src/styles/theme/dark-blue/index.scss +27 -5
- package/src/styles/theme/dark-blue/message.scss +8 -0
- package/src/styles/theme/dark-blue/sidebar.scss +7 -37
- package/src/styles/theme/dark-blue/table.scss +1 -1
- package/src/styles/theme/gray/card-style.scss +13 -1
- package/src/styles/theme/gray/font-style.scss +38 -0
- package/src/styles/theme/gray/index.scss +13 -25
- package/src/styles/theme/gray/scrollbar-style.scss +32 -0
- package/src/styles/theme/gray/sidebar.scss +7 -14
- package/src/utils/auth-api.js +45 -1
- package/src/utils/common-util.js +21 -81
- package/src/utils/range-selector.js +185 -0
- package/src/utils/request.js +6 -3
- package/src/utils/util.js +12 -10
- package/src/views/dsc-component/Sidebar/Item.vue +7 -5
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -3
- package/src/views/dsc-component/Sidebar/index.vue +12 -20
- package/src/views/dsc-component/tabs/tab-content.vue +1 -5
- package/src/views/layout/NewLayout.vue +6 -65
- package/src/views/layout/components/Menubar/Item.vue +23 -7
- package/src/views/layout/components/Menubar/Link.vue +11 -2
- package/src/views/layout/components/Menubar/SidebarItem.vue +50 -7
- package/src/views/layout/components/Menubar/index.vue +51 -16
- package/src/views/layout/components/tabs/tab-content.vue +160 -0
- package/src/views/layout/tab-content-iframe-index.vue +31 -0
- package/src/views/layout/tab-content-index.vue +85 -0
- package/src/views/login/index.vue +1 -1
- package/packages/breadcrumb/index.js +0 -6
- package/packages/breadcrumb/src/breadcrumb.vue +0 -71
- package/packages/department-tree/index.js +0 -6
- package/packages/department-tree/src/department-tree.vue +0 -108
- package/packages/department-tree-inline/index.js +0 -6
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +0 -402
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +0 -284
- package/packages/department-tree-inline/src/department-tree-inline.vue +0 -86
- package/packages/department-tree-inline/src/department-tree-service.js +0 -245
- package/packages/department-tree-inline/src/search-result.vue +0 -176
- package/packages/department-user-tree/index.js +0 -6
- package/packages/department-user-tree/src/department-user-multiple-tree.vue +0 -116
- package/packages/department-user-tree/src/department-user-single-tree.vue +0 -76
- package/packages/department-user-tree/src/department-user-tree.vue +0 -101
- package/packages/department-user-tree-inline/index.js +0 -6
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +0 -626
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -269
- package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +0 -79
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -230
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +0 -122
- package/packages/department-user-tree-inline/src/search-result.vue +0 -197
- package/packages/directives/prevent-reclick.js +0 -19
- package/packages/dynamic-source-select/index.js +0 -6
- package/packages/dynamic-source-select/src/dynamic-source-select-service.js +0 -70
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +0 -440
- package/packages/dynamic-source-select/src/events.js +0 -55
- package/packages/fs-preview/index.js +0 -6
- package/packages/fs-preview/src/fs-preview.vue +0 -226
- package/packages/fs-upload/index.js +0 -6
- package/packages/fs-upload/src/fs-upload-multi.vue +0 -420
- package/packages/fs-upload/src/fs-upload-single.vue +0 -312
- package/packages/fs-upload/src/fs-upload.vue +0 -189
- package/packages/fs-upload/src/see-big-picture.vue +0 -55
- package/packages/fs-upload-list/index.js +0 -6
- package/packages/fs-upload-list/src/fs-upload-list.vue +0 -287
- package/packages/hamburger/index.js +0 -6
- package/packages/hamburger/src/hamburger.vue +0 -38
- package/packages/index.js +0 -121
- package/packages/multipart-upload/index.js +0 -6
- package/packages/multipart-upload/src/index.vue +0 -73
- package/packages/multipart-upload/src/multipart-upload-form.vue +0 -297
- package/packages/multipart-upload/src/multipart-upload-list.vue +0 -378
- package/packages/organization-input/index.js +0 -6
- package/packages/organization-input/src/organization-input.vue +0 -542
- package/packages/plugins/export-data-new.js +0 -453
- package/packages/plugins/export-data.js +0 -361
- package/packages/plugins/index.js +0 -15
- package/packages/plugins/public-method.js +0 -43
- package/packages/remove-department/index.js +0 -6
- package/packages/remove-department/src/remove-department.vue +0 -172
- package/packages/remove-department/src/remove-dept-service.js +0 -20
- package/packages/remove-user/index.js +0 -6
- package/packages/remove-user/src/remove-user-service.js +0 -20
- package/packages/remove-user/src/remove-user.vue +0 -195
- package/packages/remove-workgroup/index.js +0 -6
- package/packages/remove-workgroup/src/remove-workgroup-service.js +0 -20
- package/packages/remove-workgroup/src/remove-workgroup.vue +0 -159
- package/packages/rich-editor/index.js +0 -7
- package/packages/rich-editor/index.vue +0 -278
- package/packages/rich-editor/langs/zh-Hans.js +0 -1
- package/packages/rich-editor/viewer.vue +0 -103
- package/packages/scan-code-input/index.js +0 -6
- package/packages/scan-code-input/src/events.js +0 -33
- package/packages/scan-code-input/src/scan-code-input-colse.vue +0 -131
- package/packages/scan-code-input/src/scan-code-input.vue +0 -116
- package/packages/secret-info/index.js +0 -7
- package/packages/secret-info/index.vue +0 -90
- package/packages/super-grid/index.js +0 -7
- package/packages/super-grid/src/apis.js +0 -778
- package/packages/super-grid/src/columns-config.vue +0 -335
- package/packages/super-grid/src/custom-formatter.js +0 -250
- package/packages/super-grid/src/dynamic-input.vue +0 -1279
- package/packages/super-grid/src/eventBus.js +0 -2
- package/packages/super-grid/src/events.js +0 -55
- package/packages/super-grid/src/formValidatorUtil.js +0 -226
- package/packages/super-grid/src/formatter.js +0 -181
- package/packages/super-grid/src/group-column.vue +0 -100
- package/packages/super-grid/src/header-context-menu.vue +0 -87
- package/packages/super-grid/src/index-column.vue +0 -51
- package/packages/super-grid/src/normal-column.vue +0 -769
- package/packages/super-grid/src/public-methods.js +0 -31
- package/packages/super-grid/src/row-operation.vue +0 -161
- package/packages/super-grid/src/search-button.vue +0 -66
- package/packages/super-grid/src/search-condition-input.vue +0 -61
- package/packages/super-grid/src/search-condition-list.vue +0 -59
- package/packages/super-grid/src/search-form-advancedQuery.vue +0 -653
- package/packages/super-grid/src/search-form-dialog.vue +0 -79
- package/packages/super-grid/src/search-form-item.vue +0 -386
- package/packages/super-grid/src/search-form-number.vue +0 -38
- package/packages/super-grid/src/search-form-open.vue +0 -162
- package/packages/super-grid/src/search-form-ordinarySearch.vue +0 -188
- package/packages/super-grid/src/search-form.vue +0 -634
- package/packages/super-grid/src/search-methods.js +0 -387
- package/packages/super-grid/src/selection-column.vue +0 -43
- package/packages/super-grid/src/store.js +0 -3
- package/packages/super-grid/src/super-grid-service.js +0 -561
- package/packages/super-grid/src/super-grid.vue +0 -2829
- package/packages/super-grid/src/utils.js +0 -763
- package/packages/super-grid/src/view-image-dialog.vue +0 -130
- package/packages/super-nine-grid/index.js +0 -7
- package/packages/super-nine-grid/src/apis.js +0 -103
- package/packages/super-nine-grid/src/custom-formatter.js +0 -66
- package/packages/super-nine-grid/src/formatter.js +0 -132
- package/packages/super-nine-grid/src/search-form-number.vue +0 -38
- package/packages/super-nine-grid/src/search-form.vue +0 -430
- package/packages/super-nine-grid/src/search-methods.js +0 -134
- package/packages/super-nine-grid/src/store.js +0 -3
- package/packages/super-nine-grid/src/super-grid-service.js +0 -91
- package/packages/super-nine-grid/src/super-nine-grid.vue +0 -872
- package/packages/super-nine-grid/src/utils.js +0 -261
- package/packages/svg-icon/index.js +0 -6
- package/packages/svg-icon/src/svg-icon.vue +0 -43
- package/packages/utils/utils.js +0 -152
- package/packages/utils/value-set.js +0 -86
- package/packages/valid-code/index.js +0 -7
- package/packages/valid-code/src/valid-code.vue +0 -95
- package/packages/workflow-button/index.js +0 -6
- package/packages/workflow-button/src/workflow-button.vue +0 -325
- package/packages/workflow-history-list/index.js +0 -6
- package/packages/workflow-history-list/src/api.js +0 -7
- package/packages/workflow-history-list/src/workflow-history-list.vue +0 -185
- package/packages/workgroup-tree/index.js +0 -6
- package/packages/workgroup-tree/src/workgroup-tree.vue +0 -76
- package/packages/workgroup-tree-inline/index.js +0 -6
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +0 -317
- package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +0 -43
- package/packages/workgroup-user-tree/index.js +0 -6
- package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +0 -100
- package/packages/workgroup-user-tree-inline/index.js +0 -6
- package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +0 -163
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +0 -436
- package/packages/year-range-picker/index.js +0 -6
- package/packages/year-range-picker/src/year-range-picker.vue +0 -51
- package/src/index.js +0 -93
- package/src/styles/theme/gray/form-style.scss +0 -41
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span>
|
|
3
|
-
<span v-if="typeof(buttonInfo['theTransactor'])!=='undefined' && buttonInfo['theTransactor'] === false" class="operation-area">
|
|
4
|
-
<slot :name="slotBefore" />
|
|
5
|
-
<slot name="errorArea" />
|
|
6
|
-
<slot :name="slotAfter" />
|
|
7
|
-
</span>
|
|
8
|
-
<span v-else class="operation-area">
|
|
9
|
-
<slot :name="slotBefore" />
|
|
10
|
-
<el-button v-for="(button,buttonIndex) in buttons" :key="buttonIndex" v-permission="button.permission" :disabled="preventReclick" :type="button.type" size="small" :class="button.code?button.code:''" @click="button.clickFun">
|
|
11
|
-
{{ button.i18nButtonName }}
|
|
12
|
-
</el-button>
|
|
13
|
-
<slot :name="slotAfter" />
|
|
14
|
-
</span>
|
|
15
|
-
</span>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
import { mapGetters } from 'vuex'
|
|
20
|
-
export default {
|
|
21
|
-
name: 'WorkflowButton',
|
|
22
|
-
props: {
|
|
23
|
-
// 控制按钮的相关信息
|
|
24
|
-
buttonInfo: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default: null
|
|
27
|
-
},
|
|
28
|
-
// 隐藏的按钮编码集合
|
|
29
|
-
// 值可以为['selectTransactor','selectTache','readButton','retrieveButton','copyButton','assignButton'],
|
|
30
|
-
// 分别表示['当任务是"待选择办理人"状态时,表单页面显示的提交按钮',
|
|
31
|
-
// '当任务是"待选择环节"状态时,表单页面显示的提交按钮',
|
|
32
|
-
// '已阅按钮','取回按钮','抄送按钮','指派按钮']
|
|
33
|
-
hiddenBtns: {
|
|
34
|
-
type: Array,
|
|
35
|
-
default: null
|
|
36
|
-
},
|
|
37
|
-
// 资源编码前缀,例如:系统编码.实体类名 或 系统编码.页面编码,用于控制按钮权限
|
|
38
|
-
permissionPrefix: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: null
|
|
41
|
-
},
|
|
42
|
-
formButtonPosition: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: null
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
data() {
|
|
48
|
-
const buttonsPermission = this.getButtonsPermission()
|
|
49
|
-
return {
|
|
50
|
-
slotBefore: 'before',
|
|
51
|
-
slotAfter: 'after',
|
|
52
|
-
buttons: [],
|
|
53
|
-
buttonsPermission // 各按钮资源编码
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
computed: {
|
|
57
|
-
...mapGetters([
|
|
58
|
-
'preventReclick'
|
|
59
|
-
])
|
|
60
|
-
},
|
|
61
|
-
provide() {
|
|
62
|
-
return {
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
created() {
|
|
66
|
-
// console.log('this.buttonInfo', this.buttonInfo)
|
|
67
|
-
// console.log('this.buttonsPermission', this.buttonsPermission)
|
|
68
|
-
const tempButtons = []
|
|
69
|
-
const _that = this
|
|
70
|
-
if ((typeof (this.buttonInfo['processState']) === 'undefined' || this.buttonInfo['processState'] === null) || (this.buttonInfo['processState'] === 'UNSUBMIT' && this.buttonInfo['active'] === 'WAIT_TRANSACT')) {
|
|
71
|
-
if (typeof (this.buttonInfo['processState']) === 'undefined' || this.buttonInfo['showButtonSave'] === true) {
|
|
72
|
-
tempButtons.push({
|
|
73
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['saveButton']),
|
|
74
|
-
'permission': this.buttonsPermission['save'],
|
|
75
|
-
'type': 'primary',
|
|
76
|
-
'clickFun': function() {
|
|
77
|
-
_that.$emit('save')
|
|
78
|
-
},
|
|
79
|
-
'code': 'saveButton'
|
|
80
|
-
})
|
|
81
|
-
}
|
|
82
|
-
tempButtons.push({
|
|
83
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['submitButton']),
|
|
84
|
-
'permission': this.buttonsPermission['submitProcess'],
|
|
85
|
-
'type': 'primary',
|
|
86
|
-
'clickFun': function() {
|
|
87
|
-
_that.$emit('submitProcess')
|
|
88
|
-
},
|
|
89
|
-
'code': 'submitButton'
|
|
90
|
-
})
|
|
91
|
-
}
|
|
92
|
-
if (this.buttonInfo['processState']) {
|
|
93
|
-
if (this.buttonInfo['active'] === 'WAIT_TRANSACT' && this.buttonInfo['processingMode'] === 'TYPE_READ') {
|
|
94
|
-
if ((!this.hiddenBtns || (this.hiddenBtns && this.hiddenBtns.indexOf('readButton') === -1))) {
|
|
95
|
-
tempButtons.push({
|
|
96
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['readButton']),
|
|
97
|
-
'permission': this.buttonsPermission['completeTask'],
|
|
98
|
-
'type': 'primary',
|
|
99
|
-
'clickFun': function() { _that.completeTask('READED') },
|
|
100
|
-
'code': 'readButton'
|
|
101
|
-
})
|
|
102
|
-
}
|
|
103
|
-
} else if (this.buttonInfo['processState'] === 'SUBMIT') {
|
|
104
|
-
if (this.buttonInfo['processingMode'] !== 'TYPE_READ' && this.buttonInfo['showButtonSave'] && (this.buttonInfo['active'] === 'WAIT_TRANSACT' || this.buttonInfo['active'] === 'WAIT_DESIGNATE_TRANSACTOR' || this.buttonInfo['active'] === 'WAIT_CHOICE_TACHE' || this.buttonInfo['active'] === 'DRAW_WAIT')) {
|
|
105
|
-
tempButtons.push({
|
|
106
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['saveButton']),
|
|
107
|
-
'permission': this.buttonsPermission['update'],
|
|
108
|
-
'type': 'primary',
|
|
109
|
-
'clickFun': function() { _that.$emit('update') },
|
|
110
|
-
'code': 'saveButton'
|
|
111
|
-
})
|
|
112
|
-
}
|
|
113
|
-
if (this.buttonInfo['active'] && this.buttonInfo['active'] === 'WAIT_DESIGNATE_TRANSACTOR' && (!this.hiddenBtns || (this.hiddenBtns && this.hiddenBtns.indexOf('selectTransactor') === -1))) {
|
|
114
|
-
tempButtons.push({
|
|
115
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['submitButton']),
|
|
116
|
-
'permission': this.buttonsPermission['selectTransactor'],
|
|
117
|
-
'type': 'primary',
|
|
118
|
-
'clickFun': function() { _that.$emit('selectTransactors') },
|
|
119
|
-
'code': 'submitButton'
|
|
120
|
-
})
|
|
121
|
-
}
|
|
122
|
-
if (this.buttonInfo['active'] && this.buttonInfo['active'] === 'WAIT_CHOICE_TACHE' && (!this.hiddenBtns || (this.hiddenBtns && this.hiddenBtns.indexOf('selectTache') === -1))) {
|
|
123
|
-
tempButtons.push({
|
|
124
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['submitButton']),
|
|
125
|
-
'permission': this.buttonsPermission['selectTache'],
|
|
126
|
-
'type': 'primary',
|
|
127
|
-
'clickFun': function() { _that.$emit('selectTaches') },
|
|
128
|
-
'code': 'submitButton'
|
|
129
|
-
})
|
|
130
|
-
}
|
|
131
|
-
if (this.buttonInfo['active'] && this.buttonInfo['active'] === 'DRAW_WAIT' && this.buttonInfo['showButtonDraw']) {
|
|
132
|
-
tempButtons.push({
|
|
133
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['drawButton']),
|
|
134
|
-
'permission': this.buttonsPermission['drawTask'],
|
|
135
|
-
'type': 'primary',
|
|
136
|
-
'clickFun': function() { _that.$emit('drawTask') },
|
|
137
|
-
'code': 'drawButton'
|
|
138
|
-
})
|
|
139
|
-
}
|
|
140
|
-
if (this.buttonInfo['drawTask'] && this.buttonInfo['active'] === 'WAIT_TRANSACT' && this.buttonInfo['showButtonAbandon']) {
|
|
141
|
-
tempButtons.push({
|
|
142
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['abandonButton']),
|
|
143
|
-
'permission': this.buttonsPermission['abandonReceive'],
|
|
144
|
-
'type': 'primary',
|
|
145
|
-
'clickFun': function() { _that.$emit('abandonDraw') },
|
|
146
|
-
'code': 'abandonButton'
|
|
147
|
-
})
|
|
148
|
-
}
|
|
149
|
-
if (this.buttonInfo['active'] === 'COMPLETED' && this.buttonInfo['processingMode'] !== 'TYPE_READ' && ((!this.hiddenBtns || (this.hiddenBtns && this.hiddenBtns.indexOf('retrieveButton') === -1)) && this.buttonInfo['showButtonGetBack'])) {
|
|
150
|
-
tempButtons.push({
|
|
151
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['backButton']),
|
|
152
|
-
'permission': this.buttonsPermission['retrieve'],
|
|
153
|
-
'type': 'primary',
|
|
154
|
-
'clickFun': function() { _that.$emit('retrieveTask') },
|
|
155
|
-
'code': 'backButton'
|
|
156
|
-
})
|
|
157
|
-
}
|
|
158
|
-
if (this.buttonInfo['active'] === 'WAIT_TRANSACT' && this.buttonInfo['processingMode'] === 'EDIT') {
|
|
159
|
-
tempButtons.push({
|
|
160
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['submitButton']),
|
|
161
|
-
'permission': this.buttonsPermission['submitTask'],
|
|
162
|
-
'type': 'primary',
|
|
163
|
-
'clickFun': function() { _that.completeTask('SUBMIT') },
|
|
164
|
-
'code': 'submitButton'
|
|
165
|
-
})
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (this.buttonInfo['active'] === 'WAIT_TRANSACT' && (this.buttonInfo['processingMode'] === 'APPROVE' || this.buttonInfo['processingMode'] === 'COUNTERSIGN')) {
|
|
169
|
-
tempButtons.push({
|
|
170
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['agreeButton']),
|
|
171
|
-
'permission': this.buttonsPermission['approve'],
|
|
172
|
-
'type': 'primary',
|
|
173
|
-
'clickFun': function() { _that.completeTask('APPROVE') },
|
|
174
|
-
'code': 'agreeButton'
|
|
175
|
-
})
|
|
176
|
-
tempButtons.push({
|
|
177
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['disagreeButton']),
|
|
178
|
-
'permission': this.buttonsPermission['refuse'],
|
|
179
|
-
'type': 'primary',
|
|
180
|
-
'clickFun': function() { _that.completeTask('REFUSE') },
|
|
181
|
-
'code': 'disagreeButton'
|
|
182
|
-
})
|
|
183
|
-
if (this.buttonInfo['processingMode'] === 'COUNTERSIGN' && this.buttonInfo['showButtonAddCounter']) {
|
|
184
|
-
tempButtons.push({
|
|
185
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['addSignerButton']),
|
|
186
|
-
'permission': this.buttonsPermission['addSigner'],
|
|
187
|
-
'type': 'primary',
|
|
188
|
-
'clickFun': function() { _that.$emit('addSigner') },
|
|
189
|
-
'code': 'addSignerButton'
|
|
190
|
-
})
|
|
191
|
-
}
|
|
192
|
-
if (this.buttonInfo['processingMode'] === 'COUNTERSIGN' && this.buttonInfo['showButtonDelCounter']) {
|
|
193
|
-
tempButtons.push({
|
|
194
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['removeSignerButton']),
|
|
195
|
-
'permission': this.buttonsPermission['removeSigner'],
|
|
196
|
-
'type': 'primary',
|
|
197
|
-
'clickFun': function() { _that.$emit('removeSigner') },
|
|
198
|
-
'code': 'removeSignerButton'
|
|
199
|
-
})
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
if (this.buttonInfo['active'] === 'WAIT_TRANSACT' && this.buttonInfo['processingMode'] === 'VOTE') {
|
|
203
|
-
tempButtons.push({
|
|
204
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['approveButton']),
|
|
205
|
-
'permission': this.buttonsPermission['agreement'],
|
|
206
|
-
'type': 'primary',
|
|
207
|
-
'clickFun': function() { _that.completeTask('AGREEMENT') },
|
|
208
|
-
'code': 'approveButton'
|
|
209
|
-
})
|
|
210
|
-
tempButtons.push({
|
|
211
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['opposeButton']),
|
|
212
|
-
'permission': this.buttonsPermission['oppose'],
|
|
213
|
-
'type': 'primary',
|
|
214
|
-
'clickFun': function() { _that.completeTask('OPPOSE') },
|
|
215
|
-
'code': 'opposeButton'
|
|
216
|
-
})
|
|
217
|
-
if (this.buttonInfo['showButtonKiken']) {
|
|
218
|
-
tempButtons.push({
|
|
219
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['abstainButton']),
|
|
220
|
-
'permission': this.buttonsPermission['kiken'],
|
|
221
|
-
'type': 'primary',
|
|
222
|
-
'clickFun': function() { _that.completeTask('KIKEN') },
|
|
223
|
-
'code': 'abstainButton'
|
|
224
|
-
})
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
if (this.buttonInfo['active'] === 'WAIT_TRANSACT' && this.buttonInfo['processingMode'] !== 'TYPE_READ' && this.buttonInfo['showButtonCopy'] && ((!this.hiddenBtns || (this.hiddenBtns && this.hiddenBtns.indexOf('copyButton') === -1)) && this.buttonInfo['showButtonCopy'])) {
|
|
228
|
-
tempButtons.push({
|
|
229
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['copyButton']),
|
|
230
|
-
'permission': this.buttonsPermission['copyTask'],
|
|
231
|
-
'type': '',
|
|
232
|
-
'clickFun': function() { _that.$emit('createCopyTask') },
|
|
233
|
-
'code': 'copyButton'
|
|
234
|
-
})
|
|
235
|
-
}
|
|
236
|
-
if (this.buttonInfo['processingMode'] !== 'TYPE_READ' && (this.buttonInfo['active'] === 'WAIT_TRANSACT' || this.buttonInfo['active'] === 'DRAW_WAIT') && ((!this.hiddenBtns || (this.hiddenBtns && this.hiddenBtns.indexOf('assignButton') === -1)) && this.buttonInfo['showButtonAppoint'])) {
|
|
237
|
-
tempButtons.push({
|
|
238
|
-
'i18nButtonName': this.i18nButtonName(this.buttonInfo['appointButton']),
|
|
239
|
-
'permission': this.buttonsPermission['assign'],
|
|
240
|
-
'type': '',
|
|
241
|
-
'clickFun': function() { _that.$emit('assignTask') },
|
|
242
|
-
'code': 'appointButton'
|
|
243
|
-
})
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
if (this.formButtonPosition === 'bottomRight') {
|
|
248
|
-
this.buttons = tempButtons.slice().reverse()
|
|
249
|
-
this.slotBefore = 'after'
|
|
250
|
-
this.slotAfter = 'before'
|
|
251
|
-
} else {
|
|
252
|
-
this.buttons = tempButtons
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
mounted() {
|
|
256
|
-
|
|
257
|
-
},
|
|
258
|
-
methods: {
|
|
259
|
-
exportReportButt() {
|
|
260
|
-
// console.log('this.$emit(exportReport)')
|
|
261
|
-
this.$emit('exportReport')
|
|
262
|
-
},
|
|
263
|
-
completeTask(operationResult) {
|
|
264
|
-
this.$emit('completeTask', operationResult)
|
|
265
|
-
},
|
|
266
|
-
// 国际化显示按钮名称
|
|
267
|
-
i18nButtonName(buttonName) {
|
|
268
|
-
const defaultButtonPrefix = 'initVal:'
|
|
269
|
-
if (buttonName.indexOf(defaultButtonPrefix) >= 0) {
|
|
270
|
-
// 表示使用默认的按钮名称
|
|
271
|
-
const defaultButtonName = buttonName.substring(buttonName.indexOf(defaultButtonPrefix) + defaultButtonPrefix.length)
|
|
272
|
-
return this.$t('workflowButton.' + defaultButtonName)
|
|
273
|
-
} else {
|
|
274
|
-
return buttonName
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
getButtonsPermission() {
|
|
278
|
-
const defaultPermission = 'true'
|
|
279
|
-
const completeTaskPermission = this.permissionPrefix ? this.permissionPrefix + '.completeTask' : defaultPermission
|
|
280
|
-
return {
|
|
281
|
-
// 第一环节保存,同“更新”
|
|
282
|
-
save: this.permissionPrefix ? this.permissionPrefix + '.save' : defaultPermission,
|
|
283
|
-
// 第一环节提交
|
|
284
|
-
submitProcess: this.permissionPrefix ? this.permissionPrefix + '.submitProcess' : defaultPermission,
|
|
285
|
-
// 同意(办理任务)
|
|
286
|
-
approve: this.permissionPrefix ? this.permissionPrefix + '.approve' : completeTaskPermission,
|
|
287
|
-
// 不同意(办理任务)
|
|
288
|
-
refuse: this.permissionPrefix ? this.permissionPrefix + '.refuse' : completeTaskPermission,
|
|
289
|
-
// 提交(办理任务)
|
|
290
|
-
submitTask: this.permissionPrefix ? this.permissionPrefix + '.submit' : completeTaskPermission,
|
|
291
|
-
// 赞成(办理任务)
|
|
292
|
-
agreement: this.permissionPrefix ? this.permissionPrefix + '.agreement' : completeTaskPermission,
|
|
293
|
-
// 反对(办理任务)
|
|
294
|
-
oppose: this.permissionPrefix ? this.permissionPrefix + '.oppose' : completeTaskPermission,
|
|
295
|
-
// 弃权(办理任务)
|
|
296
|
-
kiken: this.permissionPrefix ? this.permissionPrefix + '.kiken' : completeTaskPermission,
|
|
297
|
-
// 阅(办理任务)
|
|
298
|
-
readed: this.permissionPrefix ? this.permissionPrefix + '.readed' : completeTaskPermission,
|
|
299
|
-
// 领取任务
|
|
300
|
-
drawTask: this.permissionPrefix ? this.permissionPrefix + '.drawTask' : defaultPermission,
|
|
301
|
-
// 放弃领取
|
|
302
|
-
abandonReceive: this.permissionPrefix ? this.permissionPrefix + '.abandonReceive' : defaultPermission,
|
|
303
|
-
// 取回
|
|
304
|
-
retrieve: this.permissionPrefix ? this.permissionPrefix + '.retrieve' : defaultPermission,
|
|
305
|
-
// 更新
|
|
306
|
-
update: this.permissionPrefix ? this.permissionPrefix + '.update' : defaultPermission,
|
|
307
|
-
// 指派
|
|
308
|
-
assign: this.permissionPrefix ? this.permissionPrefix + '.assign' : defaultPermission,
|
|
309
|
-
// 选择办理人
|
|
310
|
-
selectTransactor: this.permissionPrefix ? this.permissionPrefix + '.selectTransactor' : defaultPermission,
|
|
311
|
-
// 选择环节
|
|
312
|
-
selectTache: this.permissionPrefix ? this.permissionPrefix + '.selectTache' : defaultPermission,
|
|
313
|
-
// 抄送
|
|
314
|
-
copyTask: this.permissionPrefix ? this.permissionPrefix + '.copyTask' : defaultPermission,
|
|
315
|
-
// 加签
|
|
316
|
-
addSigner: this.permissionPrefix ? this.permissionPrefix + '.addSigner' : defaultPermission,
|
|
317
|
-
// 减签
|
|
318
|
-
removeSigner: this.permissionPrefix ? this.permissionPrefix + '.removeSigner' : defaultPermission,
|
|
319
|
-
// 导出报告
|
|
320
|
-
exportReport: this.permissionPrefix ? this.permissionPrefix + '.exportReport' : defaultPermission
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
</script>
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-table
|
|
3
|
-
v-if="loaded"
|
|
4
|
-
:data="histories"
|
|
5
|
-
element-loading-text="Loading"
|
|
6
|
-
border
|
|
7
|
-
fit
|
|
8
|
-
highlight-current-row
|
|
9
|
-
row-key="uuid"
|
|
10
|
-
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
11
|
-
lazy
|
|
12
|
-
:load="getChildren"
|
|
13
|
-
>
|
|
14
|
-
<el-table-column :label="$t('workflowHistoryList.index')" align="left" width="80px">
|
|
15
|
-
<template slot-scope="scope">
|
|
16
|
-
{{ scope.$index+1 }}
|
|
17
|
-
</template>
|
|
18
|
-
</el-table-column>
|
|
19
|
-
<el-table-column :label="$t('workflowHistoryList.taskName')" align="left" width="250">
|
|
20
|
-
<template slot-scope="scope">
|
|
21
|
-
<span v-if="scope.row.historyType && scope.row.historyType ==='PROCESS_START'">{{ $t('workflowHistoryList.processStart') }}</span>
|
|
22
|
-
<span v-else-if="scope.row.historyType && scope.row.historyType ==='PROCESS_END'">{{ $t('workflowHistoryList.processEnd') }}</span>
|
|
23
|
-
<span v-else-if="scope.row.current" style="color:#E6A23C">{{ i18nTaskName(scope.row) }}</span>
|
|
24
|
-
<span v-else-if="!scope.row.special">{{ i18nTaskName(scope.row) }}</span>
|
|
25
|
-
<span v-else-if="scope.row.special === true" style="color:red">{{ i18nTaskName(scope.row) +'['+$t('workflowHistoryList.specailText')+']' }}</span>
|
|
26
|
-
</template>
|
|
27
|
-
</el-table-column>
|
|
28
|
-
<el-table-column :label="$t('workflowHistoryList.operator')" align="left" width="250">
|
|
29
|
-
<template slot-scope="scope">
|
|
30
|
-
<span v-if="scope.row.historyType && scope.row.historyType ==='PROCESS_END'" />
|
|
31
|
-
<span v-else>{{ scope.row.creatorName }}</span>
|
|
32
|
-
</template>
|
|
33
|
-
</el-table-column>
|
|
34
|
-
<el-table-column :label="$t('workflowHistoryList.operatorDept')" align="left" width="150">
|
|
35
|
-
<template slot-scope="scope">
|
|
36
|
-
<span v-if="scope.row.historyType && scope.row.historyType ==='PROCESS_END'" />
|
|
37
|
-
<span v-else>{{ scope.row.departmentName }}</span>
|
|
38
|
-
</template>
|
|
39
|
-
</el-table-column>
|
|
40
|
-
<el-table-column :label="$t('workflowHistoryList.operationTime')" align="left" width="200">
|
|
41
|
-
<template slot-scope="scope">
|
|
42
|
-
<span v-if="scope.row.historyType && scope.row.historyType ==='PROCESS_END'" />
|
|
43
|
-
<span v-else>{{ scope.row.formatCreatedTime }}</span>
|
|
44
|
-
</template>
|
|
45
|
-
</el-table-column>
|
|
46
|
-
<el-table-column :label="$t('workflowHistoryList.operation')" align="left" width="400">
|
|
47
|
-
<template slot-scope="scope">
|
|
48
|
-
<span v-if="scope.row.historyType && scope.row.historyType ==='PROCESS_END'" />
|
|
49
|
-
<span v-else-if="scope.row.current" style="color:#E6A23C">{{ scope.row.transactionResult }} {{ $t('workflowHistoryList.toDoText') }}</span>
|
|
50
|
-
<span v-else>{{ i18nOperation(scope.row) }}</span>
|
|
51
|
-
</template>
|
|
52
|
-
</el-table-column>
|
|
53
|
-
<el-table-column :label="$t('workflowHistoryList.opinion')" align="left" width="400">
|
|
54
|
-
<template slot-scope="scope">
|
|
55
|
-
<span v-if="scope.row.historyType && scope.row.historyType ==='PROCESS_END'" />
|
|
56
|
-
<span v-else>{{ scope.row.opinion }}</span>
|
|
57
|
-
</template>
|
|
58
|
-
</el-table-column>
|
|
59
|
-
</el-table>
|
|
60
|
-
</template>
|
|
61
|
-
|
|
62
|
-
<script>
|
|
63
|
-
import Vue from 'vue'
|
|
64
|
-
import { i18nOperation } from '../../../src/utils/workflow-util'
|
|
65
|
-
import { getLanguageWithLocale } from '../../../src/utils/util'
|
|
66
|
-
import ApiJs from './api'
|
|
67
|
-
export default {
|
|
68
|
-
name: 'WorkflowHistoryList',
|
|
69
|
-
props: {
|
|
70
|
-
workflowId: {
|
|
71
|
-
type: Number,
|
|
72
|
-
default: null
|
|
73
|
-
},
|
|
74
|
-
// 流转历史列表,在图形流转历史中查看子流程流转历史需要使用
|
|
75
|
-
historyList: {
|
|
76
|
-
type: Array,
|
|
77
|
-
default: null
|
|
78
|
-
},
|
|
79
|
-
// 主子流程的国际化配置
|
|
80
|
-
allProcessI18n: {
|
|
81
|
-
type: Object,
|
|
82
|
-
default: null
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
data() {
|
|
86
|
-
let histories = null
|
|
87
|
-
if (this.historyList && this.historyList.length > 0) {
|
|
88
|
-
histories = [].concat(this.historyList)
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
loaded: false,
|
|
92
|
-
histories,
|
|
93
|
-
processI18n: null,
|
|
94
|
-
processNameI18n: null
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
computed: {
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
provide() {
|
|
101
|
-
return {
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
created() {
|
|
105
|
-
this.getI18nSet().then(processI18n => {
|
|
106
|
-
this.processI18n = processI18n
|
|
107
|
-
if (!this.histories || this.histories === null) {
|
|
108
|
-
this.getData()
|
|
109
|
-
} else {
|
|
110
|
-
this.loaded = true
|
|
111
|
-
}
|
|
112
|
-
})
|
|
113
|
-
},
|
|
114
|
-
mounted() {
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
methods: {
|
|
118
|
-
...ApiJs,
|
|
119
|
-
getData() {
|
|
120
|
-
this.$http.get(Vue.prototype.baseAPI + '/wf-editor/instance-histories/' + this.workflowId).then(data => {
|
|
121
|
-
this.histories = data.histories
|
|
122
|
-
if (data && data.currentTasks) {
|
|
123
|
-
this.histories = this.histories.concat(data.currentTasks)
|
|
124
|
-
}
|
|
125
|
-
this.loaded = true
|
|
126
|
-
}).catch(error => {
|
|
127
|
-
console.log(error)
|
|
128
|
-
this.loaded = true
|
|
129
|
-
})
|
|
130
|
-
},
|
|
131
|
-
getI18nSet() {
|
|
132
|
-
return new Promise((resolve, reject) => {
|
|
133
|
-
if (this.allProcessI18n) {
|
|
134
|
-
resolve(this.allProcessI18n)
|
|
135
|
-
} else {
|
|
136
|
-
this.$http.get(Vue.prototype.baseAPI + '/wf-editor/i18n-settings/get-bundle-info?workflowId=' + this.workflowId).then((processI18n) => {
|
|
137
|
-
resolve(processI18n)
|
|
138
|
-
}).catch((error) => {
|
|
139
|
-
reject(error)
|
|
140
|
-
})
|
|
141
|
-
}
|
|
142
|
-
})
|
|
143
|
-
},
|
|
144
|
-
i18nOperation(row) {
|
|
145
|
-
let oneProcessI18n
|
|
146
|
-
let processNameI18n
|
|
147
|
-
const language = getLanguageWithLocale()
|
|
148
|
-
const bundleCode = row.bundleCode
|
|
149
|
-
if (bundleCode && bundleCode !== '' && this.processI18n) {
|
|
150
|
-
oneProcessI18n = this.processI18n[bundleCode]
|
|
151
|
-
}
|
|
152
|
-
if (oneProcessI18n && oneProcessI18n['processName']) {
|
|
153
|
-
processNameI18n = oneProcessI18n['processName'][language]
|
|
154
|
-
}
|
|
155
|
-
return i18nOperation(row, processNameI18n, oneProcessI18n, language)
|
|
156
|
-
},
|
|
157
|
-
i18nTaskName(row) {
|
|
158
|
-
let oneProcessI18n
|
|
159
|
-
const bundleCode = row.bundleCode
|
|
160
|
-
if (bundleCode && bundleCode !== '' && this.processI18n) {
|
|
161
|
-
oneProcessI18n = this.processI18n[bundleCode]
|
|
162
|
-
}
|
|
163
|
-
let taskName = null
|
|
164
|
-
// if (!bundleCode && this.processI18n && Object.keys(this.processI18n).length === 1) {
|
|
165
|
-
// // 表示是主流程的国际化配置
|
|
166
|
-
// const bundleCodes = Object.keys(this.processI18n)
|
|
167
|
-
// oneProcessI18n = this.processI18n[bundleCodes[0]]
|
|
168
|
-
// }
|
|
169
|
-
const i18nKey = row.i18nKey
|
|
170
|
-
if (i18nKey && oneProcessI18n && oneProcessI18n[i18nKey]) {
|
|
171
|
-
// 根据locale获得语言编码,例如:cn->zh_CN,en->en_US
|
|
172
|
-
const language = getLanguageWithLocale()
|
|
173
|
-
taskName = oneProcessI18n[i18nKey][language]
|
|
174
|
-
}
|
|
175
|
-
if (!taskName || taskName === null) {
|
|
176
|
-
taskName = row.taskName
|
|
177
|
-
}
|
|
178
|
-
return taskName
|
|
179
|
-
},
|
|
180
|
-
getChildren(row, treeNode, resolve) {
|
|
181
|
-
resolve(row.children)
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
</script>
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-dialog
|
|
4
|
-
class="user-tree"
|
|
5
|
-
visible
|
|
6
|
-
:title="myTitle"
|
|
7
|
-
:close-on-click-modal="false"
|
|
8
|
-
append-to-body
|
|
9
|
-
:width="width"
|
|
10
|
-
@open="$emit('open')"
|
|
11
|
-
@opend="$emit('opend')"
|
|
12
|
-
@close="$emit('close')"
|
|
13
|
-
@closed="$emit('closed')"
|
|
14
|
-
>
|
|
15
|
-
<inline-workgroup-tree ref="workgroupTree" :multiple="multiple" :branch-info="branchInfo" @result="result" />
|
|
16
|
-
<div slot="footer" class="dialog-footer">
|
|
17
|
-
<el-button size="small" @click="$emit('close')">
|
|
18
|
-
{{ $t('imatrixUIPublicModel.cancel') }}
|
|
19
|
-
</el-button>
|
|
20
|
-
<el-button size="small" type="primary" @click="selectWorkgroup">
|
|
21
|
-
{{ $t('imatrixUIPublicModel.sure') }}
|
|
22
|
-
</el-button>
|
|
23
|
-
</div>
|
|
24
|
-
</el-dialog>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
<script>
|
|
28
|
-
import InlineWorkgroupTree from '../../workgroup-tree-inline/src/workgroup-tree-inline.vue'
|
|
29
|
-
export default {
|
|
30
|
-
name: 'WorkgroupTree',
|
|
31
|
-
components: {
|
|
32
|
-
InlineWorkgroupTree
|
|
33
|
-
},
|
|
34
|
-
props: {
|
|
35
|
-
// 是否是多选树,默认是true
|
|
36
|
-
multiple: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: true
|
|
39
|
-
},
|
|
40
|
-
// 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
|
|
41
|
-
branchInfo: {
|
|
42
|
-
type: Array,
|
|
43
|
-
default: null
|
|
44
|
-
},
|
|
45
|
-
// 弹框的标题
|
|
46
|
-
title: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: null
|
|
49
|
-
},
|
|
50
|
-
// 弹框的宽度
|
|
51
|
-
width: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: '30%'
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
data() {
|
|
58
|
-
let myTitle = this.$t('imatrixUIMessage.pleaseSelectATeam')
|
|
59
|
-
if (this.title) {
|
|
60
|
-
myTitle = this.title
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
myTitle
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
methods: {
|
|
67
|
-
result(selectNodeInfo) {
|
|
68
|
-
this.$emit('close', selectNodeInfo)
|
|
69
|
-
},
|
|
70
|
-
// 嵌入树,多选时,点击确定时调用的方法
|
|
71
|
-
selectWorkgroup() {
|
|
72
|
-
this.$refs.workgroupTree.selectWorkgroup()
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
</script>
|