imatrix-ui 2.9.13-dw → 2.9.14-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.
Files changed (186) hide show
  1. package/lib/super-ui.css +1 -1
  2. package/lib/super-ui.umd.min.js +5 -35
  3. package/package.json +2 -2
  4. package/src/api/sso-service.js +19 -1
  5. package/src/assets/nonemessage.png +0 -0
  6. package/src/i18n/i18n.js +1 -1
  7. package/src/i18n/langs/cn.js +18 -6
  8. package/src/i18n/langs/en.js +20 -7
  9. package/src/permission.js +2 -2
  10. package/src/plugins.js +3 -3
  11. package/src/router/index.js +10 -0
  12. package/src/store/modules/tab-content.js +6 -0
  13. package/src/store/modules/user.js +32 -2
  14. package/src/styles/index.scss +74 -4
  15. package/src/styles/theme/black/font-style.scss +70 -0
  16. package/src/styles/theme/black/index.scss +6 -30
  17. package/src/styles/theme/blue/font-style.scss +37 -0
  18. package/src/styles/theme/blue/index.scss +2 -18
  19. package/src/styles/theme/blue2/font-style.scss +70 -0
  20. package/src/styles/theme/blue2/index.scss +3 -13
  21. package/src/styles/theme/dark-blue/card.scss +4 -6
  22. package/src/styles/theme/dark-blue/index.scss +28 -3
  23. package/src/styles/theme/dark-blue/message.scss +8 -0
  24. package/src/styles/theme/dark-blue/radio.scss +13 -0
  25. package/src/styles/theme/dark-blue/sidebar.scss +7 -37
  26. package/src/styles/theme/dark-blue/table.scss +1 -1
  27. package/src/styles/theme/dark-blue/tree.scss +35 -10
  28. package/src/styles/theme/gray/card-style.scss +13 -1
  29. package/src/styles/theme/gray/font-style.scss +38 -0
  30. package/src/styles/theme/gray/index.scss +13 -25
  31. package/src/styles/theme/gray/scrollbar-style.scss +32 -0
  32. package/src/styles/theme/gray/sidebar.scss +7 -14
  33. package/src/utils/auth-api.js +45 -1
  34. package/src/utils/common-util.js +21 -81
  35. package/src/utils/jump-page-utils.js +1 -2
  36. package/src/utils/range-selector.js +185 -0
  37. package/src/utils/request.js +6 -3
  38. package/src/utils/util.js +13 -11
  39. package/src/views/dsc-component/Sidebar/Item.vue +7 -5
  40. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -3
  41. package/src/views/dsc-component/Sidebar/index.vue +12 -20
  42. package/src/views/dsc-component/tabs/tab-content.vue +1 -5
  43. package/src/views/layout/NewLayout.vue +6 -65
  44. package/src/views/layout/components/Menubar/Item.vue +23 -7
  45. package/src/views/layout/components/Menubar/Link.vue +11 -2
  46. package/src/views/layout/components/Menubar/SidebarItem.vue +50 -7
  47. package/src/views/layout/components/Menubar/index.vue +51 -16
  48. package/src/views/layout/components/tabs/tab-content.vue +160 -0
  49. package/src/views/layout/tab-content-iframe-index.vue +31 -0
  50. package/src/views/layout/tab-content-index.vue +85 -0
  51. package/src/views/login/index.vue +1 -1
  52. package/packages/breadcrumb/index.js +0 -6
  53. package/packages/breadcrumb/src/breadcrumb.vue +0 -71
  54. package/packages/department-tree/index.js +0 -6
  55. package/packages/department-tree/src/department-tree.vue +0 -108
  56. package/packages/department-tree-inline/index.js +0 -6
  57. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +0 -402
  58. package/packages/department-tree-inline/src/department-single-tree-inline.vue +0 -284
  59. package/packages/department-tree-inline/src/department-tree-inline.vue +0 -86
  60. package/packages/department-tree-inline/src/department-tree-service.js +0 -245
  61. package/packages/department-tree-inline/src/search-result.vue +0 -176
  62. package/packages/department-user-tree/index.js +0 -6
  63. package/packages/department-user-tree/src/department-user-multiple-tree.vue +0 -116
  64. package/packages/department-user-tree/src/department-user-single-tree.vue +0 -76
  65. package/packages/department-user-tree/src/department-user-tree.vue +0 -101
  66. package/packages/department-user-tree-inline/index.js +0 -6
  67. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +0 -626
  68. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -269
  69. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +0 -79
  70. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -230
  71. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +0 -122
  72. package/packages/department-user-tree-inline/src/search-result.vue +0 -197
  73. package/packages/directives/prevent-reclick.js +0 -19
  74. package/packages/dynamic-source-select/index.js +0 -6
  75. package/packages/dynamic-source-select/src/dynamic-source-select-service.js +0 -70
  76. package/packages/dynamic-source-select/src/dynamic-source-select.vue +0 -440
  77. package/packages/dynamic-source-select/src/events.js +0 -55
  78. package/packages/fs-preview/index.js +0 -6
  79. package/packages/fs-preview/src/fs-preview.vue +0 -226
  80. package/packages/fs-upload/index.js +0 -6
  81. package/packages/fs-upload/src/fs-upload-multi.vue +0 -420
  82. package/packages/fs-upload/src/fs-upload-single.vue +0 -312
  83. package/packages/fs-upload/src/fs-upload.vue +0 -189
  84. package/packages/fs-upload/src/see-big-picture.vue +0 -55
  85. package/packages/fs-upload-list/index.js +0 -6
  86. package/packages/fs-upload-list/src/fs-upload-list.vue +0 -287
  87. package/packages/hamburger/index.js +0 -6
  88. package/packages/hamburger/src/hamburger.vue +0 -38
  89. package/packages/index.js +0 -121
  90. package/packages/multipart-upload/index.js +0 -6
  91. package/packages/multipart-upload/src/index.vue +0 -73
  92. package/packages/multipart-upload/src/multipart-upload-form.vue +0 -297
  93. package/packages/multipart-upload/src/multipart-upload-list.vue +0 -378
  94. package/packages/organization-input/index.js +0 -6
  95. package/packages/organization-input/src/organization-input.vue +0 -542
  96. package/packages/plugins/export-data-new.js +0 -466
  97. package/packages/plugins/export-data.js +0 -361
  98. package/packages/plugins/index.js +0 -15
  99. package/packages/plugins/public-method.js +0 -43
  100. package/packages/remove-department/index.js +0 -6
  101. package/packages/remove-department/src/remove-department.vue +0 -172
  102. package/packages/remove-department/src/remove-dept-service.js +0 -20
  103. package/packages/remove-user/index.js +0 -6
  104. package/packages/remove-user/src/remove-user-service.js +0 -20
  105. package/packages/remove-user/src/remove-user.vue +0 -195
  106. package/packages/remove-workgroup/index.js +0 -6
  107. package/packages/remove-workgroup/src/remove-workgroup-service.js +0 -20
  108. package/packages/remove-workgroup/src/remove-workgroup.vue +0 -159
  109. package/packages/rich-editor/index.js +0 -7
  110. package/packages/rich-editor/index.vue +0 -278
  111. package/packages/rich-editor/langs/zh-Hans.js +0 -1
  112. package/packages/rich-editor/viewer.vue +0 -103
  113. package/packages/scan-code-input/index.js +0 -6
  114. package/packages/scan-code-input/src/events.js +0 -33
  115. package/packages/scan-code-input/src/scan-code-input-colse.vue +0 -131
  116. package/packages/scan-code-input/src/scan-code-input.vue +0 -116
  117. package/packages/secret-info/index.js +0 -7
  118. package/packages/secret-info/index.vue +0 -90
  119. package/packages/super-grid/index.js +0 -7
  120. package/packages/super-grid/src/apis.js +0 -808
  121. package/packages/super-grid/src/columns-config.vue +0 -335
  122. package/packages/super-grid/src/custom-formatter.js +0 -250
  123. package/packages/super-grid/src/dynamic-input.vue +0 -1279
  124. package/packages/super-grid/src/eventBus.js +0 -2
  125. package/packages/super-grid/src/events.js +0 -55
  126. package/packages/super-grid/src/formValidatorUtil.js +0 -226
  127. package/packages/super-grid/src/formatter.js +0 -181
  128. package/packages/super-grid/src/group-column.vue +0 -100
  129. package/packages/super-grid/src/header-context-menu.vue +0 -87
  130. package/packages/super-grid/src/index-column.vue +0 -51
  131. package/packages/super-grid/src/normal-column.vue +0 -769
  132. package/packages/super-grid/src/public-methods.js +0 -31
  133. package/packages/super-grid/src/row-operation.vue +0 -161
  134. package/packages/super-grid/src/search-button.vue +0 -66
  135. package/packages/super-grid/src/search-condition-input.vue +0 -61
  136. package/packages/super-grid/src/search-condition-list.vue +0 -59
  137. package/packages/super-grid/src/search-form-advancedQuery.vue +0 -653
  138. package/packages/super-grid/src/search-form-dialog.vue +0 -79
  139. package/packages/super-grid/src/search-form-item.vue +0 -400
  140. package/packages/super-grid/src/search-form-number.vue +0 -38
  141. package/packages/super-grid/src/search-form-open.vue +0 -165
  142. package/packages/super-grid/src/search-form-ordinarySearch.vue +0 -191
  143. package/packages/super-grid/src/search-form.vue +0 -637
  144. package/packages/super-grid/src/search-methods.js +0 -454
  145. package/packages/super-grid/src/selection-column.vue +0 -43
  146. package/packages/super-grid/src/store.js +0 -3
  147. package/packages/super-grid/src/super-grid-service.js +0 -562
  148. package/packages/super-grid/src/super-grid.vue +0 -2850
  149. package/packages/super-grid/src/utils.js +0 -762
  150. package/packages/super-grid/src/view-image-dialog.vue +0 -130
  151. package/packages/super-nine-grid/index.js +0 -7
  152. package/packages/super-nine-grid/src/apis.js +0 -103
  153. package/packages/super-nine-grid/src/custom-formatter.js +0 -66
  154. package/packages/super-nine-grid/src/formatter.js +0 -132
  155. package/packages/super-nine-grid/src/search-form-number.vue +0 -38
  156. package/packages/super-nine-grid/src/search-form.vue +0 -430
  157. package/packages/super-nine-grid/src/search-methods.js +0 -134
  158. package/packages/super-nine-grid/src/store.js +0 -3
  159. package/packages/super-nine-grid/src/super-grid-service.js +0 -91
  160. package/packages/super-nine-grid/src/super-nine-grid.vue +0 -872
  161. package/packages/super-nine-grid/src/utils.js +0 -261
  162. package/packages/svg-icon/index.js +0 -6
  163. package/packages/svg-icon/src/svg-icon.vue +0 -43
  164. package/packages/utils/utils.js +0 -152
  165. package/packages/utils/value-set.js +0 -86
  166. package/packages/valid-code/index.js +0 -7
  167. package/packages/valid-code/src/valid-code.vue +0 -95
  168. package/packages/workflow-button/index.js +0 -6
  169. package/packages/workflow-button/src/workflow-button.vue +0 -325
  170. package/packages/workflow-history-list/index.js +0 -6
  171. package/packages/workflow-history-list/src/api.js +0 -7
  172. package/packages/workflow-history-list/src/workflow-history-list.vue +0 -185
  173. package/packages/workgroup-tree/index.js +0 -6
  174. package/packages/workgroup-tree/src/workgroup-tree.vue +0 -76
  175. package/packages/workgroup-tree-inline/index.js +0 -6
  176. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +0 -317
  177. package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +0 -43
  178. package/packages/workgroup-user-tree/index.js +0 -6
  179. package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +0 -100
  180. package/packages/workgroup-user-tree-inline/index.js +0 -6
  181. package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +0 -163
  182. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +0 -436
  183. package/packages/year-range-picker/index.js +0 -6
  184. package/packages/year-range-picker/src/year-range-picker.vue +0 -51
  185. package/src/index.js +0 -93
  186. 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,6 +0,0 @@
1
- import WorkflowHistoryList from './src/workflow-history-list.vue'
2
- WorkflowHistoryList.install = function(Vue) {
3
- Vue.component(WorkflowHistoryList.name, WorkflowHistoryList)
4
- }
5
-
6
- export default WorkflowHistoryList
@@ -1,7 +0,0 @@
1
- const apis = {
2
- refresh() {
3
- this.getData()
4
- }
5
- }
6
-
7
- export default apis
@@ -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,6 +0,0 @@
1
- import WorkgroupTree from './src/workgroup-tree.vue'
2
- WorkgroupTree.install = function(Vue) {
3
- Vue.component(WorkgroupTree.name, WorkgroupTree)
4
- }
5
-
6
- export default WorkgroupTree
@@ -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>
@@ -1,6 +0,0 @@
1
- import InlineWorkgroupTree from './src/workgroup-tree-inline.vue'
2
- InlineWorkgroupTree.install = function(Vue) {
3
- Vue.component(InlineWorkgroupTree.name, InlineWorkgroupTree)
4
- }
5
-
6
- export default InlineWorkgroupTree