cloud-web-corejs 1.0.249 → 1.0.251

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 (60) hide show
  1. package/package.json +1 -1
  2. package/src/components/xform/form-designer/designer.js +1 -0
  3. package/src/components/xform/form-designer/setting-panel/form-setting.vue +3 -0
  4. package/src/components/xform/utils/util.js +1 -0
  5. package/src/views/bd/setting/formVersion/button.vue +55 -0
  6. package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
  7. package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
  8. package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
  9. package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
  10. package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
  11. package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
  12. package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
  13. package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
  14. package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
  15. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
  16. package/src/views/bd/setting/formVersion/link.vue +58 -0
  17. package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
  18. package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
  19. package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
  20. package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
  21. package/src/views/bd/setting/formVersion/textDiff.js +102 -0
  22. package/src/views/bd/setting/form_import_log/edit.vue +6 -3
  23. package/src/views/bd/setting/form_import_log/list.vue +5 -0
  24. package/src/views/bd/setting/form_script/edit.vue +196 -83
  25. package/src/views/bd/setting/form_script/edit1.vue +410 -220
  26. package/src/views/bd/setting/form_script/form_list.vue +19 -0
  27. package/src/views/bd/setting/form_script/list.vue +95 -21
  28. package/src/views/bd/setting/form_script/list1.vue +24 -0
  29. package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
  30. package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
  31. package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
  32. package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
  33. package/src/views/bd/setting/form_script/mixins/list.js +163 -95
  34. package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
  35. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
  36. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
  37. package/src/views/bd/setting/form_template/edit.vue +355 -205
  38. package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
  39. package/src/views/bd/setting/form_template/list.vue +49 -74
  40. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
  41. package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
  42. package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
  43. package/src/views/bd/setting/form_template/mixins/list.js +114 -82
  44. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  45. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
  46. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
  47. package/src/views/bd/setting/form_template/wf_list.vue +161 -127
  48. package/src/views/bd/setting/request_setting/list.vue +15 -25
  49. package/src/views/bd/setting/table_model/edit.vue +702 -498
  50. package/src/views/bd/setting/table_model/list.vue +28 -0
  51. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  52. package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
  53. package/src/views/bd/setting/table_model/mixins/list.js +55 -20
  54. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
  55. package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
  56. package/src/views/bd/setting/utils/index.js +15 -0
  57. package/src/views/user/form/vform/designer.vue +303 -287
  58. package/src/views/user/form/vform/formFieldMapping.js +2 -3
  59. package/src/views/user/form/vform/render.vue +8 -0
  60. package/src/views/user/form/view/list.vue +5 -1
