@das-fed/ui 1.1.4 → 6.3.0-beta.0

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 (152) hide show
  1. package/global/icons/index.local.js +1 -1
  2. package/global/style/index.css +1 -1
  3. package/global/style/scrollbar.css +22 -22
  4. package/global/theme/index.js +12 -12
  5. package/global/theme/module/color.js +31 -31
  6. package/global/theme/module/fontSize.js +5 -5
  7. package/global/theme/module/scrollbar.js +6 -6
  8. package/package.json +13 -7
  9. package/packages/business-components/app-container/index.js +154 -147
  10. package/packages/business-components/change-enterprises/index.css +1 -0
  11. package/packages/business-components/change-enterprises/index.js +241 -0
  12. package/packages/business-components/change-pwd/index.css +1 -0
  13. package/packages/business-components/change-pwd/index.js +330 -0
  14. package/packages/business-components/currency-page/index.css +1 -0
  15. package/packages/business-components/currency-page/index.js +99 -0
  16. package/packages/business-components/device-panel/index.css +1 -0
  17. package/packages/business-components/device-panel/index.js +115939 -0
  18. package/packages/business-components/echarts/index.js +93 -122
  19. package/packages/business-components/export-button/index.js +73 -66
  20. package/packages/business-components/import-button/index.js +213 -170
  21. package/packages/business-components/index.js +8 -1
  22. package/packages/business-components/layout-breadcrumb/index.js +82 -66
  23. package/packages/business-components/model-table-dialog/index.js +299 -289
  24. package/packages/business-components/process-configuration/index.css +1 -0
  25. package/packages/business-components/process-configuration/index.js +612 -0
  26. package/packages/business-components/process-form/index.css +1 -0
  27. package/packages/business-components/process-form/index.js +524 -0
  28. package/packages/business-components/process-search-form/index.js +73 -315
  29. package/packages/business-components/process-table/index.css +1 -1
  30. package/packages/business-components/process-table/index.js +186 -152
  31. package/packages/business-components/urgent-panel/index.css +1 -0
  32. package/packages/business-components/urgent-panel/index.js +3914 -0
  33. package/packages/business-components/user-org-dialog/index.js +466 -375
  34. package/packages/business-components/video-dialog/index.css +1 -0
  35. package/packages/business-components/video-dialog/index.js +1041 -0
  36. package/packages/business.js +1 -2
  37. package/packages/components/alert/index.js +449 -633
  38. package/packages/components/audio-video/index.css +1 -1
  39. package/packages/components/audio-video/index.js +312 -126
  40. package/packages/components/autocomplete/index.css +1 -1
  41. package/packages/components/autocomplete/index.js +312 -2923
  42. package/packages/components/breadcrumb/index.js +97 -82
  43. package/packages/components/button/index.css +1 -1
  44. package/packages/components/button/index.js +646 -787
  45. package/packages/components/calendar/index.css +1 -1
  46. package/packages/components/calendar/index.js +655 -3879
  47. package/packages/components/cascader/index.js +209 -203
  48. package/packages/components/checkbox/index.css +1 -1
  49. package/packages/components/checkbox/index.js +710 -872
  50. package/packages/components/collapse-panel/index.css +1 -1
  51. package/packages/components/collapse-panel/index.js +419 -601
  52. package/packages/components/collapse-transition/index.js +23 -21
  53. package/packages/components/collaspe/index.css +1 -1
  54. package/packages/components/collaspe/index.js +413 -595
  55. package/packages/components/color-picker/index.css +1 -1
  56. package/packages/components/color-picker/index.js +176 -133
  57. package/packages/components/custom-search-item/index.js +43 -37
  58. package/packages/components/date-picker/index.js +1338 -1459
  59. package/packages/components/dialog/index.js +441 -241
  60. package/packages/components/dimple-layout/index.css +1 -1
  61. package/packages/components/dimple-layout/index.js +1298 -1794
  62. package/packages/components/drawer/index.js +116 -101
  63. package/packages/components/dropdown/index.js +129 -109
  64. package/packages/components/edit-table/index.css +1 -1
  65. package/packages/components/edit-table/index.js +868 -752
  66. package/packages/components/empty/index.js +83 -78
  67. package/packages/components/form/index.js +22 -15
  68. package/packages/components/form-item/index.css +1 -1
  69. package/packages/components/form-item/index.js +601 -440
  70. package/packages/components/icon/index.css +1 -1
  71. package/packages/components/icon/index.js +38 -22
  72. package/packages/components/image-preview/index.css +1 -0
  73. package/packages/components/image-preview/index.js +2714 -0
  74. package/packages/components/image-upload/index.js +601 -765
  75. package/packages/components/image-viewer/index.css +1 -1
  76. package/packages/components/image-viewer/index.js +909 -990
  77. package/packages/components/index.js +2 -2
  78. package/packages/components/input/index.css +1 -1
  79. package/packages/components/input/index.js +284 -256
  80. package/packages/components/input-dialog-select/index.css +1 -1
  81. package/packages/components/input-dialog-select/index.js +179 -156
  82. package/packages/components/input-number/index.css +1 -1
  83. package/packages/components/input-number/index.js +157 -170
  84. package/packages/components/live-player/index.css +1 -0
  85. package/packages/components/live-player/index.js +170 -0
  86. package/packages/components/loading/index.js +17 -26
  87. package/packages/components/map/index.css +1 -1
  88. package/packages/components/map/index.js +18913 -461
  89. package/packages/components/menu-aside/index.css +1 -1
  90. package/packages/components/menu-aside/index.js +648 -713
  91. package/packages/components/menu-header/index.js +446 -629
  92. package/packages/components/message/index.js +25 -16
  93. package/packages/components/notification/index.js +386 -575
  94. package/packages/components/overlay/index.js +112 -103
  95. package/packages/components/pagination/index.js +260 -330
  96. package/packages/components/popover/index.js +104 -93
  97. package/packages/components/popup-mask/index.css +1 -1
  98. package/packages/components/popup-mask/index.js +77 -72
  99. package/packages/components/preview/index.js +33 -28
  100. package/packages/components/progress/index.js +214 -221
  101. package/packages/components/radio/index.css +1 -1
  102. package/packages/components/radio/index.js +699 -862
  103. package/packages/components/radio-tabs/index.js +144 -107
  104. package/packages/components/rich-editor/index.css +1 -1
  105. package/packages/components/rich-editor/index.js +105 -106
  106. package/packages/components/scrollbar/index.css +3 -2
  107. package/packages/components/scrollbar/index.js +2262 -1201
  108. package/packages/components/search/index.js +500 -664
  109. package/packages/components/search-form/index.css +1 -1
  110. package/packages/components/search-form/index.js +724 -626
  111. package/packages/components/select/index.css +1 -1
  112. package/packages/components/select/index.js +1052 -950
  113. package/packages/components/select-input/index.js +63 -53
  114. package/packages/components/select-list/index.css +1 -1
  115. package/packages/components/select-list/index.js +258 -235
  116. package/packages/components/special-range-picker-month/index.css +1 -1
  117. package/packages/components/special-range-picker-month/index.js +3068 -72555
  118. package/packages/components/special-range-picker-year/index.css +1 -1
  119. package/packages/components/special-range-picker-year/index.js +345 -339
  120. package/packages/components/spin/index.js +415 -594
  121. package/packages/components/split-panel/index.css +1 -1
  122. package/packages/components/split-panel/index.js +146 -127
  123. package/packages/components/step/index.js +414 -597
  124. package/packages/components/steps/index.js +407 -590
  125. package/packages/components/switch/index.js +23 -23
  126. package/packages/components/table/index.css +1 -1
  127. package/packages/components/table/index.js +80813 -27734
  128. package/packages/components/tabs/index.css +1 -1
  129. package/packages/components/tabs/index.js +620 -813
  130. package/packages/components/tag/index.js +63 -63
  131. package/packages/components/text-tooltip/index.css +9 -0
  132. package/packages/components/text-tooltip/index.js +2739 -33
  133. package/packages/components/time-line/index.js +464 -643
  134. package/packages/components/tooltip/index.css +1 -1
  135. package/packages/components/tooltip/index.js +108 -79
  136. package/packages/components/tree/index.css +1 -1
  137. package/packages/components/tree/index.js +840 -809
  138. package/packages/components/tree-select/index.js +271 -303
  139. package/packages/components/tree-table/index.js +461 -352
  140. package/packages/components/upload/index.js +682 -858
  141. package/packages/components/virtual-tree/index.css +1 -1
  142. package/packages/components/virtual-tree/index.js +144 -126
  143. package/packages/index.d.ts +1 -0
  144. package/packages/index.js +2 -2
  145. package/style/business.css +11 -4
  146. package/style/index.css +55 -45
  147. package/packages/business-components/low-code/index.css +0 -1
  148. package/packages/business-components/low-code/index.js +0 -60
  149. package/packages/components/audio-video-player/index.css +0 -1
  150. package/packages/components/audio-video-player/index.js +0 -83
  151. package/packages/components/table-column/index.css +0 -1
  152. package/packages/components/table-column/index.js +0 -82021
