cloud-web-corejs 1.0.54-dev.366 → 1.0.54-dev.368

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.
@@ -22,6 +22,9 @@
22
22
  <el-form-item label="查询列表">
23
23
  <el-switch v-model="optionModel.isQueryTable"></el-switch>
24
24
  </el-form-item>
25
+ <el-form-item label="是否显示查询按钮">
26
+ <el-switch v-model="isShowQueryButton"></el-switch>
27
+ </el-form-item>
25
28
  <el-form-item :label="i18nt('designer.setting.showPagination')">
26
29
  <el-switch v-model="optionModel.showPagination"></el-switch>
27
30
  </el-form-item>
@@ -211,162 +214,6 @@
211
214
  </template>
212
215
  <code-editor mode="json" :readonly="!1" v-model="tableDataOptions"></code-editor>
213
216
  </el-dialog>
214
- <!-- <el-dialog
215
- v-if="dialogVisible"
216
- custom-class="dialog-style list-dialog"
217
- :title="i18nt('designer.setting.tableColEdit')"
218
- :visible.sync="dialogVisible"
219
- :show-close="!0"
220
- :append-to-body="false"
221
- :modal="false"
222
- :close-on-click-modal="!1"
223
- :close-on-press-escape="!1"
224
- :destroy-on-close="!0"
225
- width="1220px"
226
- v-dialog-drag
227
- >
228
- <div class="cont">
229
- <template slot="footer">
230
- <div class="dialog-footer">
231
- <el-button type="" @click="dialogVisible = !1" class="button-sty" icon="el-icon-close">
232
- {{ i18nt('designer.hint.cancel') }}
233
- </el-button>
234
- <el-button type="primary" @click="colSubmit" class="button-sty" icon="el-icon-check">
235
- {{ i18nt('designer.hint.confirm') }}
236
- </el-button>
237
-
238
- </div>
239
- </template>
240
- <el-table
241
- ref="singleTable"
242
- width="100%"
243
- :data="optionModel.tableColumns"
244
-
245
- height="500"
246
- border=""
247
- row-key="columnId"
248
- stripe=""
249
- >
250
- <el-table-column type="index" width="35" fixed="left"></el-table-column>
251
- <el-table-column label="" width="35"><i class="el-icon-s-operation drag-option"></i></el-table-column>
252
- <el-table-column :label="i18nt('designer.setting.columnLabel')" width="150" prop="label">
253
- <template slot-scope="scope">
254
- <el-input v-model="scope.row.label"></el-input>
255
- </template>
256
- </el-table-column>
257
- <el-table-column :label="i18nt('designer.setting.columnName')" width="150" prop="prop">
258
- <template slot-scope="scope">
259
- <el-input v-model="scope.row.prop"></el-input>
260
- </template>
261
- </el-table-column>
262
- <el-table-column :label="i18nt('designer.setting.columnWidth')" width="100" prop="width">
263
- <template slot-scope="scope">
264
- <el-input v-model="scope.row.width"></el-input>
265
- </template>
266
- </el-table-column>
267
- <el-table-column :label="i18nt('designer.setting.visibleColumn')" width="70" prop="show">
268
- <template slot-scope="scope">
269
- <el-switch v-model="scope.row.show"></el-switch>
270
- </template>
271
- </el-table-column>
272
- <el-table-column :label="i18nt('必填')" width="70" prop="required">
273
- <template slot-scope="scope">
274
- <el-switch v-model="scope.row.required"></el-switch>
275
- </template>
276
- </el-table-column>
277
- <el-table-column :label="i18nt('designer.setting.sortableColumn')" width="70" prop="sortable">
278
- <template slot-scope="scope">
279
- <el-switch v-model="scope.row.sortable"></el-switch>
280
- </template>
281
- </el-table-column>
282
- <el-table-column :label="i18nt('designer.setting.fixedColumn')" width="100" prop="fixed">
283
- <template slot-scope="scope">
284
- <el-select v-model="scope.row.fixed" clearable>
285
- <el-option value="left">left</el-option>
286
- <el-option value="right">right</el-option>
287
- </el-select>
288
- </template>
289
- </el-table-column>
290
- &lt;!&ndash; <el-table-column :label="i18nt('designer.setting.alignTypeOfColumn')" width="100" prop="align">
291
- <template slot-scope="scope">
292
- <el-select v-model="scope.row.align">
293
- <el-option v-for="(e,index) in alignOptions" :key="index" :value="e.value" :label="e.label"></el-option>
294
- </el-select>
295
- </template>
296
- </el-table-column>&ndash;&gt;
297
- <el-table-column :label="i18nt('designer.setting.formatOfColumn')" width="200" prop="formatS">
298
- <template slot-scope="scope">
299
- <el-select v-model="scope.row.formatS" @change="changeFormatS(scope.row)" clearable>
300
- <el-option-group :label="i18nt('designer.setting.customRenderGroup')">
301
- <el-option value="render" label="render"></el-option>
302
- </el-option-group>
303
- <el-option-group v-for="t in op" :key="t.label" :label="t.label">
304
- <el-option v-for="e in t.options" :key="e.value" :value="e.value" :label="e.label"></el-option>
305
- </el-option-group>
306
- </el-select>
307
- </template>
308
- </el-table-column>
309
- <el-table-column label="格式化配置" width="70" fixed="right" align="center">
310
- <template slot-scope="scope">
311
- <el-button size="mini" plain="" round="" icon="el-icon-edit"
312
- @click="openFormatConfigDialog(scope.row,scope.$index)"
313
- :disabled="!columnFormatMap[scope.row.formatS]"></el-button>
314
- </template>
315
- </el-table-column>
316
- <el-table-column :label="i18nt('designer.setting.renderFunction')" width="70" fixed="right" align="center">
317
- <template slot-scope="scope">
318
- <el-button :disabled="'render' !== scope.row.formatS" size="mini" plain="" round="" icon="el-icon-edit"
319
- @click="showRenderDialog(scope.row)"></el-button>
320
- </template>
321
- </el-table-column>
322
- <el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" fixed="right" align="center">
323
- <template #header>
324
- <span>{{ i18nt('designer.setting.actionColumn') }}</span>
325
- &lt;!&ndash; <el-button :title="i18nt('designer.setting.addTableColumn')" size="mini" type="" circle=""
326
- icon="el-icon-plus" @click="openFieldTreeDialog"></el-button>&ndash;&gt;
327
- </template>
328
- <template slot-scope="scope">
329
- <el-button :title="i18nt('designer.setting.addTableColumn')" size="mini" type="" circle=""
330
- icon="el-icon-plus" @click="addCol"></el-button>
331
- <el-button
332
- :title="i18nt('designer.setting.deleteTableColumn')"
333
- size="mini"
334
- type=""
335
- circle=""
336
- icon="el-icon-minus"
337
- @click="handleDelete(scope.$index, scope.row)"
338
- ></el-button>
339
- </template>
340
- </el-table-column>
341
-
342
- </el-table>
343
- </div>
344
-
345
- </el-dialog>-->
346
- <!-- <el-dialog
347
- v-if="showRenderDialogFlag"
348
- :title="i18nt('designer.setting.renderFunction')"
349
- :visible.sync="showRenderDialogFlag"
350
- append-to-body=""
351
- :show-close="!0"
352
- custom-class="dialog-style list-dialog"
353
- :close-on-click-modal="!1"
354
- :close-on-press-escape="!1"
355
- :destroy-on-close="!0"
356
- v-dialog-drag
357
- >
358
- <el-alert type="info" :closable="!1" title="function customRender(params,h) {"/>
359
- <code-editor ref="dsResultEditor" mode="javascript" :readonly="!1" v-model="renderJson"></code-editor>
360
- <el-alert type="info" :closable="!1" title="}"/>
361
- <div class="dialog-footer" slot="footer">
362
- <el-button @click="showRenderDialogFlag = !1" class="button-sty" icon="el-icon-close">
363
- {{ i18nt('designer.hint.cancel') }}
364
- </el-button>
365
- <el-button type="primary" @click="saveColumnRender" class="button-sty" icon="el-icon-check">
366
- {{ i18nt('designer.hint.confirm') }}
367
- </el-button>
368
- </div>
369
- </el-dialog>-->
370
217
  <el-dialog
