cloud-web-corejs 1.0.163 → 1.0.164

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 (63) hide show
  1. package/package.json +2 -1
  2. package/src/components/vb-tabs/x-tabs.vue +30 -13
  3. package/src/components/xform/form-designer/designer.js +1 -1
  4. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
  5. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
  6. package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
  7. package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
  8. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +71 -50
  9. package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
  10. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
  11. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +102 -73
  12. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
  13. package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +41 -27
  14. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +4 -1
  15. package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
  16. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +13 -2
  17. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +9 -2
  18. package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
  19. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +2 -1
  20. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
  21. package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
  22. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
  23. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +7 -0
  24. package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -0
  25. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
  26. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +19 -11
  27. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +19 -1
  28. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +11 -7
  29. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +11 -8
  30. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
  31. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
  32. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
  33. package/src/components/xform/form-designer/setting-panel/form-setting.vue +106 -76
  34. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +13 -263
  35. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +47 -81
  36. package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
  37. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
  38. package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
  39. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +37 -16
  40. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +42 -18
  41. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +2 -2
  42. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +57 -34
  43. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +84 -53
  44. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +35 -44
  45. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  46. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +68 -3
  47. package/src/components/xform/form-render/container-item/containerItemMixin.js +2 -2
  48. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  49. package/src/components/xform/form-render/container-item/tab-item.vue +64 -32
  50. package/src/components/xform/form-render/index.vue +69 -23
  51. package/src/components/xform/form-render/indexMixin.js +18 -17
  52. package/src/components/xform/lang/zh-CN.js +8 -2
  53. package/src/components/xform/utils/formula-util.js +306 -5
  54. package/src/components/xform/utils/util.js +1 -1
  55. package/src/components/xform/utils/vue2js-generator.js +2 -2
  56. package/src/utils/request.js +1 -1
  57. package/src/utils/vab.js +1 -1
  58. package/src/views/user/form/vform/render.vue +54 -36
  59. package/src/views/user/form/view/list.vue +103 -10
  60. package/src/views/user/menu/list.vue +24 -1
  61. package/src/views/user/role/authConfig.vue +89 -0
  62. package/src/views/user/role/dialog.vue +70 -48
  63. package/src/views/user/role/edit.vue +114 -4
@@ -1,27 +1,57 @@
1
1
  <template>
2
- <container-item-wrapper :widget="widget" :class="widget.options.isFullscreen ? 'full-height':''">
3
- <div :key="widget.id" class="tab-container" v-show="!widget.options.hidden">
4
- <el-tabs v-model="activeTabName" :type="widget.displayType" :ref="widget.id"
5
- :class="[customClass,widget.options.tabClass]"
6
- :style="{'height': widget.options.isFullscreen ? '' : widget.options.height}">
7
- <el-tab-pane v-for="(tab, index) in visibleTabs" :key="index" :label="getI18nLabel(tab.options.label)"
8
- :disabled="tab.options.disabled" :name="tab.options.name">
2
+ <container-item-wrapper
3
+ :widget="widget"
4
+ :class="widget.options.isFullscreen ? 'full-height' : ''"
5
+ >
6
+ <div :key="widget.id" class="tab-container mHeight" v-show="!widget.options.hidden">
7
+ <el-tabs
8
+ v-model="activeTabName"
9
+ :type="widget.displayType"
10
+ :ref="widget.id"
11
+ :class="[customClass, widget.options.tabClass]"
12
+ :style="{
13
+ height: widget.options.isFullscreen ? '' : widget.options.height || '300px',
14
+ }"
15
+ >
16
+ <el-tab-pane
17
+ v-for="(tab, index) in visibleTabs"
18
+ :key="index"
19
+ :label="getI18nLabel(tab.options.label)"
20
+ :disabled="tab.options.disabled"
21
+ :name="tab.options.name"
22
+ >
9
23
  <template v-for="(subWidget, swIdx) in tab.widgetList">
10
24
  <template v-if="'container' === subWidget.category">
11
- <component :is="subWidget.type + '-item'" :widget="subWidget" :key="swIdx" :parent-list="tab.widgetList"
12
- :index-of-parent-list="swIdx" :parent-widget="widget" :tableParam="tableParam" :formItemProp="formItemProp">
25
+ <component
26
+ :is="subWidget.type + '-item'"
27
+ :widget="subWidget"
28
+ :key="swIdx"
29
+ :parent-list="tab.widgetList"
30
+ :index-of-parent-list="swIdx"
31
+ :parent-widget="widget"
32
+ :tableParam="tableParam"
33
+ :formItemProp="formItemProp"
34
+ >
13
35
  <!-- 递归传递插槽!!! -->
14
36
  <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
15
- <slot :name="slot" v-bind="scope"/>
37
+ <slot :name="slot" v-bind="scope" />
16
38
  </template>
17
39
  </component>
18
40
  </template>
19
41
  <template v-else>