@@ -0,0 +1 @@
1
+ .das-process-configuration[data-v-cf2a188f] .table-top[data-v-cf2a188f]{display:flex;justify-content:flex-end}.das-process-configuration[data-v-cf2a188f] .table-top[data-v-cf2a188f] .operate[data-v-cf2a188f]{display:flex;position:absolute;top:10px}.das-process-configuration[data-v-cf2a188f] .table-box[data-v-cf2a188f]{background-color:#fff;display:flex;flex-direction:column;height:100%;padding:0 50px 12px}.das-process-configuration[data-v-cf2a188f] .table-box[data-v-cf2a188f] .table-content[data-v-cf2a188f]{flex:1;overflow:hidden}.das-process-configuration[data-v-cf2a188f] .table-box[data-v-cf2a188f] .table-content[data-v-cf2a188f] [data-v-cf2a188f] .das-ui-table .pagination-container{padding:12px 8px}.delete-dialog[data-v-cf2a188f] [data-v-cf2a188f] .das-ui-dialog.feedback .delete-text[data-v-cf2a188f]{color:#212121;font-size:16px;font-weight:400;letter-spacing:0;line-height:24px;text-align:center}.delete-dialog[data-v-cf2a188f] [data-v-cf2a188f] .das-ui-dialog.feedback .split-line[data-v-cf2a188f]{border-top:1px solid #d9d9d9;margin:6px 0;width:100%}.delete-dialog[data-v-cf2a188f] [data-v-cf2a188f] .das-ui-dialog.feedback .delete-info-box[data-v-cf2a188f]{height:79px}.delete-dialog[data-v-cf2a188f] [data-v-cf2a188f] .das-ui-dialog.feedback .delete-info-text[data-v-cf2a188f]{color:#999;font-size:14px;font-weight:400;letter-spacing:0;line-height:21px}
@@ -0,0 +1,612 @@
1
+ import { withInstall } from '@das-fed/utils';
2
+ import { ref, watch, defineComponent, computed, onUnmounted, onDeactivated, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, withDirectives, pushScopeId, popScopeId } from 'vue';
3
+ import { DasMessage, DasTable, DasTableColumn, DasDialog, DasButton, DasForm, DasFormItem, DasSpin, vOverlay } from '@das-fed/ui';
4
+ import { getProjectInfo } from '@das-fed/utils/common-info/index';
5
+ import { createService } from '@das-fed/utils/api-services/src/create-service';
6
+
7
+ const version = "v1";
8
+ const service = createService(`/workflow/flow/def/${version}`);
9
+ const instanceService = createService(`/workflow/runtime/instance/${version}`);
10
+ const processList = service.post(`/listJson`);
11
+ const copyProcess = service.post(`/saveCopy`);
12
+ const getInstanceCountBy = instanceService.get(`/getInstanceCountByDefKeys`);
13
+ const deleteDef = service.delete(`/removeByDefIds`);
14
+
15
+ const useCopyDialog = (editForm) => {
16
+ const projectId = getProjectInfo().id ? getProjectInfo().id : "371344636432453";
17
+ const projectName = getProjectInfo().name ? getProjectInfo().name : "AIoT\u9879\u76EE";
18
+ const copyDialogLoading = ref(false);
19
+ const copyDialogShow = ref(false);
20
+ const copyFormData = ref({
21
+ defId: "",
22
+ // 流程id
23
+ defKey: "",
24
+ // 流程别名
25
+ name: "",
26
+ // 流程名称
27
+ typeId: "",
28
+ // 所属项目名称
29
+ typeName: projectName
30
+ // 所属项目id
31
+ });
32
+ const detailFormData = ref({
33
+ defId: "",
34
+ // 流程id
35
+ defKey: "",
36
+ // 流程别名
37
+ name: ""
38
+ // 流程名称
39
+ });
40
+ const rules = ref({
41
+ name: [{ required: true, message: "\u5FC5\u586B", trigger: "blur" }],
42
+ defKey: [{ required: true, message: "\u5FC5\u586B", trigger: "blur" }]
43
+ });
44
+ const saveCopyProcess = async (func) => {
45
+ editForm.value?.validate(async (valid) => {
46
+ if (valid) {
47
+ copyDialogLoading.value = true;
48
+ console.log(" // copyFormData.value: ", copyFormData.value);
49
+ const [err, data] = await copyProcess(copyFormData.value, {
50
+ params: { destinationProject: projectId, project: projectId }
51
+ }).run();
52
+ if (err) {
53
+ copyDialogLoading.value = false;
54
+ DasMessage.error(data.message);
55
+ return;
56
+ }
57
+ copyDialogLoading.value = false;
58
+ DasMessage.success("\u590D\u5236\u6210\u529F");
59
+ copyDialogShow.value = false;
60
+ func();
61
+ }
62
+ });
63
+ watch(
64
+ () => copyDialogShow.value,
65
+ (val) => {
66
+ if (!val) editForm.value?.resetField();
67
+ }
68
+ );
69
+ };
70
+ const cancelCopy = async () => copyDialogShow.value = false;
71
+ return {
72
+ copyDialogShow,
73
+ copyFormData,
74
+ detailFormData,
75
+ rules,
76
+ copyDialogLoading,
77
+ saveCopyProcess,
78
+ cancelCopy
79
+ };
80
+ };
81
+
82
+ const useDeleteDialog = () => {
83
+ const projectId = getProjectInfo().id ? getProjectInfo().id : "371344636432453";
84
+ const deleteDialogShow = ref(false);
85
+ const instanceCount = ref([]);
86
+ const reqCount = async (val) => {
87
+ const params = {
88
+ defKeys: val,
89
+ projectId
90
+ };
91
+ const [err, data] = await getInstanceCountBy(params).run();
92
+ console.log("data: ", data);
93
+ instanceCount.value = data;
94
+ if (err) return;
95
+ };
96
+ const deleteDefItem = async (val) => {
97
+ const params = {
98
+ cascade: true,
99
+ ids: val,
100
+ project: projectId
101
+ };
102
+ const [err, data] = await deleteDef(params).run();
103
+ console.log("data: ", data);
104
+ if (err) return;
105
+ deleteDialogShow.value = false;
106
+ DasMessage.success("\u5220\u9664\u6210\u529F");
107
+ };
108
+ const cancelDelete = () => deleteDialogShow.value = false;
109
+ return { deleteDialogShow, instanceCount, reqCount, deleteDefItem, cancelDelete };
110
+ };
111
+
112
+ var _sfc_main = /* @__PURE__ */ defineComponent({
113
+ __name: "index",
114
+ props: {
115
+ modelValue: { type: Boolean, required: true, default: false },
116
+ title: { type: String, required: true, default: "\u9009\u62E9\u6D41\u7A0B" },
117
+ bussinessName: { type: String, required: true, default: "contract" },
118
+ defKey: { type: String, required: false, default: "" },
119
+ defId: { type: String, required: true, default: "" }
120
+ },
121
+ emits: ["update:modelValue", "processInfo", "cancelDialog"],
122
+ setup(__props, { expose: __expose, emit: __emit }) {
123
+ __expose();
124
+ const props = __props;
125
+ const emits = __emit;
126
+ const urlOrigin = window.location.origin;
127
+ const projectId = getProjectInfo().id ? getProjectInfo().id : "371344636432453";
128
+ const projectName = getProjectInfo().name ? getProjectInfo().name : "AIoT\u9879\u76EE";
129
+ const deleteIds = ref("");
130
+ const deleteName = ref("");
131
+ const editForm = ref();
132
+ const showDialog = computed(() => props.modelValue ? props.modelValue : false);
133
+ const tableData = ref([]);
134
+ const tableLoading = ref(false);
135
+ const refreshCount = ref(0);
136
+ const { copyDialogShow, copyFormData, detailFormData, rules, saveCopyProcess, cancelCopy, copyDialogLoading } = useCopyDialog(editForm);
137
+ const { deleteDialogShow, instanceCount, reqCount, deleteDefItem, cancelDelete } = useDeleteDialog();
138
+ const operation = ref([
139
+ {
140
+ label: "\u7F16\u8F91",
141
+ value: "edit"
142
+ },
143
+ {
144
+ label: "\u590D\u5236",
145
+ value: "copy"
146
+ },
147
+ {
148
+ label: "\u5220\u9664",
149
+ value: "delete"
150
+ }
151
+ ]);
152
+ const stateArr = ref([
153
+ { text: "\u5DF2\u53D1\u5E03", value: "deploy", type: "info" },
154
+ { text: "\u672A\u53D1\u5E03", value: "draft" },
155
+ { text: "\u7981\u7528", value: "forbidden", type: "danger" },
156
+ { text: "\u7981\u6B62\u5B9E\u4F8B", value: "forbidden_instance", type: "warning" }
157
+ ]);
158
+ const stateFormat = (val) => {
159
+ const str = stateArr.value.find((item) => item.value === val);
160
+ return str?.text;
161
+ };
162
+ const currentRodioSelection = ref(props.defKey);
163
+ const currentRowSelection = ref();
164
+ const radioChange = (val, row, index) => {
165
+ console.log(val, row, index);
166
+ currentRowSelection.value = row;
167
+ };
168
+ const operationClick = async (value, row) => {
169
+ if (value === "edit") {
170
+ const rowStr = JSON.stringify(row);
171
+ window.open(`${urlOrigin}/mvue/flowDesign?business=${props.bussinessName}&operate=edit&detail=${rowStr}`);
172
+ }
173
+ if (value === "copy") {
174
+ copyDialogShow.value = true;
175
+ copyFormData.value.defId = row.defId;
176
+ copyFormData.value.typeId = row.typeId;
177
+ copyFormData.value.defKey = "";
178
+ copyFormData.value.name = "";
179
+ detailFormData.value.defId = row.defId;
180
+ detailFormData.value.defKey = row.defKey;
181
+ detailFormData.value.name = row.name;
182
+ }
183
+ if (value === "delete") {
184
+ deleteIds.value = row.id;
185
+ deleteName.value = row.name;
186
+ await reqCount(row.defKey);
187
+ deleteDialogShow.value = true;
188
+ }
189
+ };
190
+ const requestTableList = async () => {
191
+ refreshCount.value++;
192
+ if (refreshCount.value === 1) tableLoading.value = true;
193
+ const params = {
194
+ pageBean: { page: 1, pageSize: 1e4, total: 2 },
195
+ sorter: [{ property: "createTime", direction: "DESC" }],
196
+ querys: [
197
+ { group: "main", operation: "IN", property: "businessTypeId", relation: "AND", value: props.bussinessName }
198
+ ]
199
+ };
200
+ const [err, data] = await processList(params, { params: { project: projectId } }).run();
201
+ if (err) {
202
+ tableLoading.value = false;
203
+ return;
204
+ }
205
+ tableLoading.value = false;
206
+ tableData.value = data.rows;
207
+ };
208
+ const addRow = () => {
209
+ window.open(`${urlOrigin}/mvue/flowDesign?business=${props.bussinessName}&operate=add`);
210
+ };
211
+ const copyRow = async () => {
212
+ await saveCopyProcess(requestTableList);
213
+ };
214
+ const deleteRow = async () => {
215
+ await deleteDefItem(deleteIds.value);
216
+ await requestTableList();
217
+ };
218
+ const cancel = () => {
219
+ const defKeyList = tableData.value.map((item) => item.defKey);
220
+ if (!defKeyList.includes(props.defKey)) {
221
+ emits("cancelDialog", true);
222
+ } else {
223
+ emits("cancelDialog", false);
224
+ }
225
+ emits("update:modelValue", false);
226
+ };
227
+ const submit = () => {
228
+ const defKeyList = tableData.value.map((item) => item.defKey);
229
+ if (!defKeyList.includes(currentRodioSelection.value)) {
230
+ DasMessage.warning("\u8BF7\u9009\u62E9\u6D41\u7A0B");
231
+ return;
232
+ }
233
+ emits("processInfo", currentRowSelection.value);
234
+ emits("update:modelValue", false);
235
+ };
236
+ let timer = ref(0);
237
+ watch(
238
+ () => props.modelValue,
239
+ async (newVal, oldVal) => {
240
+ if (newVal) {
241
+ await requestTableList();
242
+ if (tableData.value.length > 0) {
243
+ if (!props.defKey) {
244
+ currentRodioSelection.value = tableData.value[0].defKey;
245
+ currentRowSelection.value = tableData.value[0];
246
+ } else {
247
+ currentRodioSelection.value = props.defKey;
248
+ currentRowSelection.value = tableData.value.find((item) => item.defKey === props.defKey);
249
+ }
250
+ }
251
+ timer.value = window.setInterval(() => {
252
+ requestTableList();
253
+ }, 1500);
254
+ }
255
+ if (!newVal) {
256
+ refreshCount.value = 0;
257
+ window.clearInterval(timer.value);
258
+ }
259
+ }
260
+ );
261
+ onUnmounted(() => {
262
+ window.clearInterval(timer.value);
263
+ });
264
+ onDeactivated(() => {
265
+ window.clearInterval(timer.value);
266
+ });
267
+ const __returned__ = { props, emits, urlOrigin, projectId, projectName, deleteIds, deleteName, editForm, showDialog, tableData, tableLoading, refreshCount, copyDialogShow, copyFormData, detailFormData, rules, saveCopyProcess, cancelCopy, copyDialogLoading, deleteDialogShow, instanceCount, reqCount, deleteDefItem, cancelDelete, operation, stateArr, stateFormat, currentRodioSelection, currentRowSelection, radioChange, operationClick, requestTableList, addRow, copyRow, deleteRow, cancel, submit, get timer() {
268
+ return timer;
269
+ }, set timer(v) {
270
+ timer = v;
271
+ }, get DasTable() {
272
+ return DasTable;
273
+ }, get DasTableColumn() {
274
+ return DasTableColumn;
275
+ }, get DasDialog() {
276
+ return DasDialog;
277
+ }, get DasButton() {
278
+ return DasButton;
279
+ }, get DasForm() {
280
+ return DasForm;
281
+ }, get DasFormItem() {
282
+ return DasFormItem;
283
+ }, get DasSpin() {
284
+ return DasSpin;
285
+ }, get vOverlay() {
286
+ return vOverlay;
287
+ } };
288
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
289
+ return __returned__;
290
+ }
291
+ });
292
+
293
+ var _export_sfc = (sfc, props) => {
294
+ const target = sfc.__vccOpts || sfc;
295
+ for (const [key, val] of props) {
296
+ target[key] = val;
297
+ }
298
+ return target;
299
+ };
300
+
301
+ const _withScopeId = (n) => (pushScopeId("data-v-cf2a188f"), n = n(), popScopeId(), n);
302
+ const _hoisted_1 = { class: "das-process-configuration" };
303
+ const _hoisted_2 = { class: "table-box" };
304
+ const _hoisted_3 = { class: "table-top" };
305
+ const _hoisted_4 = { class: "operate" };
306
+ const _hoisted_5 = { class: "table-content" };
307
+ const _hoisted_6 = { class: "form-content" };
308
+ const _hoisted_7 = { class: "delete-dialog" };
309
+ const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
310
+ "div",
311
+ { class: "delete-text" },
312
+ [
313
+ /* @__PURE__ */ createTextVNode("\u5220\u9664\u6D41\u7A0B\u5B9A\u4E49\uFF0C\u5BF9\u5E94\u7684\u5B9E\u4F8B\u548C\u4EFB\u52A1\u4F1A\u4E00\u8D77\u5220\u9664\uFF0C"),
314
+ /* @__PURE__ */ createElementVNode("br"),
315
+ /* @__PURE__ */ createTextVNode("\u5E76\u4E14\u65E0\u6CD5\u6062\u590D")
316
+ ],
317
+ -1
318
+ /* HOISTED */
319
+ ));
320
+ const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
321
+ "div",
322
+ { class: "split-line" },
323
+ null,
324
+ -1
325
+ /* HOISTED */
326
+ ));
327
+ const _hoisted_10 = { class: "delete-info-box" };
328
+ const _hoisted_11 = {
329
+ key: 0,
330
+ class: "delete-info-text"
331
+ };
332
+ const _hoisted_12 = {
333
+ key: 1,
334
+ class: "delete-info-text"
335
+ };
336
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
337
+ return openBlock(), createElementBlock(
338
+ Fragment,
339
+ null,
340
+ [
341
+ createElementVNode("div", _hoisted_1, [
342
+ createVNode($setup["DasDialog"], {
343
+ modelValue: $setup.showDialog,
344
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.showDialog = $event),
345
+ loading: $setup.tableLoading,
346
+ title: $props.title,
347
+ width: "1170px",
348
+ height: "689px",
349
+ "body-style": { "background-color": "#f2f2f2", padding: "10px" },
350
+ onClose: $setup.cancel
351
+ }, {
352
+ footer: withCtx(() => [
353
+ createElementVNode("div", null, [
354
+ createVNode($setup["DasButton"], { onClick: $setup.cancel }, {
355
+ default: withCtx(() => [
356
+ createTextVNode("\u53D6\u6D88")
357
+ ]),
358
+ _: 1
359
+ /* STABLE */
360
+ }),
361
+ createVNode($setup["DasButton"], {
362
+ btnType: "primary",
363
+ style: { "margin-left": "12px" },
364
+ onClick: $setup.submit
365
+ }, {
366
+ default: withCtx(() => [
367
+ createTextVNode("\u786E\u5B9A")
368
+ ]),
369
+ _: 1
370
+ /* STABLE */
371
+ })
372
+ ])
373
+ ]),
374
+ default: withCtx(() => [
375
+ createVNode($setup["DasSpin"], { spinning: $setup.tableLoading }, {
376
+ default: withCtx(() => [
377
+ createElementVNode("div", _hoisted_2, [
378
+ createElementVNode("div", _hoisted_3, [
379
+ createElementVNode("div", _hoisted_4, [
380
+ createVNode($setup["DasButton"], {
381
+ btnType: "primary-text",
382
+ size: "large",
383
+ block: "",
384
+ onClick: $setup.addRow
385
+ }, {
386
+ default: withCtx(() => [
387
+ createTextVNode("\u6DFB\u52A0")
388
+ ]),
389
+ _: 1
390
+ /* STABLE */
391
+ })
392
+ ])
393
+ ]),
394
+ createElementVNode("div", _hoisted_5, [
395
+ createVNode($setup["DasTable"], {
396
+ ref: "addTable",
397
+ "max-height": "100%",
398
+ "radio-selection": "",
399
+ hideSelectionText: false,
400
+ operation: $setup.operation,
401
+ simpleEmpty: "",
402
+ "outer-border": "",
403
+ "row-key": "defKey",
404
+ data: $setup.tableData,
405
+ onOperationClick: $setup.operationClick,
406
+ currentRodioSelection: $setup.currentRodioSelection,
407
+ "onUpdate:currentRodioSelection": _cache[1] || (_cache[1] = ($event) => $setup.currentRodioSelection = $event),
408
+ onRadioChange: $setup.radioChange
409
+ }, {
410
+ default: withCtx(() => [
411
+ createVNode($setup["DasTableColumn"], {
412
+ label: "\u6D41\u7A0B\u540D\u79F0",
413
+ "content-type": "link",
414
+ onClickLink: _cache[0] || (_cache[0] = ($event) => $setup.operationClick("edit", $event)),
415
+ prop: "name"
416
+ }),
417
+ createVNode($setup["DasTableColumn"], {
418
+ label: "\u6D41\u7A0Bkey",
419
+ prop: "defKey"
420
+ }),
421
+ createVNode($setup["DasTableColumn"], {
422
+ label: "\u6D41\u7A0B\u63CF\u8FF0",
423
+ prop: "desc"
424
+ }),
425
+ createVNode($setup["DasTableColumn"], {
426
+ label: "\u72B6\u6001",
427
+ prop: "status"
428
+ }, {
429
+ default: withCtx(({ row, $index }) => [
430
+ createTextVNode(
431
+ toDisplayString($setup.stateFormat(row.status)),
432
+ 1
433
+ /* TEXT */
434
+ )
435
+ ]),
436
+ _: 1
437
+ /* STABLE */
438
+ }),
439
+ createVNode($setup["DasTableColumn"], {
440
+ label: "\u7248\u672C\u53F7",
441
+ prop: "version"
442
+ })
443
+ ]),
444
+ _: 1
445
+ /* STABLE */
446
+ }, 8, ["operation", "data", "currentRodioSelection"])
447
+ ])
448
+ ])
449
+ ]),
450
+ _: 1
451
+ /* STABLE */
452
+ }, 8, ["spinning"])
453
+ ]),
454
+ _: 1
455
+ /* STABLE */
456
+ }, 8, ["modelValue", "loading", "title"])
457
+ ]),
458
+ createCommentVNode(" \u590D\u5236\u5F39\u7A97 "),
459
+ createVNode($setup["DasDialog"], {
460
+ modelValue: $setup.copyDialogShow,
461
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $setup.copyDialogShow = $event),
462
+ title: "\u590D\u5236\u6D41\u7A0B",
463
+ size: "small",
464
+ "body-style": { padding: "25px 60px", "box-sizing": "border-box" }
465
+ }, {
466
+ footer: withCtx(() => [
467
+ createElementVNode("div", null, [
468
+ createVNode($setup["DasButton"], { onClick: $setup.cancelCopy }, {
469
+ default: withCtx(() => [
470
+ createTextVNode("\u53D6\u6D88")
471
+ ]),
472
+ _: 1
473
+ /* STABLE */
474
+ }, 8, ["onClick"]),
475
+ createVNode($setup["DasButton"], {
476
+ btnType: "primary",
477
+ style: { "margin-left": "12px" },
478
+ onClick: $setup.copyRow
479
+ }, {
480
+ default: withCtx(() => [
481
+ createTextVNode("\u786E\u5B9A")
482
+ ]),
483
+ _: 1
484
+ /* STABLE */
485
+ })
486
+ ])
487
+ ]),
488
+ default: withCtx(() => [
489
+ createVNode($setup["DasSpin"], { spinning: $setup.copyDialogLoading }, {
490
+ default: withCtx(() => [
491
+ createElementVNode("div", _hoisted_6, [
492
+ createVNode($setup["DasForm"], {
493
+ alignType: "horizontal",
494
+ contentWidth: "230",
495
+ marginBottom: "30px",
496
+ marginRight: "26px",
497
+ ref: "editForm",
498
+ rules: $setup.rules
499
+ }, {
500
+ default: withCtx(() => [
501
+ createVNode($setup["DasFormItem"], {
502
+ label: "\u539F\u6D41\u7A0B\u540D\u79F0",
503
+ maxlength: "20",
504
+ modelValue: $setup.detailFormData.name,
505
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.detailFormData.name = $event),
506
+ disabled: ""
507
+ }, null, 8, ["modelValue"]),
508
+ createVNode($setup["DasFormItem"], {
509
+ label: "\u539F\u6D41\u7A0B\u522B\u540D",
510
+ maxlength: "20",
511
+ modelValue: $setup.detailFormData.defKey,
512
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.detailFormData.defKey = $event),
513
+ disabled: "",
514
+ marginRight: "0"
515
+ }, null, 8, ["modelValue"]),
516
+ createVNode($setup["DasFormItem"], {
517
+ label: "\u65B0\u6D41\u7A0B\u540D\u79F0",
518
+ maxlength: "20",
519
+ required: "",
520
+ prop: "name",
521
+ modelValue: $setup.copyFormData.name,
522
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $setup.copyFormData.name = $event)
523
+ }, null, 8, ["modelValue"]),
524
+ createVNode($setup["DasFormItem"], {
525
+ label: "\u65B0\u6D41\u7A0B\u522B\u540D",
526
+ maxlength: "20",
527
+ required: "",
528
+ prop: "defKey",
529
+ modelValue: $setup.copyFormData.defKey,
530
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $setup.copyFormData.defKey = $event),
531
+ marginRight: "0"
532
+ }, null, 8, ["modelValue"])
533
+ ]),
534
+ _: 1
535
+ /* STABLE */
536
+ }, 8, ["rules"])
537
+ ])
538
+ ]),
539
+ _: 1
540
+ /* STABLE */
541
+ }, 8, ["spinning"])
542
+ ]),
543
+ _: 1
544
+ /* STABLE */
545
+ }, 8, ["modelValue"]),
546
+ createCommentVNode(" \u5220\u9664\u5F39\u7A97 "),
547
+ createElementVNode("div", _hoisted_7, [
548
+ createVNode($setup["DasDialog"], {
549
+ modelValue: $setup.deleteDialogShow,
550
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $setup.deleteDialogShow = $event),
551
+ type: "feedback",
552
+ height: "400px",
553
+ feedType: "primary"
554
+ }, {
555
+ footer: withCtx(() => [
556
+ createElementVNode("div", null, [
557
+ createVNode($setup["DasButton"], { onClick: $setup.cancelDelete }, {
558
+ default: withCtx(() => [
559
+ createTextVNode("\u53D6\u6D88")
560
+ ]),
561
+ _: 1
562
+ /* STABLE */
563
+ }, 8, ["onClick"]),
564
+ createVNode($setup["DasButton"], {
565
+ btnType: "primary",
566
+ style: { "margin-left": "12px" },
567
+ onClick: $setup.deleteRow
568
+ }, {
569
+ default: withCtx(() => [
570
+ createTextVNode("\u786E\u5B9A")
571
+ ]),
572
+ _: 1
573
+ /* STABLE */
574
+ })
575
+ ])
576
+ ]),
577
+ default: withCtx(() => [
578
+ _hoisted_8,
579
+ _hoisted_9,
580
+ withDirectives((openBlock(), createElementBlock("div", _hoisted_10, [
581
+ $setup.instanceCount.length === 0 ? (openBlock(), createElementBlock(
582
+ "div",
583
+ _hoisted_11,
584
+ toDisplayString(`${$setup.deleteName}(\u5171\u6709\u5B9E\u4F8B\uFF1A${0}\u4E2A\uFF0C\u5176\u4E2D\u8FD0\u884C\u4E2D\u7684\u5B9E\u4F8B\uFF1A${0}\u4E2A)`),
585
+ 1
586
+ /* TEXT */
587
+ )) : createCommentVNode("v-if", true),
588
+ $setup.instanceCount.length > 0 ? (openBlock(), createElementBlock(
589
+ "div",
590
+ _hoisted_12,
591
+ toDisplayString(`${$setup.deleteName}(\u5171\u6709\u5B9E\u4F8B\uFF1A${$setup.instanceCount[0].totalCount}\u4E2A\uFF0C\u5176\u4E2D\u8FD0\u884C\u4E2D\u7684\u5B9E\u4F8B\uFF1A${$setup.instanceCount[0].runningCount}\u4E2A)`),
592
+ 1
593
+ /* TEXT */
594
+ )) : createCommentVNode("v-if", true)
595
+ ])), [
596
+ [$setup["vOverlay"]]
597
+ ])
598
+ ]),
599
+ _: 1
600
+ /* STABLE */
601
+ }, 8, ["modelValue"])
602
+ ])
603
+ ],
604
+ 64
605
+ /* STABLE_FRAGMENT */
606
+ );
607
+ }
608
+ var processConfiguration = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-cf2a188f"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/process-configuration/src/index.vue"]]);
609
+
610
+ const DasProcessConfiguration = withInstall(processConfiguration);
611
+
612
+ export { DasProcessConfiguration, DasProcessConfiguration as default };
@@ -0,0 +1 @@
1
+ .custom-page[data-v-668036fc]{background-color:#e2e7ef;display:flex;flex-direction:column}.custom-page[data-v-668036fc] .btn-box[data-v-668036fc]{background-color:#fff;height:48px;line-height:48px;padding-left:18px}.custom-page[data-v-668036fc] .content-box[data-v-668036fc]{flex:1;margin:0 10px;min-height:0}