371
218
  v-if="showSqlEditDialog"
372
219
  :title="i18nt('数据源SQL编辑')"
@@ -457,111 +304,6 @@
457
304
  </el-button>
458
305
  </span>
459
306
  </el-dialog>
460
- <!-- <el-dialog
461
- v-if="showDateConfigDialog"
462
- :title="i18nt('日期配置编辑')"
463
- :visible.sync="showDateConfigDialog"
464
- append-to-body=""
465
- :show-close="!0"
466
- custom-class="dialog-style list-dialog"
467
- :close-on-click-modal="!1"
468
- :close-on-press-escape="!1"
469
- :destroy-on-close="!0"
470
- v-dialog-drag
471
- >
472
- <div class="cont">
473
- <el-form>
474
- <template v-for="(editorName, index) in dateFieldList">
475
- <component
476
- :is="editorName"
477
- :designer="designer"
478
- :selected-widget="selectedWidget"
479
- :option-model="columnOption"
480
- :key="index"
481
- ></component>
482
- </template>
483
- </el-form>
484
- </div>
485
- <div class="dialog-footer" slot="footer">
486
- <el-button @click="showDateConfigDialog = !1" class="button-sty" icon="el-icon-close">
487
- {{ i18nt('designer.hint.cancel') }}
488
- </el-button>
489
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="confirmDateConfigDialog">
490
- {{ i18nt('designer.hint.confirm') }}
491
- </el-button>
492
- </div>
493
- </el-dialog>-->
494
- <!-- <el-dialog
495
- v-if="showDateConfigDialog"
496
- :title="i18nt('日期配置编辑')"
497
- :visible.sync="showDateConfigDialog"
498
- append-to-body=""
499
- :show-close="!0"
500
- custom-class="dialog-style list-dialog"
501
- :close-on-click-modal="!1"
502
- :close-on-press-escape="!1"
503
- :destroy-on-close="!0"
504
- v-dialog-drag
505
- >
506
- <div class="cont">
507
- <el-scrollbar class="setting-scrollbar">
508
- <el-form :model="columnOption" size="mini" label-position="left" label-width="120px" class="setting-form"
509
- @submit.native.prevent>
510
- <el-collapse v-model="widgetActiveCollapseNames" class="setting-collapse">
511
- <el-collapse-item name="1" v-if="showCollapse(commonProps)"
512
- :title="i18nt('designer.setting.commonSetting')">
513
- <template v-for="(editorName, propName) in commonProps">
514
- <component
515
- v-if="hasPropEditor(propName, editorName)"
516
- :is="getPropEditor(propName, editorName)"
517
- :designer="designer"
518
- :selected-widget="columnSelectedWidget"
519
- :option-model="columnOption"
520
- :key="propName"
521
- ></component>
522
- </template>
523
- </el-collapse-item>
524
-
525
- <el-collapse-item name="2" v-if="showCollapse(advProps)"
526
- :title="i18nt('designer.setting.advancedSetting')">
527
- <template v-for="(editorName, propName) in advProps">
528
- <component
529
- v-if="hasPropEditor(propName, editorName)"
530
- :is="getPropEditor(propName, editorName)"
531
- :designer="designer"
532
- :selected-widget="selectedWidget"
533
- :option-model="columnOption"
534
- :key="propName"
535
- ></component>
536
- </template>
537
- </el-collapse-item>
538
-
539
- <el-collapse-item name="3" v-if="showEventCollapse() && showCollapse(eventProps)"
540
- :title="i18nt('designer.setting.eventSetting')">
541
- <template v-for="(editorName, propName) in eventProps">
542
- <component
543
- v-if="hasPropEditor(propName, editorName)"
544
- :is="getPropEditor(propName, editorName)"
545
- :designer="designer"
546
- :selected-widget="selectedWidget"
547
- :option-model="columnOption"
548
- :key="propName"
549
- ></component>
550
- </template>
551
- </el-collapse-item>
552
- </el-collapse>
553
- </el-form>
554
- </el-scrollbar>
555
- </div>
556
- <div class="dialog-footer" slot="footer">
557
- <el-button @click="showDateConfigDialog = !1" class="button-sty" icon="el-icon-close">
558
- {{ i18nt('designer.hint.cancel') }}
559
- </el-button>
560
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="confirmDateConfigDialog">
561
- {{ i18nt('designer.hint.confirm') }}
562
- </el-button>
563
- </div>
564
- </el-dialog>-->
565
307
  <tableColumnDialog
