workflow-editor 0.0.80-up → 0.0.81-up-tmp1

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 (175) hide show
  1. package/dist/index.full.min.js +3237 -0
  2. package/dist/style.css +1 -0
  3. package/es/_virtual/FileSaver.min.mjs +4 -0
  4. package/es/_virtual/___vite-browser-external.mjs +6 -0
  5. package/es/_virtual/__vite-browser-external.mjs +4 -0
  6. package/es/_virtual/_commonjsHelpers.mjs +30 -0
  7. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  8. package/es/_virtual/clipboard.mjs +4 -0
  9. package/es/_virtual/dayjs.min.mjs +4 -0
  10. package/es/_virtual/index.mjs +4 -0
  11. package/es/_virtual/nprogress.mjs +4 -0
  12. package/es/_virtual/prism.mjs +4 -0
  13. package/es/_virtual/sax.mjs +4 -0
  14. package/es/_virtual/string_decoder.mjs +4 -0
  15. package/es/_virtual/tinymce.mjs +4 -0
  16. package/es/_virtual/weekOfYear.mjs +4 -0
  17. package/es/index.mjs +20 -0
  18. package/es/plugins/formValidatorUtil.mjs +391 -0
  19. package/es/plugins/index.mjs +9 -0
  20. package/es/style.css +1 -0
  21. package/es/vite.svg +1 -0
  22. package/es/workflow-editor/index.mjs +14 -0
  23. package/lib/_virtual/FileSaver.min.cjs +1 -0
  24. package/lib/_virtual/___vite-browser-external.cjs +1 -0
  25. package/lib/_virtual/__vite-browser-external.cjs +1 -0
  26. package/lib/_virtual/_commonjsHelpers.cjs +1 -0
  27. package/lib/_virtual/_plugin-vue_export-helper.cjs +1 -0
  28. package/lib/_virtual/clipboard.cjs +1 -0
  29. package/lib/_virtual/dayjs.min.cjs +1 -0
  30. package/lib/_virtual/index.cjs +1 -0
  31. package/lib/_virtual/nprogress.cjs +1 -0
  32. package/lib/_virtual/prism.cjs +1 -0
  33. package/lib/_virtual/sax.cjs +1 -0
  34. package/lib/_virtual/string_decoder.cjs +1 -0
  35. package/lib/_virtual/tinymce.cjs +1 -0
  36. package/lib/_virtual/weekOfYear.cjs +1 -0
  37. package/lib/index.cjs +1 -0
  38. package/lib/plugins/formValidatorUtil.cjs +1 -0
  39. package/lib/plugins/index.cjs +1 -0
  40. package/lib/style.css +1 -0
  41. package/lib/workflow-editor/index.cjs +1 -0
  42. package/package.json +5 -3
  43. package/vite.config.js +44 -10
  44. package/lib/401-d594cba0.js +0 -101
  45. package/lib/404-c88c55f1.js +0 -26
  46. package/lib/authredirect-ae6e75b4.js +0 -10
  47. package/lib/iframe-page-f8737ba6.js +0 -33
  48. package/lib/index-369eae4a.js +0 -13
  49. package/lib/index-9b4d762a.js +0 -31387
  50. package/lib/tab-content-iframe-index-5455fdb0.js +0 -33
  51. package/lib/tab-content-index-5d75237c.js +0 -1241
  52. package/lib/tache-subprocess-history-26084654.js +0 -56
  53. package/lib/workflow-editor.css +0 -1
  54. package/lib/workflow-editor.js +0 -5
  55. package/lib/workflow-editor.umd.cjs +0 -85
  56. package/packages/index.js +0 -34
  57. package/packages/plugins/formValidatorUtil.js +0 -723
  58. package/packages/plugins/index.js +0 -8
  59. package/packages/workflow-editor/index.js +0 -14
  60. package/packages/workflow-editor/src/api.js +0 -7
  61. package/packages/workflow-editor/src/assets/tab-select.png +0 -0
  62. package/packages/workflow-editor/src/assets/tab-selectWhite.png +0 -0
  63. package/packages/workflow-editor/src/assets/wf-editor-icons.js +0 -2
  64. package/packages/workflow-editor/src/constant.js +0 -8
  65. package/packages/workflow-editor/src/json-object-templates/auto-task.js +0 -70
  66. package/packages/workflow-editor/src/json-object-templates/copy-task.js +0 -72
  67. package/packages/workflow-editor/src/json-object-templates/decision.js +0 -11
  68. package/packages/workflow-editor/src/json-object-templates/end.js +0 -14
  69. package/packages/workflow-editor/src/json-object-templates/fork.js +0 -10
  70. package/packages/workflow-editor/src/json-object-templates/human-decision.js +0 -9
  71. package/packages/workflow-editor/src/json-object-templates/human-task.js +0 -208
  72. package/packages/workflow-editor/src/json-object-templates/join.js +0 -10
  73. package/packages/workflow-editor/src/json-object-templates/process.js +0 -99
  74. package/packages/workflow-editor/src/json-object-templates/start.js +0 -13
  75. package/packages/workflow-editor/src/json-object-templates/subprocess.js +0 -31
  76. package/packages/workflow-editor/src/json-object-templates/transition.js +0 -26
  77. package/packages/workflow-editor/src/main/admin-save-dialog.vue +0 -67
  78. package/packages/workflow-editor/src/main/canvas.vue +0 -493
  79. package/packages/workflow-editor/src/main/context-menu.vue +0 -147
  80. package/packages/workflow-editor/src/main/icon-svg.vue +0 -32
  81. package/packages/workflow-editor/src/main/selection-region.vue +0 -66
  82. package/packages/workflow-editor/src/main/tache-history-tooltip.vue +0 -38
  83. package/packages/workflow-editor/src/main/tache-name-input.vue +0 -19
  84. package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +0 -40
  85. package/packages/workflow-editor/src/main/toolbox.vue +0 -60
  86. package/packages/workflow-editor/src/main/wf-history-canvas.vue +0 -309
  87. package/packages/workflow-editor/src/process-json.js +0 -624
  88. package/packages/workflow-editor/src/process-service.js +0 -69
  89. package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +0 -81
  90. package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +0 -155
  91. package/packages/workflow-editor/src/properties-editors/auto-task.vue +0 -74
  92. package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +0 -568
  93. package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +0 -320
  94. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +0 -34
  95. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +0 -239
  96. package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +0 -81
  97. package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +0 -242
  98. package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +0 -23
  99. package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +0 -117
  100. package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +0 -88
  101. package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +0 -143
  102. package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +0 -149
  103. package/packages/workflow-editor/src/properties-editors/common/notice.vue +0 -108
  104. package/packages/workflow-editor/src/properties-editors/common/reminder.vue +0 -272
  105. package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +0 -92
  106. package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +0 -66
  107. package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +0 -354
  108. package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +0 -68
  109. package/packages/workflow-editor/src/properties-editors/common/task-title.vue +0 -165
  110. package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +0 -275
  111. package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +0 -426
  112. package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +0 -272
  113. package/packages/workflow-editor/src/properties-editors/common/variables.vue +0 -138
  114. package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +0 -90
  115. package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +0 -155
  116. package/packages/workflow-editor/src/properties-editors/copy-task.vue +0 -95
  117. package/packages/workflow-editor/src/properties-editors/decision.vue +0 -95
  118. package/packages/workflow-editor/src/properties-editors/fork.vue +0 -77
  119. package/packages/workflow-editor/src/properties-editors/human-decision.vue +0 -49
  120. package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +0 -62
  121. package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +0 -184
  122. package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +0 -359
  123. package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +0 -256
  124. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +0 -405
  125. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +0 -257
  126. package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +0 -430
  127. package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +0 -206
  128. package/packages/workflow-editor/src/properties-editors/human-task/events.vue +0 -60
  129. package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +0 -224
  130. package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +0 -499
  131. package/packages/workflow-editor/src/properties-editors/human-task.vue +0 -116
  132. package/packages/workflow-editor/src/properties-editors/join.vue +0 -49
  133. package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +0 -336
  134. package/packages/workflow-editor/src/properties-editors/process/events.vue +0 -79
  135. package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +0 -68
  136. package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +0 -106
  137. package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +0 -28
  138. package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +0 -88
  139. package/packages/workflow-editor/src/properties-editors/process.vue +0 -115
  140. package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +0 -201
  141. package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +0 -26
  142. package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +0 -216
  143. package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +0 -66
  144. package/packages/workflow-editor/src/properties-editors/subprocess.vue +0 -80
  145. package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +0 -53
  146. package/packages/workflow-editor/src/properties-editors/transition.vue +0 -75
  147. package/packages/workflow-editor/src/properties-editors/user-condition.js +0 -183
  148. package/packages/workflow-editor/src/store/getters.js +0 -33
  149. package/packages/workflow-editor/src/store/workflow-editor.js +0 -153
  150. package/packages/workflow-editor/src/taches/auto-task.vue +0 -99
  151. package/packages/workflow-editor/src/taches/common-methods.js +0 -21
  152. package/packages/workflow-editor/src/taches/copy-task.vue +0 -99
  153. package/packages/workflow-editor/src/taches/custom-task.vue +0 -88
  154. package/packages/workflow-editor/src/taches/decision.vue +0 -102
  155. package/packages/workflow-editor/src/taches/end.vue +0 -76
  156. package/packages/workflow-editor/src/taches/fork.vue +0 -102
  157. package/packages/workflow-editor/src/taches/human-decision.vue +0 -102
  158. package/packages/workflow-editor/src/taches/human-task.vue +0 -113
  159. package/packages/workflow-editor/src/taches/join.vue +0 -91
  160. package/packages/workflow-editor/src/taches/joint.vue +0 -177
  161. package/packages/workflow-editor/src/taches/start.vue +0 -76
  162. package/packages/workflow-editor/src/taches/subprocess.vue +0 -99
  163. package/packages/workflow-editor/src/taches/tache-resizer.vue +0 -80
  164. package/packages/workflow-editor/src/transitions/broken-line.vue +0 -91
  165. package/packages/workflow-editor/src/transitions/curve-line.vue +0 -91
  166. package/packages/workflow-editor/src/transitions/straight-line.vue +0 -26
  167. package/packages/workflow-editor/src/transitions/transition.vue +0 -209
  168. package/packages/workflow-editor/src/transitions/virtual-transition.vue +0 -43
  169. package/packages/workflow-editor/src/util.js +0 -499
  170. package/packages/workflow-editor/src/workflow-editor.vue +0 -852
  171. package/packages/workflow-editor/src/workflow-history.vue +0 -153
  172. package/src/i18n/i18n.js +0 -16
  173. package/src/i18n/langs/cn.js +0 -521
  174. package/src/i18n/langs/en.js +0 -529
  175. /package/{public → dist}/vite.svg +0 -0
