cloud-web-corejs 1.0.112 → 1.0.114

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 (27) hide show
  1. package/package.json +1 -1
  2. package/src/components/table/vxeFilter/mixin.js +6 -6
  3. package/src/components/wf/content.vue +106 -27
  4. package/src/components/wf/wf.js +1 -3
  5. package/src/components/xform/form-designer/designer.js +3 -2
  6. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
  7. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
  8. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +632 -632
  9. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  10. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
  11. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
  12. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +323 -202
  13. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
  14. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
  15. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +3 -1
  16. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +778 -666
  17. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  18. package/src/components/xform/form-render/indexMixin.js +1 -1
  19. package/src/components/xform/lang/zh-CN.js +2 -0
  20. package/src/utils/vab.js +3 -3
  21. package/src/views/user/form/vform/out_render.vue +1 -1
  22. package/src/views/user/form/vform/render.vue +8 -4
  23. package/src/views/user/form/view/edit.vue +38 -37
  24. package/src/views/user/form/view/list.vue +27 -7
  25. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
  26. package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
  27. package/src/views/user/wf/wf_obj_config/list.vue +19 -1
@@ -6,7 +6,7 @@
6
6
  :sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex"
7
7
  :sub-form-row-id="subFormRowId">
8
8
  <el-button class="button-sty" @click="handleButtonWidgetClick" icon="el-icon-search" :disabled="!designState &&field.options.disabled">
9
- {{ field.options.label }}
9
+ {{ getI18nLabel(field.options.label)}}
10
10
  </el-button>
11
11
  </static-content-wrapper>
12
12
  </template>