20
- <component :is="subWidget.type + '-widget'" :field="subWidget" :key="swIdx" :parent-list="tab.widgetList"
21
- :index-of-parent-list="swIdx" :parent-widget="widget" :tableParam="tableParam" :formItemProp="formItemProp">
42
+ <component
43
+ :is="subWidget.type + '-widget'"
44
+ :field="subWidget"
45
+ :key="swIdx"
46
+ :parent-list="tab.widgetList"
47
+ :index-of-parent-list="swIdx"
48
+ :parent-widget="widget"
49
+ :tableParam="tableParam"
50
+ :formItemProp="formItemProp"
51
+ >
22
52
  <!-- 递归传递插槽!!! -->
23
53
  <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
24
- <slot :name="slot" v-bind="scope"/>
54
+ <slot :name="slot" v-bind="scope" />
25
55
  </template>
26
56
  </component>
27
57
  </template>
@@ -33,36 +63,36 @@
33
63
  </template>
34
64
 
35
65
  <script>
36
- import emitter from '../../../../components/xform/utils/emitter';
37
- import i18n from '../../../../components/xform/utils/i18n';
38
- import refMixin from '../../../../components/xform/form-render/refMixin';
39
- import ContainerItemWrapper from './container-item-wrapper';
40
- import containerItemMixin from './containerItemMixin';
41
- import FieldComponents from '../../../../components/xform/form-designer/form-widget/field-widget/index';
66
+ import emitter from "../../../../components/xform/utils/emitter";
67
+ import i18n from "../../../../components/xform/utils/i18n";
68
+ import refMixin from "../../../../components/xform/form-render/refMixin";
69
+ import ContainerItemWrapper from "./container-item-wrapper";
70
+ import containerItemMixin from "./containerItemMixin";
71
+ import FieldComponents from "../../../../components/xform/form-designer/form-widget/field-widget/index";
42
72
 
