cloud-web-corejs 1.0.113 → 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 (26) hide show
  1. package/package.json +1 -1
  2. package/src/components/wf/content.vue +106 -27
  3. package/src/components/wf/wf.js +1 -3
  4. package/src/components/xform/form-designer/designer.js +3 -2
  5. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
  6. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
  7. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +1 -1
  8. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  9. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
  10. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
  11. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +323 -202
  12. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
  13. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
  14. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +3 -1
  15. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +778 -666
  16. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  17. package/src/components/xform/form-render/indexMixin.js +1 -1
  18. package/src/components/xform/lang/zh-CN.js +2 -0
  19. package/src/utils/vab.js +3 -3
  20. package/src/views/user/form/vform/out_render.vue +1 -1
  21. package/src/views/user/form/vform/render.vue +8 -4
  22. package/src/views/user/form/view/edit.vue +38 -37
  23. package/src/views/user/form/view/list.vue +27 -7
  24. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
  25. package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
  26. package/src/views/user/wf/wf_obj_config/list.vue +19 -1
@@ -13,12 +13,12 @@
13
13
  :index-of-parent-list="indexOfParentList" :class="widget.options.isFullscreen ? 'full-height':''">
14
14
  <div class="detail-wrap grid-container" :key="widget.id"
15
15
  :class="{'selected': selected}" @click.stop="selectWidget(widget)">
16
- <div class="d-header clearfix">
17
- <div class="fl">
16
+ <div class="d-header clearfix" style="height: auto;">
17
+ <div class="fl" style="width: 20%;overflow: hidden;height: 40px;">
18
18
  <i class="el-icon-info"/>
19
19
  {{ widget.options.label }}
20
20
  </div>
21
- <div class="fr">
21
+ <div class="fr" style="overflow: auto;">
22
22
  <div class="grid-cell">
23
23
  <draggable
24
24
  :list="widget.widgetList"
@@ -0,0 +1,89 @@
1
+ <template>
2
+ <static-content-wrapper :designer="designer" :field="field" :design-state="designState" :display-style="field.options.displayStyle"
3
+ :parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
4
+ :sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex" :sub-form-row-id="subFormRowId">
5
+ <el-button class="button-sty" @click="clickHandle" icon="el-icon-document-copy" :disabled="!designState && field.options.disabled">
6
+ {{ getI18nLabel(field.options.label)}}
7
+ </el-button>
8
+ </static-content-wrapper>
9
+ </template>
10
+
11
+ <script>
12
+ import StaticContentWrapper from './static-content-wrapper'
13
+ import emitter from '../../../../../components/xform/utils/emitter'
14
+ import i18n from "../../../../../components/xform/utils/i18n";
15
+ import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
16
+
17
+ export default {
18
+ name: "copy_button-widget",
19
+ componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
20
+ mixins: [emitter, fieldMixin, i18n],
21
+ props: {
22
+ field: Object,
23
+ parentWidget: Object,
24
+ parentList: Array,
25
+ indexOfParentList: Number,
26
+ designer: Object,
27
+
28
+ designState: {
29
+ type: Boolean,
30
+ default: false
31
+ },
32
+
33
+ subFormRowIndex: { /* 子表单组件行索引,从0开始计数 */
34
+ type: Number,
35
+ default: -1
36
+ },
37
+ subFormColIndex: { /* 子表单组件列索引,从0开始计数 */
38
+ type: Number,
39
+ default: -1
40
+ },
41
+ subFormRowId: { /* 子表单组件行Id,唯一id且不可变 */
42
+ type: String,
43
+ default: ''
44
+ },
45
+
46
+ },
47
+ components: {
48
+ StaticContentWrapper,
49
+ },
50
+ computed: {
51
+
52
+ },
53
+ beforeCreate() {
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
+ clickHandle(){
75
+ if(this.designState || this.field.options.disabled)return
76
+ let copyData = this.$baseLodash.cloneDeep(this.formModel);
77
+
78
+ this.handleCustomEvent(this.field.options.copyDataHandle, ["copyData"], [copyData])
79
+ this.getFormRef().openCopyEditTab(copyData);
80
+ }
81
+ }
82
+
83
+ }
84
+ </script>
85
+
86
+ <style lang="scss" scoped>
87
+ @import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
88
+
89
+ </style>
@@ -166,7 +166,7 @@ export default {
166
166
 
167
167
  labelWidth() {
168
168
  if (!!this.field.options.labelHidden) {
169
- return !!this.designState ? 5 : 0 //设计期间标签最小宽度5像素,以便于鼠标点击可选中组件!!
169
+ return (!!this.designState ? 5 : 0)+"px" //设计期间标签最小宽度5像素,以便于鼠标点击可选中组件!!
170
170
  }
171
171
 
172
172
  if (!!this.field.options.labelWidth) {
@@ -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>