@@ -0,0 +1,491 @@
1
+ <template>
2
+ <div>
3
+ <el-dialog
4
+ :title="$t1(title)"
5
+ :append-to-body="true"
6
+ :modal-append-to-body="true"
7
+ :close-on-click-modal="falseValue"
8
+ :visible.sync="showDialog"
9
+ :modal="falseValue"
10
+ custom-class="dialog-style list-dialog dialog-checkbox nopd0"
11
+ width="1200px"
12
+ @close="dialogClose"
13
+ v-el-drag-dialog
14
+ v-el-dialog-center
15
+ :fullscreen="true"
16
+ >
17
+ <div
18
+ id="containt"
19
+ style="height: calc(100vh - 58px); overflow: hidden"
20
+ >
21
+ <el-tabs ref="xTabs" v-model="activeName" class="tab-box">
22
+ <el-tab-pane :label="$t1('详情')" name="first">
23
+ <component
24
+ :is="editContent"
25
+ v-if="showEdit"
26
+ visible-key="showEdit"
27
+ :hData="hData"
28
+ :parent-target="_self"
29
+ @reload="$reloadHandle"
30
+ @openDesignDialog="openDesingerDialogByChild"
31
+ @reverCallback="reverCallback"
32
+ ></component>
33
+ </el-tab-pane>
34
+ <el-tab-pane :label="$t1('列表')" name="second">
35
+ <div class="grid-height">
36
+ <vxe-grid
37
+ ref="table-m1"
38
+ v-bind="vxeOption"
39
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
40
+ @custom="$vxeTableUtil.customHandle"
41
+ >
42
+ <template #form>
43
+ <div class="clearfix screen-btns">
44
+ <div class="fl">
45
+ <el-button
46
+ type="primary"
47
+ icon="el-icon-compare"
48
+ class="button-sty"
49
+ @click="compare"
50
+ >
51
+ {{ $t1("对比") }}
52
+ </el-button>
53
+ </div>
54
+ <div class="fr">
55
+ <vxe-button
56
+ icon="el-icon-brush"
57
+ class="button-sty"
58
+ @click="resetEvent"
59
+ type="text"
60
+ status="primary"
61
+ plain
62
+ >{{ $t1("重置") }}
63
+ </vxe-button>
64
+ <vxe-button
65
+ status="warning"
66
+ icon="el-icon-search"
67
+ class="button-sty"
68
+ @click="searchEvent"
69
+ >
70
+ {{ $t1("搜索") }}
71
+ </vxe-button>
72
+ </div>
73
+ </div>
74
+ <vxe-form
75
+ class="screen-box"
76
+ title-width="92px"
77
+ title-align="right"
78
+ :data="formData"
79
+ @submit="searchEvent"
80
+ @reset="resetEvent"
81
+ >
82
+ <vxe-form-item :title="$t1('版本号') + ':'">
83
+ <template v-slot>
84
+ <base-input-number v-model="formData.version" />
85
+ </template>
86
+ </vxe-form-item>
87
+ <vxe-form-item :title="$t1('操作日志') + ':'">
88
+ <template v-slot>
89
+ <el-input v-model="formData.remark" clearable />
90
+ </template>
91
+ </vxe-form-item>
92
+ <vxe-form-item :title="$t1('创建人') + ':'">
93
+ <template v-slot>
94
+ <el-input
95
+ v-model="formData.createBy"
96
+ size="small"
97
+ clearable
98
+ />
99
+ </template>
100
+ </vxe-form-item>
101
+ <vxe-form-item :title="$t1('更新人') + ':'">
102
+ <template v-slot>
103
+ <el-input
104
+ v-model="formData.modifyBy"
105
+ size="small"
106
+ clearable
107
+ />
108
+ </template>
109
+ </vxe-form-item>
110
+ <vxe-form-item title="创建时间:">
111
+ <template v-slot>
112
+ <el-date-picker
113
+ v-model="formData.startCreateDate"
114
+ type="datetime"
115
+ placeholder=""
116
+ size="small"
117
+ clearable
118
+ value-format="yyyy-MM-dd HH:mm:ss"
119
+ :picker-options="$baseStartPickerOptions(formData.endCreateDate)"
120
+ ></el-date-picker>
121
+ <span>-</span>
122
+ <el-date-picker
123
+ v-model="formData.endCreateDate"
124
+ type="datetime"
125
+ placeholder=""
126
+ size="small"
127
+ clearable
128
+ value-format="yyyy-MM-dd HH:mm:ss"
129
+ default-time="23:59:59"
130
+ :picker-options="
131
+ $baseEndPickerOptions(formData.startCreateDate)
132
+ "
133
+ ></el-date-picker>
134
+ </template>
135
+ </vxe-form-item>
136
+ <vxe-form-item title="更新时间:">
137
+ <template v-slot>
138
+ <el-date-picker
139
+ v-model="formData.startModifyDate"
140
+ type="datetime"
141
+ placeholder=""
142
+ size="small"
143
+ clearable
144
+ value-format="yyyy-MM-dd HH:mm:ss"
145
+ :picker-options="$baseStartPickerOptions(formData.endModifyDate)"
146
+ ></el-date-picker>
147
+ <span>-</span>
148
+ <el-date-picker
149
+ v-model="formData.endModifyDate"
150
+ type="datetime"
151
+ placeholder=""
152
+ size="small"
153
+ clearable
154
+ value-format="yyyy-MM-dd HH:mm:ss"
155
+ default-time="23:59:59"
156
+ :picker-options="
157
+ $baseEndPickerOptions(formData.startModifyDate)
158
+ "
159
+ ></el-date-picker>
160
+ </template>
161
+ </vxe-form-item>
162
+ </vxe-form>
163
+ </template>
164
+ </vxe-grid>
165
+ </div>
166
+ </el-tab-pane>
167
+ </el-tabs>
168
+ </div>
169
+ <formDesignerDialog
170
+ ref="formDesignerDialog"
171
+ v-if="showDesingerDialog"
172
+ :visiable.sync="showDesingerDialog"
173
+ :formName="formName"
174
+ :formCode="formCode"
175
+ @reflushTemplateList="reflushTemplateList"
176
+ :readonly="designerReadonly"
177
+ :showFormScript="false"
178
+ :historyFlag="true"
179
+ :jsonFlag="true"
180
+ :formTemplate="currentFormTemplate"
181
+ ></formDesignerDialog>
182
+ </el-dialog>
183
+ <compareDialog
184
+ ref="compareDialog"
185
+ :objType="objType"
186
+ :objCode="objCode"
187
+ :relationCode="relationCode"
188
+ :preRow="preRow"
189
+ :curRow="curRow"
190
+ v-if="showCompareDialog"
191
+ :visiable.sync="showCompareDialog"
192
+ @reverCallback="reverCallback"
193
+ ></compareDialog>
194
+ </div>
195
+ </template>
196
+
197
+ <script>
198
+ import { selectDialogMixins } from "@base/mixins/selectDialog";
199
+
200
+ export default {
201
+ name: "ftHistoryDialog",
202
+ props: ["visiable", "objType", "objCode", "relationCode"],
203
+ mixins: [selectDialogMixins],
204
+ components: {
205
+ formDesignerDialog: () =>
206
+ import("@base/views/bd/setting/form_template/formDesignerDialog.vue"),
207
+ compareDialog: () =>
208
+ import("@base/views/bd/setting/formVersion/compareDialog.vue"),
209
+ FormTemplateEdit: () =>
210
+ import("@base/views/bd/setting/form_template/edit.vue"),
211
+ FormScriptEdit: () => import("@base/views/bd/setting/form_script/edit.vue"),
212
+ FormScriptEdit1: () =>
213
+ import("@base/views/bd/setting/form_script/edit1.vue"),
214
+ SzTaMbEdit: () => import("@base/views/bd/setting/table_model/edit.vue"),
215
+ },
216
+ created() {
217
+ this.initSetting();
218
+ this.initTitle();
219
+ },
220
+ mounted() {
221
+ this.initTableM1();
222
+ },
223
+ data() {
224
+ return {
225
+ showEdit: false,
226
+ showDialog: true,
227
+ falseValue: false,
228
+ selectMulti: true,
229
+ formData: {},
230
+ vxeOption: {},
231
+ showSaleOrgDialog: false,
232
+ activeName: "second",
233
+
234
+ editContent: null,
235
+ hData: null,
236
+
237
+ formCode: null,
238
+ formName: null,
239
+ currentFormTemplate: null,
240
+ isFullscreen: false,
241
+ designerReadonly: false,
242
+ showDesingerDialog: false,
243
+
244
+ showFormScriptList: false,
245
+ formDesTabs: "first",
246
+ title: "历史列表",
247
+
248
+ showCompareDialog: false,
249
+ preRow: null,
250
+ curRow: null,
251
+ };
252
+ },
253
+ watch: {
254
+ formDesTabs(val) {
255
+ if (this.showFormScriptList == false && val == "second") {
256
+ this.showFormScriptList = true;
257
+ }
258
+ },
259
+ },
260
+ methods: {
261
+ getCompareData(row1, row2, callback) {
262
+ Promise.all([
263
+ this.getFormVersion(row1.id),
264
+ this.getFormVersion(row2.id),
265
+ ]).then((res) => {
266
+ let compareHData1 = res[0].objx;
267
+ let compareHData2 = res[1].objx;
268
+ callback && callback(compareHData1, compareHData2);
269
+ });
270
+ },
271
+ getFormVersion(id) {
272
+ return this.$http({
273
+ url: USER_PREFIX + "/formVersion/get",
274
+ method: "post",
275
+ data: {
276
+ id: id,
277
+ },
278
+ });
279
+ },
280
+ compare() {
281
+ let rows = this.$refs["table-m1"].getCheckboxRecords(true);
282
+ if (rows.length != 2) {
283
+ this.$message.error("请选择两个版本进行对比");
284
+ return;
285
+ }
286
+
287
+ let row1 = rows[0];
288
+ let row2 = rows[1];
289
+ let preRow = row1.version > row2.version ? row2 : row1;
290
+ let curRow = row1.version > row2.version ? row1 : row2;
291
+ this.getCompareData(preRow, curRow, (compareHData1, compareHData2) => {
292
+ this.preRow = compareHData1;
293
+ this.curRow = compareHData2;
294
+ this.showCompareDialog = true;
295
+ });
296
+ },
297
+ initTitle() {
298
+ let titleMap = {
299
+ FormTemplate: "表单模板历史版本",
300
+ FormScript: "逻辑脚本历史版本",
301
+ SzTaMb: "数据表历史版本",
302
+ };
303
+ this.title = titleMap[this.objType];
304
+ },
305
+ initTableM1() {
306
+ let that = this;
307
+ let objNameTitleMap = {
308
+ FormTemplate: "模板名称",
309
+ FormScript: "脚本名称",
310
+ SzTaMb: "数据表名称",
311
+ };
312
+ let objNameTitle = objNameTitleMap[this.objType];
313
+ let objCodeTitleMap = {
314
+ FormTemplate: "模板编码",
315
+ FormScript: "脚本编码",
316
+ SzTaMb: "数据表编码",
317
+ };
318
+ let objCodeTitle = objCodeTitleMap[this.objType];
319
+
320
+ let tableOption = {
321
+ vue: that,
322
+ tableRef: "table-m1",
323
+ tableName: "bd_formVersion_dialog-m1",
324
+ path: USER_PREFIX + "/formVersion/listPage",
325
+ param: () => {
326
+ return {
327
+ ...this.formData,
328
+ objType: this.objType,
329
+ objCode: this.objCode,
330
+ relationCode: this.relationCode,
331
+ };
332
+ },
333
+ columns: [
334
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
335
+ {
336
+ title: this.$t1(objNameTitle),
337
+ field: "objName",
338
+ width: 150,
339
+ fixed: "left",
340
+ },
341
+ {
342
+ title: this.$t1(objCodeTitle),
343
+ field: "objCode",
344
+ width: 150,
345
+ },
346
+ {
347
+ title: this.$t1("版本号"),
348
+ field: "version",
349
+ width: 150,
350
+ },
351
+ {
352
+ title: this.$t1("操作日志"),
353
+ field: "remark",
354
+ width: 150,
355
+ },
356
+ {
357
+ title: this.$t1("创建人"),
358
+ field: "_createBy",
359
+ width: 150,
360
+ },
361
+ {
362
+ title: this.$t1("创建时间"),
363
+ field: "createDate",
364
+ width: 150,
365
+ },
366
+ {
367
+ title: this.$t1("更新人"),
368
+ field: "_modifyBy",
369
+ width: 150,
370
+ },
371
+ {
372
+ title: this.$t1("更新时间"),
373
+ field: "modifyDate",
374
+ width: 150,
375
+ },
376
+ {
377
+ width: 90,
378
+ fixed: "right",
379
+ title: "",
380
+ sortable: false,
381
+ slots: {
382
+ default: ({ row }) => {
383
+ return [
384
+ <div>
385
+ <a
386
+ href="javascript:void(0);"
387
+ class="a-link"
388
+ onclick={() => {
389
+ this.openEditView(row);
390
+ }}
391
+ >
392
+ <el-tooltip
393
+ enterable={false}
394
+ effect="dark"
395
+ content="查看"
396
+ placement="top"
397
+ popper-class="tooltip-skin"
398
+ >
399
+ <i class="el-icon-edit" />
400
+ </el-tooltip>
401
+ </a>
402
+ </div>,
403
+ ];
404
+ },
405
+ },
406
+ },
407
+ ],
408
+ };
409
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
410
+ that.vxeOption = opts;
411
+ });
412
+ },
413
+ openEditView(row) {
414
+ this.$http({
415
+ url: USER_PREFIX + "/formVersion/get",
416
+ method: "post",
417
+ data: {
418
+ id: row.id,
419
+ },
420
+ success: (res) => {
421
+ let objx = res.objx;
422
+ let hData = JSON.parse(objx.content);
423
+ this.hData = hData;
424
+ let map = {
425
+ FormTemplate: "FormTemplateEdit",
426
+ FormScript: "FormScriptEdit",
427
+ SzTaMb: "SzTaMbEdit",
428
+ };
429
+ let scriptTypeMap = {
430
+ 0: "FormScriptEdit",
431
+ 1: "FormScriptEdit1",
432
+ };
433
+ if (row.objType === "FormScript") {
434
+ this.editContent = scriptTypeMap[hData.scriptType];
435
+ } else {
436
+ this.editContent = map[row.objType];
437
+ }
438
+ this.activeName = "first";
439
+ this.$openEditView("showEdit");
440
+ },
441
+ });
442
+ },
443
+ rever(row) {},
444
+ openDesingerDialog(row, callback, readonly = false) {
445
+ this.formCode = row.formCode;
446
+ this.formName = row.formName + " - " + row.version;
447
+ this.currentFormTemplate = row;
448
+ this.isFullscreen = false;
449
+
450
+ this.designerReadonly = readonly;
451
+ this.showDesingerDialog = true;
452
+ this.designerSaveCallback = callback ?? null;
453
+ },
454
+ openDesingerDialogByChild({ row, readonly, callback }) {
455
+ this.openDesingerDialog(row, callback, readonly);
456
+ },
457
+ reflushTemplateList() {
458
+ this.searchEvent();
459
+ this.designerSaveCallback && this.designerSaveCallback();
460
+ },
461
+ handleFullscreen() {
462
+ let isFullscreen = this.isFullscreen;
463
+ if (!isFullscreen) {
464
+ indexUtil.addClass(document.body, "hideMenu");
465
+ } else {
466
+ indexUtil.removeClass(document.body, "hideMenu");
467
+ }
468
+ this.isFullscreen = !isFullscreen;
469
+ },
470
+ handleFormDesignClose() {
471
+ this.formDesTabs = "first";
472
+ this.showFormScriptList = false;
473
+ },
474
+ reverCallback() {
475
+ this.$emit("reverCallback");
476
+ this.dialogClose();
477
+ },
478
+ },
479
+ };
480
+ </script>
481
+ <style scoped lang="scss">
482
+ .grid-height {
483
+ height: calc(100vh - 106px) !important;
484
+ }
485
+ ::v-deep .detail-wrap{
486
+ margin:-8px -10px 0;
487
+ .d-cont {
488
+ height: calc(100vh - 148px) !important;
489
+ }
490
+ }
491
+ </style>
@@ -0,0 +1,58 @@
1
+ <template>
2
+ <a href="javascript:void(0);" class="a-link" @click="openHistoryDialog">
3
+ <el-tooltip
4
+ :enterable="false"
5
+ effect="dark"
6
+ :content="$t1('查看历史版本')"
7
+ placement="top"
8
+ popper-class="tooltip-skin"
9
+ >
10
+ <i class="el-icon-set-up">
11
+ <ftHistoryDialog
12
+ v-if="historyDialogVisible"
13
+ :visiable.sync="historyDialogVisible"
14
+ :objType="objType"
15
+ :objCode="objCode"
16
+ :relationCode="relationCode"
17
+ @reverCallback="reverCallback"
18
+ />
19
+ </i>
20
+ </el-tooltip>
21
+ </a>
22
+ </template>
23
+ <script>
24
+ export default {
25
+ name: "historyLink",
26
+ props: {
27
+ objType: {
28
+ type: String,
29
+ default: null,
30
+ },
31
+ objCode: {
32
+ type: String,
33
+ default: null,
34
+ },
35
+ relationCode: {
36
+ type: String,
37
+ default: null,
38
+ },
39
+ },
40
+ components: {
41
+ ftHistoryDialog: () =>
42
+ import("@base/views/bd/setting/formVersion/ftHistoryDialog.vue"),
43
+ },
44
+ data() {
45
+ return {
46
+ historyDialogVisible: false,
47
+ };
48
+ },
49
+ methods: {
50
+ openHistoryDialog() {
51
+ this.historyDialogVisible = true;
52
+ },
53
+ reverCallback() {
54
+ this.$emit("reverCallback");
55
+ },
56
+ },
57
+ };
58
+ </script>
@@ -0,0 +1,87 @@
1
+ <template>
2
+ <el-dialog
3
+ :title="$t1('您确定要回退当前版本吗?')"
4
+ :visible.sync="showDialog"
5
+ :modal-append-to-body="false"
6
+ :close-on-click-modal="false"
7
+ :modal="false"
8
+ custom-class="dialog-style wf-dialog formVersion-preform-dialog"
9
+ v-el-drag-dialog
10
+ v-el-dialog-center
11
+ @close="closeDialog"
12
+ >
13
+ <el-form ref="editForm" :model="formData">
14
+ <div id="containt">
15
+ <table class="table-detail">
16
+ <tbody>
17
+ <tr>
18
+ <th>
19
+ <span class="t">
20
+ <em class="f-red">*</em>
21
+ {{ $t1("提交内容") }}
22
+ </span>
23
+ </th>
24
+ <td>
25
+ <el-form-item
26
+ prop="logContent"
27
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
28
+ >
29
+ <el-input
30
+ type="textarea"
31
+ :rows="8"
32
+ :placeholder="$attrs.placeholder || $t1('请输入提交内容')"
33
+ v-model="formData.logContent"
34
+ ></el-input>
35
+ </el-form-item>
36
+ </td>
37
+ </tr>
38
+ </tbody>
39
+ </table>
40
+ </div>
41
+ </el-form>
42
+ <span slot="footer" class="dialog-footer">
43
+ <el-button type="primary" plain class="button-sty" @click="closeDialog">
44
+ <i class="el-icon-close el-icon"></i>
45
+ {{ $t1("取 消") }}
46
+ </el-button>
47
+ <el-button type="primary" @click="confirmDialog" class="button-sty">
48
+ <i class="el-icon-check el-icon"></i>
49
+ {{ $t1("确 定") }}
50
+ </el-button>
51
+ </span>
52
+ </el-dialog>
53
+ </template>
54
+ <script>
55
+ export default {
56
+ props: ["visiable"],
57
+ data() {
58
+ return {
59
+ showDialog: true,
60
+ formData: {
61
+ logContent: null,
62
+ },
63
+ };
64
+ },
65
+ methods: {
66
+ closeDialog() {
67
+ this.showDialog = false;
68
+ this.$emit("update:visiable", false);
69
+ },
70
+ confirmDialog() {
71
+ this.$refs.editForm.$baseValidate((valid) => {
72
+ if (valid) {
73
+ this.closeDialog();
74
+ this.$emit("confirm", this.formData);
75
+ }
76
+ });
77
+ },
78
+ },
79
+ };
80
+ </script>
81
+ <style scoped lang="scss">
82
+ ::v-deep .formVersion-preform-dialog {
83
+ .el-dialog__header {
84
+ text-align: left;
85
+ }
86
+ }
87
+ </style>