cloud-web-corejs-haier 1.0.3 → 1.0.5
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.
- package/package.json +2 -1
- package/src/components/table/index.js +12 -12
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- package/src/components/table/vxeFilter/mixin.js +1 -1
- package/src/components/vb-tabs/x-tabs.vue +30 -13
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +71 -50
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +8 -10
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +102 -73
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +40 -28
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +13 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +9 -2
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +19 -10
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +15 -6
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +7 -0
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +19 -11
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +11 -7
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +11 -8
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +41 -13
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +106 -76
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +13 -263
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +47 -81
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +31 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +54 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +8 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +37 -16
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +42 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +5 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +57 -34
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +84 -53
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +35 -44
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +77 -3
- package/src/components/xform/form-render/container-item/containerItemMixin.js +2 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/container-item/tab-item.vue +64 -32
- package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
- package/src/components/xform/form-render/index.vue +69 -23
- package/src/components/xform/form-render/indexMixin.js +18 -17
- package/src/components/xform/lang/zh-CN.js +8 -2
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/formula-util.js +306 -5
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/store/getters.js +23 -23
- package/src/store/modules/user.js +30 -30
- package/src/utils/index.js +1 -6
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1 -1
- package/src/views/user/form/vform/render.vue +54 -36
- package/src/views/user/form/view/list.vue +126 -11
- package/src/views/user/outLink/form_view.vue +4 -4
|
@@ -1,27 +1,57 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<container-item-wrapper
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
12
|
-
|
|
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
|
|
21
|
-
|
|
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
|
|
37
|
-
import i18n from
|
|
38
|
-
import refMixin from
|
|
39
|
-
import ContainerItemWrapper from
|
|
40
|
-
import containerItemMixin from
|
|
41
|
-
import FieldComponents from
|
|
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:
|
|
45
|
-
componentName:
|
|
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: [
|
|
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 ===
|
|
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
|
|
123
|
+
<style lang="scss" scoped>
|
|
124
|
+
::v-deep .mHeight .el-tabs .el-tabs__content{min-height:312px}
|
|
125
|
+
</style>
|
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
<container-item-wrapper :widget="widget">
|
|
3
3
|
<div>
|
|
4
4
|
<div class="tree-form">
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
<template v-if="widget.options.filter">
|
|
6
|
+
<el-input
|
|
7
|
+
v-if="!widget.options.treeFilterType"
|
|
8
|
+
:key="0"
|
|
9
|
+
:size="widget.options.size"
|
|
10
|
+
:placeholder="i18nt('designer.setting.enterForQuery')"
|
|
11
|
+
v-model="filterText"
|
|
12
|
+
@change="handleFilterTextChange"
|
|
13
|
+
class="txt"
|
|
14
|
+
>
|
|
15
|
+
<el-button slot="append" icon="el-icon-search" @click="handleClickButton"></el-button>
|
|
16
|
+
</el-input>
|
|
17
|
+
<el-date-picker v-else-if="widget.options.treeFilterType==1" v-model="filterText" type="date" value-format="yyyy-MM-dd" @change="handleFilterTextChange" :placeholder="$t1('请输入日期')"></el-date-picker>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
15
20
|
</div>
|
|
16
21
|
<div class="tree-btns"
|
|
17
22
|
v-show="widget.options.selectClearAllNode && widget.options.showCheckBox || widget.options.expandRetractAllNode">
|
|
@@ -60,6 +65,7 @@
|
|
|
60
65
|
@check="handleTreeNodeCheck"
|
|
61
66
|
@check-change="handleCheckChange"
|
|
62
67
|
:load="loadNode"
|
|
68
|
+
v-if="showTree"
|
|
63
69
|
>
|
|
64
70
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
|
65
71
|
<span>{{ node.label }}</span>
|
|
@@ -128,6 +134,7 @@ export default {
|
|
|
128
134
|
disabled: this.isDisabled,
|
|
129
135
|
isLeaf: 'leaf'
|
|
130
136
|
},
|
|
137
|
+
showTree:true
|
|
131
138
|
};
|
|
132
139
|
},
|
|
133
140
|
computed: {
|
|
@@ -137,7 +144,9 @@ export default {
|
|
|
137
144
|
},
|
|
138
145
|
watch: {
|
|
139
146
|
filterText(o) {
|
|
140
|
-
this
|
|
147
|
+
if(!this.widget.options.disLocalFilter){
|
|
148
|
+
this.$refs.tree.filter(o);
|
|
149
|
+
}
|
|
141
150
|
},
|
|
142
151
|
},
|
|
143
152
|
props: {
|
|
@@ -340,6 +349,18 @@ export default {
|
|
|
340
349
|
loopDo();
|
|
341
350
|
}
|
|
342
351
|
},
|
|
352
|
+
handleClickButton(){
|
|
353
|
+
this.handleCustomEvent(this.widget.options.onFilterIconClick,["keyword"],[this.filterText])
|
|
354
|
+
},
|
|
355
|
+
handleFilterTextChange(val){
|
|
356
|
+
this.handleCustomEvent(this.widget.options.onFilterTextChange,["keyword"],[val])
|
|
357
|
+
},
|
|
358
|
+
reflushTree(){
|
|
359
|
+
this.showTree = false;
|
|
360
|
+
this.$nextTick(()=>{
|
|
361
|
+
this.showTree = true;
|
|
362
|
+
})
|
|
363
|
+
}
|
|
343
364
|
/*loadDataFromDS(o = {}, e = "") {
|
|
344
365
|
let n = e || this.widget.options.dsName,
|
|
345
366
|
l = this.widget.options.dataSetName,
|
|
@@ -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
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<
|
|
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
|
|
69
|
-
import FieldComponents from
|
|
70
|
-
import indexMixin from
|
|
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:
|
|
110
|
+
name: "VFormRender",
|
|
75
111
|
components: {
|
|
76
112
|
...FieldComponents,
|
|
77
|
-
searchFormDialog: () =>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
};
|