@@ -0,0 +1,86 @@
1
+ <template>
2
+ <static-content-wrapper
3
+ :designer="designer" :field="field" :design-state="designState"
4
+ :display-style="field.options.displayStyle"
5
+ :parent-widget="parentWidget" :parent-list="parentList"
6
+ :index-of-parent-list="indexOfParentList">
7
+ <el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-upload2" @click="toDo('selected')"
8
+ :disabled="field.options.disabled">{{ getI18nLabel(field.options.label)}}
9
+ </el-button>
10
+ </static-content-wrapper>
11
+
12
+ </template>
13
+ <script>
14
+ import emitter from '../../../../../components/xform/utils/emitter'
15
+ import i18n from "../../../../../components/xform/utils/i18n";
16
+ import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
17
+ import StaticContentWrapper
18
+ from "../../../../../components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue";
19
+
20
+ export default {
21
+ name: 'select-export-button-widget',
22
+ components: {StaticContentWrapper},
23
+ componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
24
+ mixins: [emitter, fieldMixin, i18n],
25
+ props: {
26
+ field: Object,
27
+ parentWidget: Object,
28
+ parentList: Array,
29
+ indexOfParentList: Number,
30
+ designer: Object,
31
+ designState: {
32
+ type: Boolean,
33
+ default: false
34
+ }
35
+ },
36
+ data() {
37
+ return {}
38
+ },
39
+ beforeCreate() {
40
+ /* 这里不能访问方法和属性!! */
41
+ },
42
+
43
+ created() {
44
+ /* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
45
+ 需要在父组件created中初始化!! */
46
+ this.registerToRefList()
47
+ this.initEventHandler()
48
+
49
+ this.handleOnCreated()
50
+ },
51
+
52
+ mounted() {
53
+ this.handleOnMounted()
54
+ },
55
+
56
+ beforeDestroy() {
57
+ this.unregisterFromRefList()
58
+ },
59
+
60
+ methods: {
61
+ toDo(type = null) {
62
+ if (this.designState) {
63
+ return
64
+ }
65
+ let opt = {
66
+ title: this.field.options.exportFileName || null,
67
+ targetRef: this.field.options.tableRef || null,
68
+ pageSize: (this.field.options.exportPageSize || null),
69
+ showImageAtTable: this.field.options.showImageAtTable || null
70
+ };
71
+ let tableExportParam = this.handleCustomEvent(this.field.options.tableExportParam);
72
+ let options = {...opt, ...tableExportParam, type: type};
73
+ let tableRef = options?.targetRef;
74
+ delete options.targetRef
75
+ let tableWidget = this.getWidgetRef(tableRef);
76
+ tableWidget.exportData(options)
77
+ }
78
+ }
79
+
80
+ }
81
+ </script>
82
+
83
+ <style lang="scss" scoped>
84
+ @import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
85
+
86
+ </style>
@@ -0,0 +1,99 @@
1
+ <template>
2
+ <static-content-wrapper
3
+ :designer="designer" :field="field" :design-state="designState"
4
+ :display-style="field.options.displayStyle"
5
+ :parent-widget="parentWidget" :parent-list="parentList"
6
+ :index-of-parent-list="indexOfParentList">
7
+ <el-dropdown trigger="hover">
8
+ <el-button type="primary" class="button-sty" size="mini">
9
+ <span>{{ getI18nLabel('列表导出') }}</span><span class="line"></span> <i
10
+ class="el-icon-arrow-down el-icon--right"></i>
11
+ </el-button>
12
+ <el-dropdown-menu slot="dropdown">
13
+ <el-dropdown-item icon="el-icon-upload2"
14
+ @click.native="toDo()">
15
+ {{ getI18nLabel('条件导出') }}
16
+ </el-dropdown-item>
17
+ <el-dropdown-item icon="el-icon-upload2"
18
+ @click.native="toDo('selected')">
19
+ {{ getI18nLabel('选择导出') }}
20
+ </el-dropdown-item>
21
+ </el-dropdown-menu>
22
+ </el-dropdown>
23
+ </static-content-wrapper>
24
+
25
+ </template>
26
+ <script>
27
+ import emitter from '../../../../../components/xform/utils/emitter'
28
+ import i18n from "../../../../../components/xform/utils/i18n";
29
+ import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
30
+ import StaticContentWrapper
31
+ from "../../../../../components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue";
32
+
33
+ export default {
34
+ name: 'TableExportButtonWidget',
35
+ components: {StaticContentWrapper},
36
+ componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
37
+ mixins: [emitter, fieldMixin, i18n],
38
+ props: {
39
+ field: Object,
40
+ parentWidget: Object,
41
+ parentList: Array,
42
+ indexOfParentList: Number,
43
+ designer: Object,
44
+ designState: {
45
+ type: Boolean,
46
+ default: false
47
+ }
48
+ },
49
+ data() {
50
+ return {}
51
+ },
52
+ beforeCreate() {
53
+ /* 这里不能访问方法和属性!! */
54
+ },
55
+
56
+ created() {
57
+ /* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
58
+ 需要在父组件created中初始化!! */
59
+ this.registerToRefList()
60
+ this.initEventHandler()
61
+
62
+ this.handleOnCreated()
63
+ },
64
+
65
+ mounted() {
66
+ this.handleOnMounted()
67
+ },
68
+
69
+ beforeDestroy() {
70
+ this.unregisterFromRefList()
71
+ },
72
+
73
+ methods: {
74
+ toDo(type = null) {
75
+ if (this.designState) {
76
+ return
77
+ }
78
+ let opt = {
79
+ title: this.field.options.exportFileName || null,
80
+ targetRef: this.field.options.tableRef || null,
81
+ pageSize: (this.field.options.exportPageSize || null),
82
+ showImageAtTable: this.field.options.showImageAtTable || null
83
+ };
84
+ let tableExportParam = this.handleCustomEvent(this.field.options.tableExportParam);
85
+ let options = {...opt, ...tableExportParam, type: type};
86
+ let tableRef = options?.targetRef;
87
+ delete options.targetRef
88
+ let tableWidget = this.getWidgetRef(tableRef);
89
+ tableWidget.exportData(options)
90
+ }
91
+ }
92
+
93
+ }
94
+ </script>
95
+
96
+ <style lang="scss" scoped>
97
+ @import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
98
+
99
+ </style>