566
308
  v-if="dialogVisible"
567
309
  :visiable.sync="dialogVisible"
@@ -578,7 +320,7 @@ import Draggable from "vuedraggable";
578
320
  import { deepClone, generateId } from "../../../../../../components/xform/utils/util";
579
321
  import Sortable from "sortablejs";
580
322
  import requestaccessDialog from "../../../../../../views/user/form/report_requestaccess/dialog.vue";
581
- import conditionEditor from "./condition-editor.vue";
323
+ // import conditionEditor from "./condition-editor.vue";
582
324
  import tableColumnDialog from "./table-column-dialog.vue";
583
325
  import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
584
326
  import setttingConfig from "@/settings";
@@ -590,7 +332,7 @@ export default {
590
332
  components: {
591
333
  Draggable,
592
334
  requestaccessDialog,
593
- conditionEditor,
335
+ // conditionEditor,
594
336
  tableColumnDialog,
595
337
  },
596
338
  props: {
@@ -805,6 +547,14 @@ export default {
805
547
  this.optionModel.isNotQueryAllPage = !val;
806
548
  },
807
549
  },
550
+ isShowQueryButton: {
551
+ get() {
552
+ return !this.optionModel.isNotShowQueryButton;
553
+ },
554
+ set(val) {
555
+ this.optionModel.isNotShowQueryButton = !val;
556
+ },
557
+ },
808
558
  },
