workflow-editor 0.0.81-up-tmp18 → 0.0.81-up-tmp20

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/es/style.css CHANGED
@@ -125,6 +125,20 @@ section[data-v-14c5e870] {
125
125
  }
126
126
  .canvas[data-v-14c5e870] .draggable {
127
127
  cursor: default;
128
+ }h3[data-v-0d941719] {
129
+ color: #999999;
130
+ margin: 0;
131
+ padding: 0;
132
+ font-weight: bold;
133
+ font-size: 18px;
134
+ }
135
+ .el-button[data-v-0d941719] {
136
+ margin: 6px 0;
137
+ min-width: 110px;
138
+ padding: 9px 15px;
139
+ }
140
+ .el-button i[data-v-0d941719] {
141
+ padding-right: 4px;
128
142
  }
129
143
  #svg{
130
144
  /* border:1px solid red; */
@@ -172,51 +186,6 @@ g text{
172
186
  .current-tache text{
173
187
  fill: white
174
188
  }
175
- h3[data-v-0d941719] {
176
- color: #999999;
177
- margin: 0;
178
- padding: 0;
179
- font-weight: bold;
180
- font-size: 18px;
181
- }
182
- .el-button[data-v-0d941719] {
183
- margin: 6px 0;
184
- min-width: 110px;
185
- padding: 9px 15px;
186
- }
187
- .el-button i[data-v-0d941719] {
188
- padding-right: 4px;
189
- }
190
- #svg{
191
- /* border:1px solid red; */
192
- background: white;
193
- background-image:
194
- linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
195
- linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
196
- linear-gradient(#e5e5e5 1px, transparent 0),
197
- linear-gradient(90deg,#e5e5e5 1px, transparent 0);
198
- background-size:
199
- 15px 15px,
200
- 15px 15px,
201
- 75px 75px,
202
- 75px 75px;
203
- }
204
- g{
205
- font-size: 16px;
206
- }
207
- g text{
208
- dominant-baseline: middle;
209
- }
210
- .selected{
211
- fill: #fff;
212
- stroke: #f00;
213
- stroke-width: 2;
214
- }
215
- .task-tache{
216
- fill: #fff;
217
- stroke: #666;
218
- stroke-width: 2;
219
- }
220
189
 
221
190
  .svg-icon {
222
191
  width: 1em;
@@ -254,11 +223,47 @@ li[data-v-7e8a1cf6] {
254
223
  li[data-v-7e8a1cf6] {
255
224
  list-style-type: none;
256
225
  }
226
+ #svg{
227
+ /* border:1px solid red; */
228
+ background: white;
229
+ background-image:
230
+ linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
231
+ linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
232
+ linear-gradient(#e5e5e5 1px, transparent 0),
233
+ linear-gradient(90deg,#e5e5e5 1px, transparent 0);
234
+ background-size:
235
+ 15px 15px,
236
+ 15px 15px,
237
+ 75px 75px,
238
+ 75px 75px;
239
+ }
240
+ g{
241
+ font-size: 16px;
242
+ }
243
+ g text{
244
+ dominant-baseline: middle;
245
+ }
246
+ .selected{
247
+ fill: #fff;
248
+ stroke: #f00;
249
+ stroke-width: 2;
250
+ }
251
+ .task-tache{
252
+ fill: #fff;
253
+ stroke: #666;
254
+ stroke-width: 2;
255
+ }
256
+
257
257
  .end{
258
258
  stroke-width: 0;
259
259
  fill:#fff;
260
260
  }
261
261
 
262
+ .start{
263
+ stroke-width: 0;
264
+ fill:#fff;
265
+ }
266
+
262
267
  .decision{
263
268
  stroke-width: 0;
264
269
  fill:#fff;
@@ -274,11 +279,14 @@ li[data-v-7e8a1cf6] {
274
279
  fill:#fff;
275
280
  }
276
281
 
277
- .start{
282
+ .human-decision{
278
283
  stroke-width: 0;
279
284
  fill:#fff;
280
285
  }
281
- .tooltip[data-v-ac799913] {
286
+ #_subprocess-content[data-v-2b195c05] {
287
+ width: 100%;
288
+ height: calc(100vh - 200px);
289
+ }.tooltip[data-v-ac799913] {
282
290
  position: absolute;
283
291
  background: #fff;
284
292
  min-width: 150px;
@@ -292,22 +300,7 @@ li[data-v-7e8a1cf6] {
292
300
  font-size: 14px;
293
301
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
294
302
  word-break: break-all;
295
- }#_subprocess-content[data-v-2b195c05] {
296
- width: 100%;
297
- height: calc(100vh - 200px);
298
303
  }
299
- .human-decision{
300
- stroke-width: 0;
301
- fill:#fff;
302
- }
303
-
304
- .virtual-transition{
305
- stroke-width: 2;
306
- stroke:#000;
307
- stroke-dasharray: 2 2;
308
- fill: none;
309
- }
310
-
311
304
  .transition[data-v-a1576cad] {
312
305
  stroke-width: 2;
313
306
  stroke: #666;
@@ -326,11 +319,6 @@ li[data-v-7e8a1cf6] {
326
319
  .no-events[data-v-a1576cad] {
327
320
  pointer-events: none;
328
321
  }
329
-
330
- /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
331
- .properties-editor[data-v-1651d82a] .el-dialog__body {
332
- padding-top: 0;
333
- }
334
322
 
335
323
  .selection-region{
336
324
  stroke: blue;
@@ -346,6 +334,18 @@ li[data-v-7e8a1cf6] {
346
334
  pointer-events:none;
347
335
  }
348
336
 
337
+ /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
338
+ .properties-editor[data-v-1651d82a] .el-dialog__body {
339
+ padding-top: 0;
340
+ }
341
+
342
+ .virtual-transition{
343
+ stroke-width: 2;
344
+ stroke:#000;
345
+ stroke-dasharray: 2 2;
346
+ fill: none;
347
+ }
348
+
349
349
  /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
350
350
  .properties-editor[data-v-0e44fe8c] .el-dialog__body{
351
351
  padding-top: 0
@@ -381,20 +381,18 @@ li[data-v-7e8a1cf6] {
381
381
  fill-opacity: 1;
382
382
  }
383
383
 
384
- .control-point[data-v-788fb0ae]{
385
- fill: #fff;
386
- cursor: move;
387
- }
388
- .control-line[data-v-788fb0ae] {
389
- stroke-dasharray: 2 2
390
- }
391
-
392
384
  .resizer{
393
385
  stroke: blue;
394
386
  stroke-width: 1;
395
387
  fill: white;
396
388
  }
397
389
 
390
+ .percent[data-v-a219b06d] {
391
+ margin-left: 10px;
392
+ color: red;
393
+ font-size: 1.2em;
394
+ }
395
+
398
396
  .control-point[data-v-0ff53a0a]{
399
397
  fill: #fff;
400
398
  cursor: move;
@@ -403,10 +401,12 @@ li[data-v-7e8a1cf6] {
403
401
  stroke-dasharray: 2 2
404
402
  }
405
403
 
406
- .percent[data-v-a219b06d] {
407
- margin-left: 10px;
408
- color: red;
409
- font-size: 1.2em;
404
+ .control-point[data-v-788fb0ae]{
405
+ fill: #fff;
406
+ cursor: move;
407
+ }
408
+ .control-line[data-v-788fb0ae] {
409
+ stroke-dasharray: 2 2
410
410
  }
411
411
 
412
412
  .el-checkbox[data-v-c019538f]{
@@ -422,16 +422,16 @@ ul li[data-v-39fac73c] {
422
422
  .sub-li[data-v-39fac73c] {
423
423
  padding-left: 10px;
424
424
  }
425
+ .el-checkbox[data-v-5fb29fef]{
426
+ margin-left: 20px;
427
+ }
428
+
425
429
  .percent[data-v-c1c7385b]{
426
430
  margin-left: 10px;
427
431
  color:red;
428
432
  font-size:1.2em;
429
433
  }
430
434
 
431
- .el-checkbox[data-v-5fb29fef]{
432
- margin-left: 20px;
433
- }
434
-
435
435
  .percent[data-v-6aef99ff]{
436
436
  margin-left: 10px;
437
437
  color:red;
@@ -1,25 +1,25 @@
1
- import { resolveComponent as e, openBlock as t, createElementBlock as s, createVNode as d, withKeys as o, withCtx as l, unref as n } from "vue";
2
- import { Search as r } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
1
+ import { resolveComponent as e, openBlock as t, createElementBlock as s, createVNode as o, withKeys as d, withCtx as l, unref as n } from "vue";
2
+ import { Search as r } from "@element-plus/icons-vue";
3
3
  import "./system-role-tree-inline.vue2.mjs";
4
4
  const i = { name: "InlineSystemRoleTree", props: { multiple: { type: Boolean, default: false } }, data: () => ({ systemRoleTrees: null, filterText: "", defaultProps: { id: "id", label: "label", children: "children", isLeaf: "leaf" }, containBranch: false, tenantInfo: null, tenantNodeId: -1, allSearchNodeIds: [], allExpandNodeIds: [], isClickNode: false, searchValue: null, selectNodeInfo: null }), computed: {}, watch: { filterText(e2) {
5
5
  e2 || (this.searchValue = e2, this.loadRole(this.tenantNodeId, this.tenantNodeId + ""));
6
6
  } }, created() {
7
7
  }, methods: { loadNode(e2, t2) {
8
- var s2, d2 = 0;
9
- 0 === e2.level ? s2 = (d2 = 0) + "" : (d2 = e2.data.id, s2 = e2.data.nodeId);
10
- var o2 = [];
11
- this.$refs.roleTree && (o2 = this.$refs.roleTree.getCheckedKeys()), this.initLoadRole(d2, s2, e2, t2, o2);
12
- }, initLoadRole(e2, t2, s2, d2, o2) {
8
+ var s2, o2 = 0;
9
+ 0 === e2.level ? s2 = (o2 = 0) + "" : (o2 = e2.data.id, s2 = e2.data.nodeId);
10
+ var d2 = [];
11
+ this.$refs.roleTree && (d2 = this.$refs.roleTree.getCheckedKeys()), this.initLoadRole(o2, s2, e2, t2, d2);
12
+ }, initLoadRole(e2, t2, s2, o2, d2) {
13
13
  this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((l2) => {
14
- if (d2(l2), this.$refs.roleTree.updateKeyChildren(t2, l2), 0 === e2) {
14
+ if (o2(l2), this.$refs.roleTree.updateKeyChildren(t2, l2), 0 === e2) {
15
15
  const e3 = l2[0].data;
16
16
  this.tenantInfo = JSON.parse(e3), this.containBranch = l2[0].containBranch, this.loadRole(this.tenantNodeId, this.tenantNodeId + "");
17
17
  }
18
- this.isClickNode ? (this.isClickNode = false, this.checkedNodeAndChildren(s2.data)) : o2 && o2.indexOf(t2) > -1 && this.checkedNodeAndChildren(s2.data);
18
+ this.isClickNode ? (this.isClickNode = false, this.checkedNodeAndChildren(s2.data)) : d2 && d2.indexOf(t2) > -1 && this.checkedNodeAndChildren(s2.data);
19
19
  });
20
- }, loadRole(e2, t2, s2, d2) {
20
+ }, loadRole(e2, t2, s2, o2) {
21
21
  this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((e3) => {
22
- this.$refs.roleTree.updateKeyChildren(t2, e3), this.$refs.roleTree.store.nodesMap[t2] && (this.$refs.roleTree.store.nodesMap[t2].expanded = true), s2 && (-1 === this.allExpandNodeIds.indexOf(t2) && this.allExpandNodeIds.push(t2), this.allExpandNodeIds.length === this.allSearchNodeIds.length && (this.$refs.roleTree.filter(d2), this.allExpandNodeIds = [], this.allSearchNodeIds = []));
22
+ this.$refs.roleTree.updateKeyChildren(t2, e3), this.$refs.roleTree.store.nodesMap[t2] && (this.$refs.roleTree.store.nodesMap[t2].expanded = true), s2 && (-1 === this.allExpandNodeIds.indexOf(t2) && this.allExpandNodeIds.push(t2), this.allExpandNodeIds.length === this.allSearchNodeIds.length && (this.$refs.roleTree.filter(o2), this.allExpandNodeIds = [], this.allSearchNodeIds = []));
23
23
  });
24
24
  }, clickSearch() {
25
25
  this.searchValue = this.filterText, this.filterAppendNodes(this.filterText);
@@ -64,16 +64,16 @@ const i = { name: "InlineSystemRoleTree", props: { multiple: { type: Boolean, de
64
64
  this.selectNodeInfo ? this.$emit("result", this.selectNodeInfo) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditor.pleaseSelectRole") });
65
65
  }, filterNode(e2, t2, s2) {
66
66
  if (e2) {
67
- var d2 = t2.label;
68
- return "ROLE" === t2.nodeType && -1 !== d2.indexOf(e2);
67
+ var o2 = t2.label;
68
+ return "ROLE" === t2.nodeType && -1 !== o2.indexOf(e2);
69
69
  }
70
70
  return true;
71
71
  }, handleNodeClick(e2, t2, s2) {
72
72
  if (this.multiple && this.clickNodeWhenMultiple(e2), "ROLE" === e2.nodeType && !this.multiple) {
73
73
  const t3 = JSON.parse(e2.data);
74
74
  t3.tenantName = this.tenantInfo.tenantName, t3.tenantCode = this.tenantInfo.code;
75
- var d2 = { id: e2.id, name: e2.name, containBranch: this.containBranch, role: t3 };
76
- this.selectNodeInfo = d2;
75
+ var o2 = { id: e2.id, name: e2.name, containBranch: this.containBranch, role: t3 };
76
+ this.selectNodeInfo = o2;
77
77
  }
78
78
  }, clickNodeWhenMultiple(e2) {
79
79
  var t2 = [];
@@ -84,11 +84,11 @@ const i = { name: "InlineSystemRoleTree", props: { multiple: { type: Boolean, de
84
84
  const t3 = e2.childDepartments;
85
85
  t3 && t3.length > 0 ? this.checkedNodeAndChildren(e2) : this.isClickNode = true;
86
86
  }
87
- }, renderContent(e2, { node: t2, data: s2, store: d2 }) {
87
+ }, renderContent(e2, { node: t2, data: s2, store: o2 }) {
88
88
  return s2.nodeType && "ROLE" === s2.nodeType && this.searchValue && s2.label.indexOf(this.searchValue) > -1 ? e2("span", {}, [e2("span", { class: "searchResult" }, t2.label)]) : e2("span", {}, [e2("span", {}, t2.label)]);
89
89
  } } }, h = Object.assign(i, { setup: (i2) => (h2, a) => {
90
90
  const c = e("el-button"), p = e("el-input"), f = e("el-tree");
91
- return t(), s("div", null, [d(p, { modelValue: h2.filterText, "onUpdate:modelValue": a[0] || (a[0] = (e2) => h2.filterText = e2), placeholder: h2.$t("workflowEditorMessage.pleaseEnterTheRoleName"), onKeyup: o(h2.clickSearch, ["enter"]) }, { append: l(() => [d(c, { icon: n(r), onClick: h2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"]), d(f, { ref: "roleTree", props: h2.defaultProps, load: h2.loadNode, lazy: "", "highlight-current": true, "node-key": "nodeId", "show-checkbox": i2.multiple, "check-strictly": "", "render-content": h2.renderContent, "filter-node-method": h2.filterNode, onCheck: h2.handleCheckNode, onNodeClick: h2.handleNodeClick }, null, 8, ["props", "load", "show-checkbox", "render-content", "filter-node-method", "onCheck", "onNodeClick"])]);
91
+ return t(), s("div", null, [o(p, { modelValue: h2.filterText, "onUpdate:modelValue": a[0] || (a[0] = (e2) => h2.filterText = e2), placeholder: h2.$t("workflowEditorMessage.pleaseEnterTheRoleName"), onKeyup: d(h2.clickSearch, ["enter"]) }, { append: l(() => [o(c, { icon: n(r), onClick: h2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"]), o(f, { ref: "roleTree", props: h2.defaultProps, load: h2.loadNode, lazy: "", "highlight-current": true, "node-key": "nodeId", "show-checkbox": i2.multiple, "check-strictly": "", "render-content": h2.renderContent, "filter-node-method": h2.filterNode, onCheck: h2.handleCheckNode, onNodeClick: h2.handleNodeClick }, null, 8, ["props", "load", "show-checkbox", "render-content", "filter-node-method", "onCheck", "onNodeClick"])]);
92
92
  } });
93
93
  export {
94
94
  h as default
@@ -1,44 +1,44 @@
1
- import { resolveComponent as t, openBlock as e, createElementBlock as o, createVNode as l, withCtx as i, unref as a, createTextVNode as n, toDisplayString as s, Fragment as r, renderList as d, createBlock as c, createCommentVNode as u } from "vue";
2
- import { CirclePlus as w, Delete as p } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
1
+ import { resolveComponent as t, openBlock as o, createElementBlock as e, createVNode as l, withCtx as i, unref as a, createTextVNode as n, toDisplayString as s, Fragment as r, renderList as d, createBlock as c, createCommentVNode as u } from "vue";
2
+ import { CirclePlus as w, Delete as p } from "@element-plus/icons-vue";
3
3
  import { getI18n as h } from "../../util.mjs";
4
4
  import f from "./additional-condition-dialog.vue.mjs";
5
5
  import { parseCondition as k, displayCondition as m } from "../common/additional-condition-utils.mjs";
6
6
  const b = { name: "CustomActions", components: { AdditionalConditionDialog: f }, props: { model: { type: Object, default: null } }, data() {
7
7
  const t2 = [];
8
- let e2 = 1;
8
+ let o2 = 1;
9
9
  if (this.model.action)
10
10
  if (Array.isArray(this.model.action))
11
- for (const o2 of this.model.action)
12
- t2.push({ ...o2, id: e2 }), e2++;
11
+ for (const e2 of this.model.action)
12
+ t2.push({ ...e2, id: o2 }), o2++;
13
13
  else
14
- t2.push({ ...this.model.action, id: e2 }), e2++;
15
- return { actions: t2, actionTypes: [{ type: "SAVE", label: h().t("workflowEditor.task.save") }, { type: "SUBMIT", label: h().t("workflowEditor.task.submission") }, { type: "APPROVE", label: h().t("workflowEditor.task.agree") }, { type: "REFUSE", label: h().t("workflowEditor.task.disagree") }, { type: "AGREEMENT", label: h().t("workflowEditor.task.favor") }, { type: "OPPOSE", label: h().t("workflowEditor.task.opposition") }, { type: "KIKEN", label: h().t("workflowEditor.task.waiver") }, { type: "DRAW", label: h().t("workflowEditor.task.receive") }, { type: "ABANDON_DRAW", label: h().t("workflowEditor.task.giveUp") }, { type: "ADD_SIGN", label: h().t("workflowEditor.task.additionalSignature") }, { type: "REMOVE_SIGN", label: h().t("workflowEditor.task.reductionOfSignature") }, { type: "ASSIGN_TASK", label: h().t("workflowEditor.task.assignTask") }, { type: "COPY", label: h().t("workflowEditor.task.copyTask") }, { type: "GET_BACK_BUTTON", label: h().t("workflowEditor.task.retrieveTask") }, { type: "READED", label: h().t("workflowEditor.task.readTask") }, { type: "EXPORT_REPORT", label: h().t("workflowEditor.task.exportReport") }], currentRow: null, count: e2, showAdditionalCondition: false };
14
+ t2.push({ ...this.model.action, id: o2 }), o2++;
15
+ return { actions: t2, actionTypes: [{ type: "SAVE", label: h().t("workflowEditor.task.save") }, { type: "SUBMIT", label: h().t("workflowEditor.task.submission") }, { type: "APPROVE", label: h().t("workflowEditor.task.agree") }, { type: "REFUSE", label: h().t("workflowEditor.task.disagree") }, { type: "AGREEMENT", label: h().t("workflowEditor.task.favor") }, { type: "OPPOSE", label: h().t("workflowEditor.task.opposition") }, { type: "KIKEN", label: h().t("workflowEditor.task.waiver") }, { type: "DRAW", label: h().t("workflowEditor.task.receive") }, { type: "ABANDON_DRAW", label: h().t("workflowEditor.task.giveUp") }, { type: "ADD_SIGN", label: h().t("workflowEditor.task.additionalSignature") }, { type: "REMOVE_SIGN", label: h().t("workflowEditor.task.reductionOfSignature") }, { type: "ASSIGN_TASK", label: h().t("workflowEditor.task.assignTask") }, { type: "COPY", label: h().t("workflowEditor.task.copyTask") }, { type: "GET_BACK_BUTTON", label: h().t("workflowEditor.task.retrieveTask") }, { type: "READED", label: h().t("workflowEditor.task.readTask") }, { type: "EXPORT_REPORT", label: h().t("workflowEditor.task.exportReport") }], currentRow: null, count: o2, showAdditionalCondition: false };
16
16
  }, mounted() {
17
- this.actions.length > 0 && this.selectRow(this.actions[this.actions.length - 1]), this.$watch("actions", function(t2, e2) {
18
- const o2 = [];
17
+ this.actions.length > 0 && this.selectRow(this.actions[this.actions.length - 1]), this.$watch("actions", function(t2, o2) {
18
+ const e2 = [];
19
19
  for (const t3 of this.actions) {
20
- const e3 = { ...t3 };
21
- delete e3.id, o2.push(e3);
20
+ const o3 = { ...t3 };
21
+ delete o3.id, e2.push(o3);
22
22
  }
23
- this.$emit("updateAction", o2);
23
+ this.$emit("updateAction", e2);
24
24
  }, { deep: true });
25
25
  }, methods: { selectRow(t2) {
26
26
  this.$refs.table.setCurrentRow(t2);
27
27
  }, getRowIndex(t2) {
28
- for (let e2 = 0; e2 < this.actions.length; e2++)
29
- if (this.actions[e2].id === t2.id)
30
- return e2;
28
+ for (let o2 = 0; o2 < this.actions.length; o2++)
29
+ if (this.actions[o2].id === t2.id)
30
+ return o2;
31
31
  return -1;
32
32
  }, handleCurrentChange(t2) {
33
33
  this.currentRow = t2;
34
34
  }, isDuplicated(t2) {
35
- const e2 = this.getRowIndex(this.currentRow);
36
- for (let o2 = 0; o2 < this.actions.length; o2++)
37
- o2 !== e2 && this.actions[o2].type === t2 && (this.$alert(this.$t("workflowEditorMessage.duplicateOperationTypeWithLinePleaseReselect", { row: o2 + 1 })), this.currentRow.type = "");
35
+ const o2 = this.getRowIndex(this.currentRow);
36
+ for (let e2 = 0; e2 < this.actions.length; e2++)
37
+ e2 !== o2 && this.actions[e2].type === t2 && (this.$alert(this.$t("workflowEditorMessage.duplicateOperationTypeWithLinePleaseReselect", { row: e2 + 1 })), this.currentRow.type = "");
38
38
  }, add() {
39
39
  for (let t3 = 0; t3 < this.actions.length; t3++) {
40
- const e2 = this.actions[t3];
41
- if ("" === e2.type || "" === e2.label)
40
+ const o2 = this.actions[t3];
41
+ if ("" === o2.type || "" === o2.label)
42
42
  return void this.$alert(this.$t("workflowEditorMessage.theOperationTypeOrNameInLineIsEmpty", { row: t3 + 1 }));
43
43
  }
44
44
  const t2 = { id: this.count, type: "", label: "", visible: true, condition: "" };
@@ -49,13 +49,13 @@ const b = { name: "CustomActions", components: { AdditionalConditionDialog: f },
49
49
  }, formatCondition(t2) {
50
50
  if ("" === t2 || !t2)
51
51
  return this.$t("workflowEditor.task.nothing");
52
- const e2 = [];
53
- return k(e2, t2), m(e2);
52
+ const o2 = [];
53
+ return k(o2, t2), m(o2);
54
54
  }, selectCondition(t2) {
55
55
  this.selectRow(t2), this.currentRow || (this.currentRow.condition = ""), this.showAdditionalCondition = true;
56
56
  } } }, y = Object.assign(b, { setup: (h2) => (h3, k2) => {
57
- const m2 = t("el-button"), b2 = t("el-table-column"), y2 = t("el-option"), E = t("el-select"), g = t("el-input"), C = t("el-checkbox"), R = t("el-table"), v = t("el-row");
58
- return e(), o("div", null, [l(v, null, { default: i(() => [l(m2, { type: "primary", size: "small", plain: "", icon: a(w), onClick: h3.add }, { default: i(() => [n(s(h3.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["icon", "onClick"]), l(m2, { type: "primary", size: "small", plain: "", icon: a(p), onClick: h3.remove }, { default: i(() => [n(s(h3.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["icon", "onClick"]), l(R, { ref: "table", data: h3.actions, "row-key": "type", border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: h3.handleCurrentChange }, { default: i(() => [l(b2, { type: "index" }), l(b2, { label: h3.$t("workflowEditor.task.operationType"), width: "180" }, { default: i((t2) => [l(E, { modelValue: t2.row.type, "onUpdate:modelValue": (e2) => t2.row.type = e2, onChange: h3.isDuplicated }, { default: i(() => [(e(true), o(r, null, d(h3.actionTypes, (t3) => (e(), c(y2, { key: t3.id, value: t3.type, label: t3.label }, null, 8, ["value", "label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), l(b2, { prop: "label", label: h3.$t("workflowEditor.task.name"), width: "180" }, { default: i((t2) => [l(g, { modelValue: t2.row.label, "onUpdate:modelValue": (e2) => t2.row.label = e2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), l(b2, { prop: "visible", label: h3.$t("workflowEditor.task.visibleOrNot") }, { default: i((t2) => [l(C, { modelValue: t2.row.visible, "onUpdate:modelValue": (e2) => t2.row.visible = e2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), l(b2, { prop: "condition", label: h3.$t("workflowEditor.task.condition") }, { default: i((t2) => [l(g, { value: h3.formatCondition(t2.row.condition), type: "textarea", autosize: "", onFocus: (e2) => h3.selectCondition(t2.row) }, null, 8, ["value", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), h3.showAdditionalCondition ? (e(), c(a(f), { key: 0, modelValue: h3.currentRow.condition, "onUpdate:modelValue": k2[0] || (k2[0] = (t2) => h3.currentRow.condition = t2), onClose: k2[1] || (k2[1] = (t2) => h3.showAdditionalCondition = false) }, null, 8, ["modelValue"])) : u("", true)]);
57
+ const m2 = t("el-button"), b2 = t("el-table-column"), y2 = t("el-option"), E = t("el-select"), g = t("el-input"), R = t("el-checkbox"), C = t("el-table"), v = t("el-row");
58
+ return o(), e("div", null, [l(v, null, { default: i(() => [l(m2, { type: "primary", size: "small", plain: "", icon: a(w), onClick: h3.add }, { default: i(() => [n(s(h3.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["icon", "onClick"]), l(m2, { type: "primary", size: "small", plain: "", icon: a(p), onClick: h3.remove }, { default: i(() => [n(s(h3.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["icon", "onClick"]), l(C, { ref: "table", data: h3.actions, "row-key": "type", border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: h3.handleCurrentChange }, { default: i(() => [l(b2, { type: "index" }), l(b2, { label: h3.$t("workflowEditor.task.operationType"), width: "180" }, { default: i((t2) => [l(E, { modelValue: t2.row.type, "onUpdate:modelValue": (o2) => t2.row.type = o2, onChange: h3.isDuplicated }, { default: i(() => [(o(true), e(r, null, d(h3.actionTypes, (t3) => (o(), c(y2, { key: t3.id, value: t3.type, label: t3.label }, null, 8, ["value", "label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), l(b2, { prop: "label", label: h3.$t("workflowEditor.task.name"), width: "180" }, { default: i((t2) => [l(g, { modelValue: t2.row.label, "onUpdate:modelValue": (o2) => t2.row.label = o2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), l(b2, { prop: "visible", label: h3.$t("workflowEditor.task.visibleOrNot") }, { default: i((t2) => [l(R, { modelValue: t2.row.visible, "onUpdate:modelValue": (o2) => t2.row.visible = o2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), l(b2, { prop: "condition", label: h3.$t("workflowEditor.task.condition") }, { default: i((t2) => [l(g, { value: h3.formatCondition(t2.row.condition), type: "textarea", autosize: "", onFocus: (o2) => h3.selectCondition(t2.row) }, null, 8, ["value", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), h3.showAdditionalCondition ? (o(), c(a(f), { key: 0, modelValue: h3.currentRow.condition, "onUpdate:modelValue": k2[0] || (k2[0] = (t2) => h3.currentRow.condition = t2), onClose: k2[1] || (k2[1] = (t2) => h3.showAdditionalCondition = false) }, null, 8, ["modelValue"])) : u("", true)]);
59
59
  } });
60
60
  export {
61
61
  y as default
@@ -1,6 +1,7 @@
1
1
  import { mapGetters as t } from "vuex";
2
2
  import i from "./selection-conditions.vue.mjs";
3
3
  import e from "./componentsConfigUtil.mjs";
4
+ import "@element-plus/icons-vue";
4
5
  import { resolveComponent as n, openBlock as o, createElementBlock as l, createElementVNode as a, createVNode as r, withCtx as s, createTextVNode as d, toDisplayString as u, createBlock as c, createCommentVNode as h, Fragment as b, renderList as m } from "vue";
5
6
  import p from "../../../../_virtual/_plugin-vue_export-helper.mjs";
6
7
  const C = p({ name: "EditableChildFieldSetting", components: { selectionConditions: i }, props: { setting: { type: Object, default: null }, tableName: { type: String, default: null } }, data() {
@@ -72,8 +73,8 @@ const C = p({ name: "EditableChildFieldSetting", components: { selectionConditio
72
73
  }
73
74
  this.$emit("combinationParameters", t2);
74
75
  } } }, [["render", function(t2, i2, e2, p2, C2, f) {
75
- const A = n("Tools"), w = n("el-icon"), g = n("el-checkbox"), V = n("el-col"), k = n("el-row"), y = n("el-checkbox-group"), _ = n("selection-conditions"), R = n("el-button"), E = n("el-table-column"), v = n("el-option"), N = n("el-select"), P = n("el-radio"), M = n("el-radio-group"), B = n("el-table");
76
- return o(), l("div", null, [a("div", null, [r(y, { modelValue: C2.actionArr, "onUpdate:modelValue": i2[4] || (i2[4] = (t3) => C2.actionArr = t3), onChange: f.changeActionArr }, { default: s(() => [r(k, null, { default: s(() => [r(V, { span: 6 }, { default: s(() => [r(g, { label: "notEmpty" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.tableDataNotEmpty")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("notEmpty") ? (o(), c(w, { key: 0, onClick: i2[0] || (i2[0] = (t3) => f.showButtonVisible("notEmpty")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 }), r(V, { span: 6 }, { default: s(() => [r(g, { label: "add" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.rowsCanBeAdded")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("add") ? (o(), c(w, { key: 0, onClick: i2[1] || (i2[1] = (t3) => f.showButtonVisible("add")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 }), r(V, { span: 6 }, { default: s(() => [r(g, { label: "delete" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.deleteLine")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("delete") ? (o(), c(w, { key: 0, onClick: i2[2] || (i2[2] = (t3) => f.showButtonVisible("delete")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 }), r(V, { span: 6 }, { default: s(() => [r(g, { label: "update" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.modifiableHistoricalData")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("update") ? (o(), c(w, { key: 0, onClick: i2[3] || (i2[3] = (t3) => f.showButtonVisible("update")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue", "onChange"]), C2.showButtonVisibleFlag ? (o(), c(_, { key: 0, "attribute-map": C2.subtableConditionItem, "condition-list": C2.buttonVisibleCon.condition, "parent-condition": C2.buttonVisibleCon.parentCondition, "user-condition": C2.buttonVisibleCon.userCondition, "button-type": C2.buttonType, onClose: f.saveButtonVisible }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "button-type", "onClose"])) : h("", true)]), a("div", null, [r(k, null, { default: s(() => [r(R, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: f.add }, { default: s(() => [d(u(t2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r(R, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: f.remove }, { default: s(() => [d(u(t2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r(B, { ref: "table", data: C2.fieldArr, border: "", "highlight-current-row": "", style: { width: "100%" }, onSelectionChange: f.handleSelectionChange, onCurrentChange: f.handleCurrentChange }, { default: s(() => [r(E, { type: "selection", width: "55", align: "center" }), r(E, { type: "index", width: "50", align: "center" }), r(E, { prop: "name", label: t2.$t("workflowEditor.task.propertyName"), width: "280", align: "center" }, { default: s((i3) => [r(N, { modelValue: i3.row.name, "onUpdate:modelValue": (t3) => i3.row.name = t3, size: "small", filterable: "", onChange: f.combinationParameters }, { default: s(() => [r(v, { label: t2.$t("workflowEditor.condition.allFields"), value: "all_fields" }, null, 8, ["label"]), (o(true), l(b, null, m(C2.attributeArr, (t3) => (o(), c(v, { key: t3.value, label: t3.label, value: t3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r(E, { prop: "constraintRule", label: t2.$t("workflowEditor.task.editingMethod"), width: "380", align: "center" }, { default: s((i3) => [r(M, { modelValue: i3.row.constraintRule, "onUpdate:modelValue": (t3) => i3.row.constraintRule = t3, onChange: f.combinationParameters }, { default: s(() => [r(P, { label: "REQUIRED" }, { default: s(() => [d(u(t2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r(P, { label: "READ_ONLY" }, { default: s(() => [d(u(t2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r(E, { prop: "condition", label: t2.$t("workflowEditor.task.condition"), align: "center" }, { default: s((t3) => [r(w, { onClick: (i3) => f.selectCondition(t3.row) }, { default: s(() => [r(A)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onSelectionChange", "onCurrentChange"]), C2.showAdditionalCondition ? (o(), c(_, { key: 0, "attribute-map": C2.subtableConditionItem, "condition-list": C2.currentRow.condition, "parent-condition": C2.currentRow.parentCondition, "user-condition": C2.currentRow.userCondition, onClose: f.savebuttonSetting }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "onClose"])) : h("", true)])]);
76
+ const A = n("Tools"), w = n("el-icon"), g = n("el-checkbox"), V = n("el-col"), k = n("el-row"), y = n("el-checkbox-group"), _ = n("selection-conditions"), R = n("el-button"), v = n("el-table-column"), E = n("el-option"), N = n("el-select"), P = n("el-radio"), M = n("el-radio-group"), B = n("el-table");
77
+ return o(), l("div", null, [a("div", null, [r(y, { modelValue: C2.actionArr, "onUpdate:modelValue": i2[4] || (i2[4] = (t3) => C2.actionArr = t3), onChange: f.changeActionArr }, { default: s(() => [r(k, null, { default: s(() => [r(V, { span: 6 }, { default: s(() => [r(g, { label: "notEmpty" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.tableDataNotEmpty")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("notEmpty") ? (o(), c(w, { key: 0, onClick: i2[0] || (i2[0] = (t3) => f.showButtonVisible("notEmpty")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 }), r(V, { span: 6 }, { default: s(() => [r(g, { label: "add" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.rowsCanBeAdded")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("add") ? (o(), c(w, { key: 0, onClick: i2[1] || (i2[1] = (t3) => f.showButtonVisible("add")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 }), r(V, { span: 6 }, { default: s(() => [r(g, { label: "delete" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.deleteLine")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("delete") ? (o(), c(w, { key: 0, onClick: i2[2] || (i2[2] = (t3) => f.showButtonVisible("delete")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 }), r(V, { span: 6 }, { default: s(() => [r(g, { label: "update" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.modifiableHistoricalData")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("update") ? (o(), c(w, { key: 0, onClick: i2[3] || (i2[3] = (t3) => f.showButtonVisible("update")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue", "onChange"]), C2.showButtonVisibleFlag ? (o(), c(_, { key: 0, "attribute-map": C2.subtableConditionItem, "condition-list": C2.buttonVisibleCon.condition, "parent-condition": C2.buttonVisibleCon.parentCondition, "user-condition": C2.buttonVisibleCon.userCondition, "button-type": C2.buttonType, onClose: f.saveButtonVisible }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "button-type", "onClose"])) : h("", true)]), a("div", null, [r(k, null, { default: s(() => [r(R, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: f.add }, { default: s(() => [d(u(t2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r(R, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: f.remove }, { default: s(() => [d(u(t2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r(B, { ref: "table", data: C2.fieldArr, border: "", "highlight-current-row": "", style: { width: "100%" }, onSelectionChange: f.handleSelectionChange, onCurrentChange: f.handleCurrentChange }, { default: s(() => [r(v, { type: "selection", width: "55", align: "center" }), r(v, { type: "index", width: "50", align: "center" }), r(v, { prop: "name", label: t2.$t("workflowEditor.task.propertyName"), width: "280", align: "center" }, { default: s((i3) => [r(N, { modelValue: i3.row.name, "onUpdate:modelValue": (t3) => i3.row.name = t3, size: "small", filterable: "", onChange: f.combinationParameters }, { default: s(() => [r(E, { label: t2.$t("workflowEditor.condition.allFields"), value: "all_fields" }, null, 8, ["label"]), (o(true), l(b, null, m(C2.attributeArr, (t3) => (o(), c(E, { key: t3.value, label: t3.label, value: t3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r(v, { prop: "constraintRule", label: t2.$t("workflowEditor.task.editingMethod"), width: "380", align: "center" }, { default: s((i3) => [r(M, { modelValue: i3.row.constraintRule, "onUpdate:modelValue": (t3) => i3.row.constraintRule = t3, onChange: f.combinationParameters }, { default: s(() => [r(P, { label: "REQUIRED" }, { default: s(() => [d(u(t2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r(P, { label: "READ_ONLY" }, { default: s(() => [d(u(t2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r(v, { prop: "condition", label: t2.$t("workflowEditor.task.condition"), align: "center" }, { default: s((t3) => [r(w, { onClick: (i3) => f.selectCondition(t3.row) }, { default: s(() => [r(A)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onSelectionChange", "onCurrentChange"]), C2.showAdditionalCondition ? (o(), c(_, { key: 0, "attribute-map": C2.subtableConditionItem, "condition-list": C2.currentRow.condition, "parent-condition": C2.currentRow.parentCondition, "user-condition": C2.currentRow.userCondition, onClose: f.savebuttonSetting }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "onClose"])) : h("", true)])]);
77
78
  }]]);
78
79
  export {
79
80
  C as default