cloud-web-corejs 1.0.54-dev.745 → 1.0.54-dev.747
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 +194 -192
- package/src/App.vue +73 -71
- package/src/components/baseArea/index.vue +1628 -1628
- package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
- package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -297
- package/src/components/fileLibrary/index.vue +1109 -1109
- package/src/components/fileLibrary/propertiesDialog.vue +190 -190
- package/src/components/fileLibrary/recycleBinDialog.vue +237 -237
- package/src/components/wf/mixins/setCandidateDialog.js +217 -217
- package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
- package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -986
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -272
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +216 -216
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +928 -928
- package/src/components/xform/form-designer/index.vue +195 -195
- package/src/components/xform/form-designer/indexMixin.js +848 -848
- package/src/components/xform/form-designer/setting-panel/index.vue +313 -313
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -124
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +369 -369
- package/src/components/xform/form-designer/widget-panel/index.vue +389 -389
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +343 -343
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4531 -4531
- package/src/components/xform/form-render/container-item/data-table-mixin.js +4748 -4576
- package/src/components/xform/form-render/container-item/tab-item.vue +125 -125
- package/src/components/xform/form-render/indexMixin.js +5061 -5078
- package/src/components/xform/lang/en-US.js +457 -457
- package/src/components/xform/lang/zh-CN.js +628 -628
- package/src/components/xform/utils/util.js +1585 -1554
- package/src/index.js +347 -230
- package/src/layout/components/AppMain.vue +122 -125
- package/src/layout/components/extractedCode/viewDialog.vue +207 -207
- package/src/layout/components/langTool.vue +128 -123
- package/src/layout/defaultLayout.vue +164 -158
- package/src/microRouter/index.js +389 -0
- package/src/permission.js +185 -135
- package/src/public-path.js +8 -0
- package/src/store/config/index.js +667 -669
- package/src/store/modules/micro.js +46 -0
- package/src/store/modules/permission.js +468 -373
- package/src/store/modules/user.js +419 -415
- package/src/utils/auth.js +27 -1
- package/src/utils/index.js +579 -6
- package/src/utils/keepAlive.js +4 -0
- package/src/utils/menuAdapter.js +183 -0
- package/src/utils/request.js +417 -28
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +483 -483
- package/src/views/bd/setting/form_script/form_list.vue +174 -174
- package/src/views/bd/setting/form_script/mixins/form_list.js +330 -330
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -171
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -253
- package/src/views/user/menuFallback/index.vue +123 -0
- package/src/views/user/wf/wfReport/index.vue +625 -625
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
<template>
|
|
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 in visibleTabs"
|
|
18
|
-
:key="tab.options.name"
|
|
19
|
-
:label="getI18nLabel(tab.options.label)"
|
|
20
|
-
:disabled="tab.options.disabled"
|
|
21
|
-
:name="tab.options.name"
|
|
22
|
-
>
|
|
23
|
-
<template v-for="(subWidget, swIdx) in tab.widgetList">
|
|
24
|
-
<template v-if="'container' === subWidget.category">
|
|
25
|
-
<component
|
|
26
|
-
:is="subWidget.type + '-item'"
|
|
27
|
-
:widget="subWidget"
|
|
28
|
-
:key="subWidget.id || swIdx"
|
|
29
|
-
:parent-list="tab.widgetList"
|
|
30
|
-
:index-of-parent-list="swIdx"
|
|
31
|
-
:parent-widget="widget"
|
|
32
|
-
:tableParam="tableParam"
|
|
33
|
-
:formItemProp="formItemProp"
|
|
34
|
-
>
|
|
35
|
-
<!-- 递归传递插槽!!! -->
|
|
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
|
-
:key="subWidget.id || swIdx"
|
|
46
|
-
:parent-list="tab.widgetList"
|
|
47
|
-
:index-of-parent-list="swIdx"
|
|
48
|
-
:parent-widget="widget"
|
|
49
|
-
:tableParam="tableParam"
|
|
50
|
-
:formItemProp="formItemProp"
|
|
51
|
-
>
|
|
52
|
-
<!-- 递归传递插槽!!! -->
|
|
53
|
-
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
54
|
-
<slot :name="slot" v-bind="scope" />
|
|
55
|
-
</template>
|
|
56
|
-
</component>
|
|
57
|
-
</template>
|
|
58
|
-
</template>
|
|
59
|
-
</el-tab-pane>
|
|
60
|
-
</el-tabs>
|
|
61
|
-
</div>
|
|
62
|
-
</container-item-wrapper>
|
|
63
|
-
</template>
|
|
64
|
-
|
|
65
|
-
<script>
|
|
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";
|
|
72
|
-
|
|
73
|
-
export default {
|
|
74
|
-
name: "tab-item",
|
|
75
|
-
componentName: "ContainerItem",
|
|
76
|
-
mixins: [emitter, i18n, refMixin, containerItemMixin],
|
|
77
|
-
components: {
|
|
78
|
-
ContainerItemWrapper,
|
|
79
|
-
...FieldComponents,
|
|
80
|
-
},
|
|
81
|
-
props: {
|
|
82
|
-
widget: Object,
|
|
83
|
-
},
|
|
84
|
-
inject: ["refList", "sfRefList", "globalModel"],
|
|
85
|
-
data() {
|
|
86
|
-
return {
|
|
87
|
-
activeTabName: "",
|
|
88
|
-
};
|
|
89
|
-
},
|
|
90
|
-
computed: {
|
|
91
|
-
visibleTabs() {
|
|
92
|
-
return this.widget.tabs.filter((tp) => {
|
|
93
|
-
return !tp.options.hidden;
|
|
94
|
-
});
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
created() {
|
|
98
|
-
this.initRefList();
|
|
99
|
-
},
|
|
100
|
-
mounted() {
|
|
101
|
-
this.initActiveTab();
|
|
102
|
-
},
|
|
103
|
-
beforeDestroy() {
|
|
104
|
-
this.unregisterFromRefList();
|
|
105
|
-
},
|
|
106
|
-
methods: {
|
|
107
|
-
initActiveTab() {
|
|
108
|
-
if (this.widget.type === "tab" && this.widget.tabs.length > 0) {
|
|
109
|
-
let activePanes = this.widget.tabs.filter((tp) => {
|
|
110
|
-
return tp.options.active === true;
|
|
111
|
-
});
|
|
112
|
-
if (activePanes.length > 0) {
|
|
113
|
-
this.activeTabName = activePanes[0].options.name;
|
|
114
|
-
} else {
|
|
115
|
-
this.activeTabName = this.widget.tabs[0].options.name;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
};
|
|
121
|
-
</script>
|
|
122
|
-
|
|
123
|
-
<style lang="scss" scoped>
|
|
124
|
-
::v-deep .mHeight .el-tabs .el-tabs__content{min-height:312px}
|
|
125
|
-
</style>
|
|
1
|
+
<template>
|
|
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 in visibleTabs"
|
|
18
|
+
:key="tab.options.name"
|
|
19
|
+
:label="getI18nLabel(tab.options.label)"
|
|
20
|
+
:disabled="tab.options.disabled"
|
|
21
|
+
:name="tab.options.name"
|
|
22
|
+
>
|
|
23
|
+
<template v-for="(subWidget, swIdx) in tab.widgetList">
|
|
24
|
+
<template v-if="'container' === subWidget.category">
|
|
25
|
+
<component
|
|
26
|
+
:is="subWidget.type + '-item'"
|
|
27
|
+
:widget="subWidget"
|
|
28
|
+
:key="subWidget.id || swIdx"
|
|
29
|
+
:parent-list="tab.widgetList"
|
|
30
|
+
:index-of-parent-list="swIdx"
|
|
31
|
+
:parent-widget="widget"
|
|
32
|
+
:tableParam="tableParam"
|
|
33
|
+
:formItemProp="formItemProp"
|
|
34
|
+
>
|
|
35
|
+
<!-- 递归传递插槽!!! -->
|
|
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
|
+
:key="subWidget.id || swIdx"
|
|
46
|
+
:parent-list="tab.widgetList"
|
|
47
|
+
:index-of-parent-list="swIdx"
|
|
48
|
+
:parent-widget="widget"
|
|
49
|
+
:tableParam="tableParam"
|
|
50
|
+
:formItemProp="formItemProp"
|
|
51
|
+
>
|
|
52
|
+
<!-- 递归传递插槽!!! -->
|
|
53
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
54
|
+
<slot :name="slot" v-bind="scope" />
|
|
55
|
+
</template>
|
|
56
|
+
</component>
|
|
57
|
+
</template>
|
|
58
|
+
</template>
|
|
59
|
+
</el-tab-pane>
|
|
60
|
+
</el-tabs>
|
|
61
|
+
</div>
|
|
62
|
+
</container-item-wrapper>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script>
|
|
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";
|
|
72
|
+
|
|
73
|
+
export default {
|
|
74
|
+
name: "tab-item",
|
|
75
|
+
componentName: "ContainerItem",
|
|
76
|
+
mixins: [emitter, i18n, refMixin, containerItemMixin],
|
|
77
|
+
components: {
|
|
78
|
+
ContainerItemWrapper,
|
|
79
|
+
...FieldComponents,
|
|
80
|
+
},
|
|
81
|
+
props: {
|
|
82
|
+
widget: Object,
|
|
83
|
+
},
|
|
84
|
+
inject: ["refList", "sfRefList", "globalModel"],
|
|
85
|
+
data() {
|
|
86
|
+
return {
|
|
87
|
+
activeTabName: "",
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
computed: {
|
|
91
|
+
visibleTabs() {
|
|
92
|
+
return this.widget.tabs.filter((tp) => {
|
|
93
|
+
return !tp.options.hidden;
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
created() {
|
|
98
|
+
this.initRefList();
|
|
99
|
+
},
|
|
100
|
+
mounted() {
|
|
101
|
+
this.initActiveTab();
|
|
102
|
+
},
|
|
103
|
+
beforeDestroy() {
|
|
104
|
+
this.unregisterFromRefList();
|
|
105
|
+
},
|
|
106
|
+
methods: {
|
|
107
|
+
initActiveTab() {
|
|
108
|
+
if (this.widget.type === "tab" && this.widget.tabs.length > 0) {
|
|
109
|
+
let activePanes = this.widget.tabs.filter((tp) => {
|
|
110
|
+
return tp.options.active === true;
|
|
111
|
+
});
|
|
112
|
+
if (activePanes.length > 0) {
|
|
113
|
+
this.activeTabName = activePanes[0].options.name;
|
|
114
|
+
} else {
|
|
115
|
+
this.activeTabName = this.widget.tabs[0].options.name;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
</script>
|
|
122
|
+
|
|
123
|
+
<style lang="scss" scoped>
|
|
124
|
+
::v-deep .mHeight .el-tabs .el-tabs__content{min-height:312px}
|
|
125
|
+
</style>
|