@@ -1,499 +0,0 @@
1
- <template>
2
- <el-dialog
3
- :show-close="true"
4
- :append-to-body="true"
5
- style="width: 100%"
6
- :title="$t('workflowEditor.condition.combinationCondition')"
7
- model-value
8
- @close="closeButtonSetting"
9
- >
10
- <div style="overflow-y: auto; max-height: 500px">
11
- <div class="operation-area">
12
- <el-button size="small" type="primary" @click="savebuttonSetting">
13
- <span> {{ $t('workflowEditorPublicModel.save') }}</span>
14
- </el-button>
15
- </div>
16
- <div>
17
- <el-card class="box-card" shadow="never">
18
- <template #header>
19
- <div class="clearfix">
20
- <span>{{ $t('workflowEditor.condition.personnelScope') }}</span>
21
- </div>
22
- </template>
23
- <div>
24
- <common-user-condition v-model="myUserCondition" used-in="transactor" />
25
- </div>
26
- </el-card>
27
- <el-card class="box-card" shadow="never">
28
- <template #header>
29
- <div class="clearfix">
30
- <span>{{ $t('workflowEditor.condition.mainTableConditions') }}</span>
31
- </div>
32
- </template>
33
- <div>
34
- <additional-condition v-model="myParentCondition" />
35
- </div>
36
- </el-card>
37
- <el-card v-if="buttonType !== 'notEmpty' && buttonType !== 'add'" class="box-card" shadow="never">
38
- <template #header>
39
- <div>
40
- <span>{{ $t('workflowEditor.condition.subtableCondition') }}</span>
41
- </div>
42
- </template>
43
- <div>
44
- <el-row style="padding-bottom: 8px">
45
- <el-button type="primary" size="small" plain icon="CirclePlus" @click="add">
46
- {{ $t('workflowEditorPublicModel.add') }}
47
- </el-button>
48
- <el-button type="primary" size="small" plain icon="Delete" @click="remove">
49
- {{ $t('workflowEditorPublicModel.delete') }}
50
- </el-button>
51
- </el-row>
52
- <el-table
53
- id="tableDataDialog"
54
- ref="table"
55
- :data="tableData"
56
- border
57
- style="width: 100%"
58
- highlight-current-row
59
- @current-change="handleCurrentChange"
60
- >
61
- <el-table-column prop="leftBracket" label="(" width="90">
62
- <template v-slot="scope">
63
- <el-select v-model="scope.row.leftBracket" size="small" clearable @focus="selectRow(scope.row)">
64
- <el-option label="" value="" />
65
- <el-option label="(" value="(" />
66
- <el-option label="((" value="((" />
67
- <el-option label="(((" value="(((" />
68
- </el-select>
69
- </template>
70
- </el-table-column>
71
- <el-table-column :label="$t('workflowEditor.common.fieldName')" width="200">
72
- <template v-slot="scope">
73
- <el-select
74
- v-model="scope.row.propName"
75
- :filter-method="searchField"
76
- size="small"
77
- clearable
78
- filterable
79
- @focus="selectRow(scope.row)"
80
- @change="changeFieldName(scope.$index)"
81
- >
82
- <el-option v-for="item in attributeArr" :key="item.value" :label="item.label" :value="item.value" />
83
- </el-select>
84
- </template>
85
- </el-table-column>
86
- <el-table-column :label="$t('workflowEditor.common.operator')" width="110">
87
- <template v-slot="scope">
88
- <el-select v-model="scope.row.operator" size="small" clearable @focus="selectRow(scope.row)">
89
- <el-option
90
- v-for="option in operationArr[scope.$index]"
91
- :key="option.name"
92
- :label="option.label"
93
- :value="option.name"
94
- />
95
- </el-select>
96
- </template>
97
- </el-table-column>
98
- <el-table-column :label="$t('workflowEditor.common.value')">
99
- <template v-slot="scope">
100
- <el-select
101
- v-if="!scope.row.propValueType"
102
- v-model="scope.row.propValueType"
103
- size="small"
104
- @focus="selectRow(scope.row)"
105
- >
106
- <el-option :label="$t('workflowEditor.condition.fillInManually')" value="input" />
107
- <el-option :label="$t('workflowEditor.condition.environmentVariable')" value="context" />
108
- <el-option :label="$t('workflowEditor.condition.requestParameters')" value="request" />
109
- <el-option :label="$t('workflowEditor.condition.mainTableField')" value="obj" />
110
- <el-option :label="$t('workflowEditor.condition.databaseFields')" value="subObj" />
111
- <el-option :label="$t('workflowEditor.condition.taskFields')" value="task" />
112
- <el-option :label="$t('workflowEditor.condition.systemParameter')" value="custom" />
113
- </el-select>
114
- <el-select
115
- v-if="scope.row.propValueType === 'context'"
116
- v-model="scope.row.propValue"
117
- clearable
118
- size="small"
119
- :title="scope.row.propValue"
120
- filterable
121
- default-first-option
122
- allow-create
123
- @change="changePropValue(scope.$index)"
124
- @focus="selectRow(scope.row)"
125
- >
126
- <el-option :label="$t('workflowEditor.condition.currentTime')" value="${context.currentTime}" />
127
- <el-option
128
- :label="$t('workflowEditor.condition.currentTransactor')"
129
- value="${context.currentTransactor}"
130
- />
131
- <el-option
132
- :label="$t('workflowEditor.condition.currentTransactorName')"
133
- value="${context.currentTransactorName}"
134
- />
135
- <el-option
136
- :label="$t('workflowEditor.condition.currentTransactorId')"
137
- value="${context.currentTransactorId}"
138
- />
139
- <el-option
140
- :label="$t('workflowEditor.condition.currentTransactorMainDepartmentId')"
141
- value="${context.currentTransactorMainDepartmentId}"
142
- />
143
- <el-option
144
- :label="$t('workflowEditor.condition.currentTransactorMainDepartment')"
145
- value="${context.currentTransactorMainDepartment}"
146
- />
147
- <el-option
148
- :label="$t('workflowEditor.condition.currentTransactorRoleId')"
149
- value="${context.currentTransactorRoleId}"
150
- />
151
- <el-option
152
- :label="$t('workflowEditor.condition.currentTransactorRole')"
153
- value="${context.currentTransactorRole}"
154
- />
155
- <el-option
156
- :label="$t('workflowEditor.condition.currentTransactorWorkGroupId')"
157
- value="${context.currentTransactorWorkGroupId}"
158
- />
159
- <el-option
160
- :label="$t('workflowEditor.condition.currentTransactorWorkGroup')"
161
- value="${context.currentTransactorWorkGroup}"
162
- />
163
- </el-select>
164
- <el-select
165
- v-if="scope.row.propValueType === 'task'"
166
- v-model="scope.row.propValue"
167
- clearable
168
- size="small"
169
- :title="scope.row.propValue"
170
- filterable
171
- default-first-option
172
- allow-create
173
- @change="changePropValue(scope.$index)"
174
- @focus="selectRow(scope.row)"
175
- >
176
- <el-option :label="$t('workflowEditor.condition.currentHandler')" value="${task.transactor}" />
177
- <el-option :label="$t('workflowEditor.condition.currentTaskClient')" value="${task.trustor}" />
178
- <el-option :label="$t('workflowEditor.condition.currentAssignor')" value="${task.assigner}" />
179
- <el-option :label="$t('workflowEditor.condition.linkName')" value="${task.name}" />
180
- <el-option :label="$t('workflowEditor.condition.linkCode')" value="${task.nodeId}" />
181
- </el-select>
182
- <el-date-picker
183
- v-if="scope.row.dataType === 'DATE' && scope.row.propValueType === 'input'"
184
- v-model="scope.row.propValue"
185
- size="small"
186
- clearable
187
- value-format="YYYY-MM-DD"
188
- :title="scope.row.propValue"
189
- type="date"
190
- @change="changePropValue(scope.$index)"
191
- />
192
- <el-date-picker
193
- v-if="scope.row.dataType === 'TIME' && scope.row.propValueType === 'input'"
194
- v-model="scope.row.propValue"
195
- size="small"
196
- :title="scope.row.propValue"
197
- clearable
198
- value-format="YYYY-MM-DD HH:mm:ss"
199
- type="datetime"
200
- @change="changePropValue(scope.$index)"
201
- />
202
- <el-input
203
- v-if="
204
- scope.row.dataType !== 'TIME' &&
205
- scope.row.dataType !== 'DATE' &&
206
- scope.row.propValueType === 'input'
207
- "
208
- v-model.trim="scope.row.propValue"
209
- :title="scope.row.propValue"
210
- clearable
211
- size="small"
212
- @change="changePropValue(scope.$index)"
213
- />
214
- <el-input
215
- v-if="scope.row.propValueType === 'request'"
216
- v-model.trim="scope.row.propValue"
217
- :title="scope.row.propValue"
218
- clearable
219
- size="small"
220
- @change="changePropValue(scope.$index)"
221
- />
222
- <el-select
223
- v-if="scope.row.propValueType === 'subObj'"
224
- v-model="scope.row.propValue"
225
- :title="scope.row.propValue"
226
- :filter-method="searchField"
227
- size="small"
228
- clearable
229
- filterable
230
- @change="changePropValue(scope.$index)"
231
- >
232
- <el-option
233
- v-for="item in attributeArr"
234
- :key="'${subObj.' + item.value + '}'"
235
- :label="item.label"
236
- :value="'${subObj.' + item.value + '}'"
237
- />
238
- </el-select>
239
- <el-select
240
- v-if="scope.row.propValueType === 'obj'"
241
- v-model="scope.row.propValue"
242
- :title="scope.row.propValue"
243
- size="small"
244
- clearable
245
- filterable
246
- @change="changePropValue(scope.$index)"
247
- >
248
- <el-option
249
- v-for="item in parentAttributeArr"
250
- :key="'${obj.' + item.value + '}'"
251
- :label="item.label"
252
- :value="'${obj.' + item.value + '}'"
253
- />
254
- </el-select>
255
- <el-select
256
- v-if="scope.row.propValueType === 'custom'"
257
- v-model="scope.row.propValue"
258
- :title="scope.row.propValue"
259
- size="small"
260
- clearable
261
- filterable
262
- @change="changePropValue(scope.$index)"
263
- >
264
- <el-option
265
- v-for="key in propSettingKeyList"
266
- :key="'${custom.' + key + '}'"
267
- :label="key"
268
- :value="'${custom.' + key + '}'"
269
- />
270
- </el-select>
271
- </template>
272
- </el-table-column>
273
- <el-table-column prop="rightBracket" label=")" width="90" @focus="selectRow(scope.row)">
274
- <template v-slot="scope">
275
- <el-select v-model="scope.row.rightBracket" size="small" clearable>
276
- <el-option label="" value="" />
277
- <el-option label=")" value=")" />
278
- <el-option label="))" value="))" />
279
- <el-option label=")))" value=")))" />
280
- </el-select>
281
- </template>
282
- </el-table-column>
283
- <el-table-column :label="$t('workflowEditorPublicModel.andOr')" prop="logicOperator" width="110">
284
- <template v-slot="scope">
285
- <el-select v-model="scope.row.logicOperator" size="small" clearable @focus="selectRow(scope.row)">
286
- <el-option :label="$t('workflowEditor.process.perhaps')" value="condition.operator.or" />
287
- <el-option :label="$t('workflowEditor.process.also')" value="condition.operator.and" />
288
- </el-select>
289
- </template>
290
- </el-table-column>
291
- </el-table>
292
- </div>
293
- </el-card>
294
- </div>
295
- </div>
296
- </el-dialog>
297
- </template>
298
- <script>
299
- // import modulePageService from '@/subsystems/mms/api/module-page'
300
- import componentsConfigUtil from './componentsConfigUtil'
301
- import AdditionalCondition from '../common/additional-condition'
302
- import CommonUserCondition from '../common/common-user-condition'
303
- import { mapGetters } from 'vuex'
304
-
305
- export default {
306
- components: {
307
- AdditionalCondition,
308
- CommonUserCondition
309
- },
310
- props: {
311
- conditionList: {
312
- type: [Array, String],
313
- default: null
314
- },
315
- userCondition: {
316
- type: String,
317
- default: null
318
- },
319
- parentCondition: {
320
- type: String,
321
- default: null
322
- },
323
- attributeMap: {
324
- type: Object,
325
- default: null
326
- },
327
- buttonType: {
328
- type: Object,
329
- default: null
330
- }
331
- },
332
- data() {
333
- let myUserCondition
334
- if (this.userCondition && this.userCondition !== '') {
335
- myUserCondition = this.userCondition
336
- }
337
- let myParentCondition
338
- if (this.parentCondition && this.parentCondition !== '') {
339
- myParentCondition = this.parentCondition
340
- }
341
- return {
342
- myUserCondition,
343
- myParentCondition,
344
- tableData: null,
345
- attributeArr: [],
346
- fieldMap: {},
347
- fieldNameMap: {},
348
- queryList: [],
349
- operationArr: [],
350
- parentAttributeArr: [],
351
- dialogVisible: true
352
- }
353
- },
354
- created() {
355
- this.getAttributeArr()
356
- // if (this.tableData === null || this.tableData === undefined) {
357
- // this.add()
358
- // }
359
- },
360
- computed: {
361
- ...mapGetters('wfEditor', ['propSettingKeyList'])
362
- },
363
- mounted() {
364
- if (this.conditionList) {
365
- if (typeof this.conditionList === 'object') {
366
- this.tableData = this.conditionList
367
- } else {
368
- this.tableData = this.xmlToData(this.conditionList)
369
- }
370
- this.getOperatorsArr(this.tableData)
371
- }
372
- },
373
- methods: {
374
- ...componentsConfigUtil,
375
- // 添加
376
- add() {
377
- if (!this.tableData) {
378
- this.tableData = []
379
- }
380
- this.tableData.push({
381
- leftBracket: '',
382
- propName: '',
383
- operator: '',
384
- propValue: '',
385
- rightBracket: '',
386
- logicOperator: 'condition.operator.or',
387
- dataType: '',
388
- propDbName: ''
389
- })
390
- this.operationArr.push([])
391
- },
392
- // 删除
393
- remove() {
394
- if (this.currentRow === null) {
395
- this.$alert(this.$t('workflowEditorMessage.pleaseSelectARow'))
396
- return
397
- }
398
- let index = this.getRowIndex(this.currentRow)
399
- this.tableData.splice(index, 1)
400
- if (this.tableData.length > 0) {
401
- index = index <= this.tableData.length - 1 ? index : this.tableData.length - 1
402
- this.$refs.table.setCurrentRow(this.tableData[index])
403
- }
404
- },
405
- // 改变选择的属性
406
- changeFieldName(index) {
407
- // const selectData = this.$refs.table.store.states.data
408
- const propName = this.currentRow.propName
409
- const item = this.fieldMap[propName]
410
- if (item) {
411
- this.tableData[index].dataType = item.type
412
- this.tableData[index].propDbName = item.propDbName
413
- }
414
- this.operationArr[index] = this.getOperators(item)
415
- },
416
- // 根据code获取属性
417
- getAttributeArr() {
418
- if (this.attributeMap && this.attributeMap.attributeArr) {
419
- this.attributeArr = this.attributeMap.attributeArr
420
- this.queryList = this.attributeMap.attributeArr
421
- this.fieldMap = this.attributeMap.fieldMap
422
- this.fieldNameMap = this.attributeMap.fieldNameMap
423
- this.parentAttributeArr = this.attributeMap.parentAttributeArr
424
- }
425
- },
426
- // 选择行
427
- selectRow(row) {
428
- this.attributeArr = this.queryList
429
- this.$refs.table.setCurrentRow(row)
430
- },
431
- handleCurrentChange(val) {
432
- this.currentRow = val
433
- },
434
- // 属性搜索方法
435
- searchField(query) {
436
- if (query) {
437
- this.attributeArr = this.queryList.filter((item) => {
438
- return item.label.indexOf(query) > -1 || item.value.indexOf(query) > -1
439
- })
440
- }
441
- },
442
- getRowIndex(row) {
443
- for (let i = 0; i < this.tableData.length; i++) {
444
- if (this.tableData[i].propName === row.propName) {
445
- return i
446
- }
447
- }
448
- return -1
449
- },
450
- // 保存关闭方法
451
- savebuttonSetting() {
452
- if (this.tableData && this.tableData.length > 0) {
453
- for (var i = 0; i < this.tableData.length; i++) {
454
- const item = this.tableData[i]
455
- if (!item.propName) {
456
- this.$alert(this.$t('workflowEditorMessage.blankFieldNameOrValue'))
457
- return
458
- }
459
- }
460
- }
461
- const param = {
462
- userCondition: this.myUserCondition,
463
- parentCondition: this.myParentCondition,
464
- condition: this.tableData
465
- }
466
- this.$emit('close', param)
467
- },
468
- closeButtonSetting() {
469
- this.savebuttonSetting()
470
- this.$emit('close', null)
471
- },
472
- changePropValue(index) {
473
- if (this.tableData[index] && this.tableData[index].propValue) {
474
- if (this.tableData[index].propValueType) {
475
- if (this.tableData[index].propValueType === 'request') {
476
- if (this.tableData[index].propValue.indexOf('${request.') === -1) {
477
- this.tableData[index].propValue = '${request.' + this.tableData[index].propValue
478
- }
479
- if (this.tableData[index].propValue.indexOf('}') === -1) {
480
- this.tableData[index].propValue = this.tableData[index].propValue + '}'
481
- }
482
- }
483
- if (this.tableData[index].propValueType === 'input') {
484
- if (this.tableData[index].propValue.indexOf('${input.') === -1) {
485
- this.tableData[index].propValue = '${input.' + this.tableData[index].propValue
486
- }
487
- if (this.tableData[index].propValue.indexOf('}') === -1) {
488
- this.tableData[index].propValue = this.tableData[index].propValue + '}'
489
- }
490
- }
491
- }
492
- } else {
493
- this.tableData[index]['propValueType'] = null
494
- // this.$set(this.tableData[index], 'propValueType', null)
495
- }
496
- }
497
- }
498
- }
499
- </script>
@@ -1,116 +0,0 @@
1
- <template>
2
- <el-dialog
3
- model-value
4
- top="10vh"
5
- :title="$t('workflowEditor.task.linkAttribute')"
6
- :center="true"
7
- append-to-body
8
- class="properties-editor"
9
- @open="$emit('open')"
10
- @opend="$emit('opend')"
11
- @close="$emit('close')"
12
- @closed="$emit('closed')"
13
- >
14
- <el-tabs v-model="activeTab" type="border-card" @tab-click="handleClick">
15
- <el-tab-pane :label="$t('workflowEditor.task.basicProperties')" name="basicProperties">
16
- <basic-properties
17
- v-model:id="model.ref.attr.id"
18
- v-model:name="model.ref.attr.name"
19
- :model="model.ref.basicProperties"
20
- />
21
- </el-tab-pane>
22
- <el-tab-pane :label="$t('workflowEditor.task.settingOfHandler')" name="transactors">
23
- <transactor-settings
24
- :model="model.ref.transactorSettings"
25
- :basic-properties="model.ref.basicProperties"
26
- />
27
- </el-tab-pane>
28
- <el-tab-pane :label="$t('workflowEditor.task.permissionSettings')" name="permissions">
29
- <permission-settings v-model="model.ref.permissionSettings" />
30
- </el-tab-pane>
31
- <el-tab-pane
32
- :label="$t('workflowEditor.task.autoFillInFieldSettings')"
33
- name="autoFilledFields"
34
- >
35
- <auto-filled-fields v-model="model.ref.autoFilledFields" />
36
- </el-tab-pane>
37
- <el-tab-pane :label="$t('workflowEditor.task.reminderSettings')" name="reminders">
38
- <!-- <reminder v-model="model.ref.reminder" /> -->
39
- <notice-reminder
40
- v-model:reminder-value="model.ref.reminder"
41
- :task-notice-value="model.ref.taskNotice"
42
- />
43
- </el-tab-pane>
44
- <el-tab-pane :label="$t('workflowEditor.task.eventProcessing')" name="events">
45
- <events v-model="model.ref.events" />
46
- </el-tab-pane>
47
- <el-tab-pane :label="$t('workflowEditor.task.linkVariable')" name="variables">
48
- <variables v-model="model.ref.variables" />
49
- </el-tab-pane>
50
- </el-tabs>
51
- </el-dialog>
52
- </template>
53
-
54
- <script>
55
- import BasicProperties from './human-task/basic-properties'
56
- import PermissionSettings from './human-task/permission-settings'
57
- import TransactorSettings from './common/transactor-settings'
58
- import AutoFilledFields from './common/auto-filled-fields'
59
- // import Reminder from './common/reminder'
60
- import Variables from './common/variables'
61
- import Events from './human-task/events'
62
- import NoticeReminder from './common/notice-reminder.vue'
63
- export default {
64
- name: 'HumanTaskPropertiesEditor',
65
- components: {
66
- BasicProperties,
67
- TransactorSettings,
68
- PermissionSettings,
69
- AutoFilledFields,
70
- // Reminder,
71
- Events,
72
- Variables,
73
- NoticeReminder
74
- },
75
- props: {
76
- model: {
77
- type: Object,
78
- default: null
79
- }
80
- },
81
- data() {
82
- if (!this.model.ref.taskNotice) {
83
- this.model.ref.taskNotice = {}
84
- }
85
- return {
86
- activeTab: 'basicProperties',
87
- dialogVisible: true
88
- }
89
- },
90
- computed: {
91
- formModel() {
92
- return this.model.ref
93
- }
94
- },
95
- mounted() {
96
- this.$watch('model.ref.attr.id', function (newVal, oldVal) {
97
- this.model.id = newVal
98
- })
99
- this.$watch('model.ref.attr.name', function (newVal, oldVal) {
100
- this.model.name = newVal
101
- })
102
- },
103
- methods: {
104
- handleClick(tab, event) {
105
- // console.log(tab, event)
106
- }
107
- }
108
- }
109
- </script>
110
-
111
- <style scoped>
112
- /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
113
- .properties-editor :deep(.el-dialog__body) {
114
- padding-top: 0;
115
- }
116
- </style>
@@ -1,49 +0,0 @@
1
- <template>
2
- <el-dialog
3
- model-value
4
- :title="$t('workflowEditor.task.convergedProperties')"
5
- :center="true"
6
- append-to-body
7
- @open="$emit('open')"
8
- @opend="$emit('opend')"
9
- @close="$emit('close')"
10
- @closed="$emit('closed')"
11
- >
12
- <el-form>
13
- <el-form-item :label="$t('workflowEditor.task.name')" label-width="40px">
14
- <el-input v-model="formModel.attr.name" />
15
- </el-form-item>
16
- </el-form>
17
- </el-dialog>
18
- </template>
19
-
20
- <script>
21
- export default {
22
- name: 'ForkPropertiesEditor',
23
- props: {
24
- model: {
25
- type: Object,
26
- default: null
27
- }
28
- },
29
- data(){
30
- return {
31
- dialogVisible: true
32
- }
33
- },
34
- computed: {
35
- formModel() {
36
- return this.model.ref
37
- }
38
- },
39
- mounted() {
40
- this.$watch('model.ref.attr.name', function(newVal) {
41
- this.model.name = newVal
42
- })
43
- }
44
- }
45
- </script>
46
-
47
- <style lang="scss" scoped>
48
-
49
- </style>