809
559
  created: function () {
810
560
  // this.reportTemplate = this.getReportTemplate();
@@ -54,6 +54,9 @@
54
54
  <i class="el-icon-edit"></i>
55
55
  </a>
56
56
  </el-form-item>
57
+ <el-form-item label="隐藏取消按钮" label-width="150px">
58
+ <el-switch v-model="optionModel.hideCancelButton"></el-switch>
59
+ </el-form-item>
57
60
 
58
61
  <bdAttachSettingDialog v-if="showBdAttachSettingDialog" :visiable.sync="showBdAttachSettingDialog" :multi="false"
59
62
  @confirm="confirmBdAttachSettingDialog"></bdAttachSettingDialog>
@@ -41,6 +41,9 @@
41
41
  <i class="el-icon-edit"></i>
42
42
  </a>
43
43
  </el-form-item>
44
+ <el-form-item label="隐藏取消按钮" label-width="150px">
45
+ <el-switch v-model="optionModel.hideCancelButton"></el-switch>
46
+ </el-form-item>
44
47
 
45
48
  <bdAttachSettingDialog v-if="showBdAttachSettingDialog" :visiable.sync="showBdAttachSettingDialog" :multi="false"
46
49
  @confirm="confirmBdAttachSettingDialog"></bdAttachSettingDialog>
@@ -7,7 +7,7 @@
7
7
  placeholder="默认表单模板编码"
8
8
  ></el-input>
9
9
  </el-form-item>
10
- <el-form-item label="确认回调" label-width="150px">
10
+ <el-form-item label="暂存回填完成回调" label-width="150px">
11
11
  <a
12
12
  href="javascript:void(0);"
13
13
  class="a-link link-oneLind"
@@ -300,6 +300,7 @@ export const containers = [
300
300
  showRules: [],
301
301
  hideGridCheckBox: false,
302
302
  isNotQueryAllPage: false,
303
+ isNotShowQueryButton: false,
303
304
  },
304
305
  },