43
73
  export default {
44
- name: 'tab-item',
45
- componentName: 'ContainerItem',
74
+ name: "tab-item",
75
+ componentName: "ContainerItem",
46
76
  mixins: [emitter, i18n, refMixin, containerItemMixin],
47
77
  components: {
48
78
  ContainerItemWrapper,
49
- ...FieldComponents
79
+ ...FieldComponents,
50
80
  },
51
81
  props: {
52
- widget: Object
82
+ widget: Object,
53
83
  },
54
- inject: ['refList', 'sfRefList', 'globalModel'],
84
+ inject: ["refList", "sfRefList", "globalModel"],
55
85
  data() {
56
86
  return {
57
- activeTabName: ''
87
+ activeTabName: "",
58
88
  };
59
89
  },
60
90
  computed: {
61
91
  visibleTabs() {
62
- return this.widget.tabs.filter(tp => {
92
+ return this.widget.tabs.filter((tp) => {
63
93
  return !tp.options.hidden;
64
94
  });
65
- }
95
+ },
66
96
  },
67
97
  created() {
68
98
  this.initRefList();
@@ -75,8 +105,8 @@ export default {
75
105
  },
76
106
  methods: {
77
107
  initActiveTab() {
78
- if (this.widget.type === 'tab' && this.widget.tabs.length > 0) {
79
- let activePanes = this.widget.tabs.filter(tp => {
108
+ if (this.widget.type === "tab" && this.widget.tabs.length > 0) {
109
+ let activePanes = this.widget.tabs.filter((tp) => {
80
110
  return tp.options.active === true;
81
111
  });
82
112
  if (activePanes.length > 0) {
@@ -85,9 +115,11 @@ export default {
85
115
  this.activeTabName = this.widget.tabs[0].options.name;
86
116
  }
87
117
  }
88
- }
89
- }
118
+ },
119
+ },
90
120
  };
91
121
  </script>
92
122
 
93
- <style lang="scss" scoped></style>
123
+ <style lang="scss" scoped>
124
+ ::v-deep .mHeight .el-tabs .el-tabs__content{min-height:312px}
125
+ </style>
@@ -24,12 +24,18 @@
24
24
  <template v-if="showFormContent">
25
25
  <template v-for="(widget, index) in widgetList">
26
26
  <template v-if="'container' === widget.category">
27
- <component :is="getContainerWidgetName(widget)" :widget="widget" :field="widget" :key="widget.id"
28
- :parent-list="widgetList"
29
- :index-of-parent-list="index" :parent-widget="null">
27
+ <component
28
+ :is="getContainerWidgetName(widget)"
29
+ :widget="widget"
30
+ :field="widget"
31
+ :key="widget.id"
32
+ :parent-list="widgetList"
33
+ :index-of-parent-list="index"
34
+ :parent-widget="null"
35
+ >
30
36
  <!-- 递归传递插槽!!! -->
31
37
  <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
32
- <slot :name="slot" v-bind="scope"/>
38
+ <slot :name="slot" v-bind="scope" />
33
39
  </template>
34
40
  </component>
35
41
  </template>
@@ -46,40 +52,80 @@
46
52
  >
47
53
  <!-- 递归传递插槽!!! -->
48
54
  <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
49
- <slot :name="slot" v-bind="scope"/>
55
+ <slot :name="slot" v-bind="scope" />
50
56
  </template>
51
57
  </component>
52
58
  </template>
53
59
  </template>
54
60
  </template>
55
61
  </el-form>
56
- <searchFormDialog v-if="showSearchDialog" :visiable.sync="showSearchDialog"
57
- :option="searchDialogOption"></searchFormDialog>
58
- <formDialog v-if="showFormDialog" :visiable.sync="showFormDialog" :option="formDialogOption"></formDialog>
59
- <importDialog v-if="showImportDialog" :visiable.sync="showImportDialog" :param="importDialogOption"
60
- :parentTarget="_self"></importDialog>
61
- <formDrawer v-if="showFormDrawer" :visiable.sync="showFormDrawer" :option="formDrawerOption"></formDrawer>
62
- <fileReferenceDialog v-if="showFileReferenceDialog" :visiable.sync="showFileReferenceDialog" :option="fileReferenceDialogOption"></fileReferenceDialog>
62
+ <searchFormDialog
63
+ v-if="showSearchDialog"
64
+ :visiable.sync="showSearchDialog"
65
+ ref="searchFormDialog"
66
+ :option="searchDialogOption"
67
+ ></searchFormDialog>
68
+ <formDialog
69
+ v-if="showFormDialog"
70
+ :visiable.sync="showFormDialog"
71
+ ref="formDialog"
72
+ :option="formDialogOption"
73
+ ></formDialog>
74
+ <importDialog
75
+ v-if="showImportDialog"
76
+ :visiable.sync="showImportDialog"
77
+ :param="importDialogOption"
78
+ :parentTarget="_self"
79
+ ></importDialog>
80
+ <formDrawer
81
+ v-if="showFormDrawer"
82
+ :visiable.sync="showFormDrawer"
83
+ :option="formDrawerOption"
84
+ ></formDrawer>
85
+ <fileReferenceDialog
86
+ v-if="showFileReferenceDialog"
87
+ :visiable.sync="showFileReferenceDialog"
88
+ :option="fileReferenceDialogOption"
89
+ ></fileReferenceDialog>
90
+ <formulaDialog
91
+ v-if="formulaDialogVisible"
92
+ :visiable.sync="formulaDialogVisible"
93
+ :option="formulaDialogOption"
94
+ ></formulaDialog>
95
+ <baseFormulaDialog
96
+ v-if="baseFormulaDialogVisible"
97
+ :visiable.sync="baseFormulaDialogVisible"
98
+ :option="baseFormulaDialogOption"
99
+ ></baseFormulaDialog>
63
100
  </div>
64
101
  </template>
65
102
 
66
103
  <script>
67
104
  //import ElForm from 'element-ui/packages/form/src/form.vue' /* 用于源码调试Element UI */
68
- import './container-item/index';
69
- import FieldComponents from '../../../components/xform/form-designer/form-widget/field-widget/index';
70
- import indexMixin from '../../../components/xform/form-render/indexMixin';
71
-
105
+ import "./container-item/index";
106
+ import FieldComponents from "../../../components/xform/form-designer/form-widget/field-widget/index";
107
+ import indexMixin from "../../../components/xform/form-render/indexMixin";
72
108
 
73
109
  export default {
74
- name: 'VFormRender',
110
+ name: "VFormRender",
75
111
  components: {
76
112
  ...FieldComponents,
77
- searchFormDialog: () => import("../../../components/xform/form-designer/form-widget/dialog/searchFormDialog.vue"),
78
- formDialog: () => import("../../../components/xform/form-designer/form-widget/dialog/formDialog.vue"),
79
- importDialog: () => import("../../../components/xform/form-designer/form-widget/dialog/importDialog.vue"),
80
- formDrawer: () => import("../../../components/xform/form-designer/form-widget/dialog/formDrawer.vue"),
81
- fileReferenceDialog: () => import("../../../components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue")
82
-
113
+ searchFormDialog: () =>
114
+ import(
115
+ "../../../components/xform/form-designer/form-widget/dialog/searchFormDialog.vue"
116
+ ),
117
+ formDialog: () =>
118
+ import("../../../components/xform/form-designer/form-widget/dialog/formDialog.vue"),
119
+ importDialog: () =>
120
+ import(
121
+ "../../../components/xform/form-designer/form-widget/dialog/importDialog.vue"
122
+ ),
123
+ formDrawer: () =>
124
+ import("../../../components/xform/form-designer/form-widget/dialog/formDrawer.vue"),
125
+ fileReferenceDialog: () =>
126
+ import(
127
+ "../../../components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue"
128
+ ),
83
129
  },
84
130
  mixins: [indexMixin],
85
131
  };