305
306
  /*{
@@ -3061,6 +3062,7 @@ export const advancedFields = [
3061
3062
  enabledImportPreHandle: false,
3062
3063
  tableRef: "",
3063
3064
  onSuccessImport: "",
3065
+ hideCancelButton:false,
3064
3066
 
3065
3067
  showRuleFlag: 1,
3066
3068
  showRuleEnabled: 1,
@@ -3107,6 +3109,7 @@ export const advancedFields = [
3107
3109
  onConfirmImportEnabled: false,
3108
3110
  onConfirmImport: "",
3109
3111
  onSuccessImport: "",
3112
+ hideCancelButton:false,
3110
3113
 
3111
3114
  showRuleFlag: 1,
3112
3115
  showRuleEnabled: 1,
@@ -14,101 +14,6 @@
14
14
  v-on="eventConfig"
15
15
  >
16
16
  <template #form>
17
- <!-- <div v-if="widget.options.showSearchArea" class="clearfix screen-btns">
18
- <div class="fl">
19
- &lt;!&ndash; <vxe-button status="primary" class="button-sty" icon="el-icon-upload2"
20
- @click="$excelExport({ title: '导出', targetRef: 'grid' + widget.id })"
21
- v-if="widget.options.showExportBtn!==false">导出
22
- </vxe-button>&ndash;&gt;
23
-
24
- <template v-if="!!widget.buttons && widget.buttons.length > 0">
25
- <template v-for="(subWidget, swIdx) in widget.buttons">
26
- <template v-if="'container' === subWidget.category">
27
- <component
28
- :is="subWidget.type + '-item'"
29
- :widget="subWidget"
30
- :key="swIdx"
31
- :parent-list="widget.buttons"
32
- :index-of-parent-list="swIdx"
33
- :parent-widget="widget"
34
- >
35
- &lt;!&ndash; 递归传递插槽!!! &ndash;&gt;
36
- <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
37
- <slot :name="slot" v-bind="scope"/>
38
- </template>
39
- </component>
40
- </template>
41
- <template v-else>
42
- <component
43
- :is="subWidget.type + '-widget'"
44
- :field="subWidget"
45
- :designer="null"
46
- :key="swIdx"
47
- :parent-list="widget.buttons"
48
- :index-of-parent-list="swIdx"
49
- :parent-widget="widget"
50
- >
51
- &lt;!&ndash; 递归传递插槽!!! &ndash;&gt;
52
- <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
53
- <slot :name="slot" v-bind="scope"/>
54
- </template>
55
- </component>
56
- </template>
57
- </template>
58
- </template>
59
-
60
- </div>
61
- <div class="fr">
62
- &lt;!&ndash; <vxe-button icon="el-icon-view" class="button-sty" @click="searchEvent">显示总记录数</vxe-button> &ndash;&gt;
63
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
64
- plain>重置
65
- </vxe-button>
66
-
67
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
68
- </vxe-button>
69
- </div>
70
- </div>
71
- <div v-if="widget.options.showSearchArea && widget.widgetList.length != 0" ref="searchForm"
72
- class="screen-box vxe-form" title-width="92px" title-align="right">
73
- <template v-if="!!widget.widgetList && widget.widgetList.length > 0">
74
- <template v-for="(subWidget, swIdx) in widget.widgetList">
75
- <template v-if="'container' === subWidget.category">
76
- <component
77
- :is="subWidget.type + '-item'"
78
- :widget="subWidget"
79
- :key="swIdx"
80
- :parent-list="widget.widgetList"
81
- :index-of-parent-list="swIdx"
82
- :parent-widget="widget"
83
- formItemType="vxe-form-item"
84
- >
85
- &lt;!&ndash; 递归传递插槽!!! &ndash;&gt;
86
- <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
87
- <slot :name="slot" v-bind="scope"/>
88
- </template>
89
- </component>
90
- </template>
91
- <template v-else>
92
- <component
93
- :is="subWidget.type + '-widget'"
94
- :field="subWidget"
95
- :designer="null"
96
- :key="swIdx"
97
- :parent-list="widget.widgetList"
98
- :index-of-parent-list="swIdx"
99
- :parent-widget="widget"
100
- formItemType="vxe-form-item"
101
- >
102
- &lt;!&ndash; 递归传递插槽!!! &ndash;&gt;
103
- <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
104
- <slot :name="slot" v-bind="scope"/>
105
- </template>
106
- </component>
107
- </template>
108
- </template>
109
- </template>
110
- </div>-->
111
-
112
17
  <tableForm
113
18
  v-if="widget.options.isQueryTable"
114
19
  :formData.sync="formModel"
@@ -225,24 +130,6 @@
225
130
  @confirm="confirmTreeMoveDialog"
226
131
  ></treeMoveDialog>
227
132
  </template>
228
- <!-- <template v-for="fieldWidget in widgets" v-slot:[fieldWidget.id]="obj">
229
- <component
230
- :is="getColumnWidgetName(fieldWidget)"
231
- :field="fieldWidget"
232
- :form-model="globalModel.formModel"
233
- :designer="null"
234
- :key="fieldWidget.id+'-'+obj.rowIndex"
235
- :parent-widget="widget"
236
- :columnConfig="obj.column.params.columnConfig"
237
- :subFormRowIndex="obj.rowIndex"
238
- :formItemProp="getColumnProp(widget,obj)"
239
- :tableParam="obj"
240
- >
241
- <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
242
- <slot :name="slot" v-bind="scope"/>
243
- </template>
244
- </component>
245
- </template>-->
246
133
  <template #widget="obj">
247
134
  <template v-if="!!getTableColumnWidget(obj)">
248
135
  <template v-if="obj.column.params.widget.type == 'status'">
@@ -400,30 +287,6 @@
400
287
  </template>
401
288
  </div>
402
289
  </template>
403
- <!-- <template #editDelete="obj">
404
- <a
405
- href="javascript:void(0);"
406
- class="a-link"
407
- @click="deleteRow(obj.row,obj.rowIndex)"
408
- :key="obj.rowIndex+'-editDelete'"
409
- v-show="!hasWf"
410
- >
411
- <el-tooltip :enterable="false" effect="dark" content="删除" placement="top" popper-class="tooltip-skin">
412
- <i class="el-icon-delete"/>
413
- </el-tooltip>
414
- </a>
415
- </template>
416
- <template #editButton="obj">
417
- <a
418
- href="javascript:void(0);"
419
- class="a-link"
420
- @click="openEditDialog(obj.row)"
421
- >
422
- <el-tooltip :enterable="false" effect="dark" content="查看" placement="top" popper-class="tooltip-skin">
423
- <i class="el-icon-edit"/>
424
- </el-tooltip>
425
- </a>
426
- </template>-->
427
290
  </vxe-grid>
428
291
  </template>
429
292