cloud-web-corejs 1.0.54-dev.744 → 1.0.54-dev.746
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 +192 -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 -298
- package/src/components/fileLibrary/index.vue +1109 -1110
- package/src/components/fileLibrary/propertiesDialog.vue +190 -190
- package/src/components/fileLibrary/recycleBinDialog.vue +237 -236
- 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/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +408 -0
- 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 -314
- 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/formHttp.js +162 -0
- package/src/components/xform/utils/util.js +1585 -1554
- package/src/index.js +344 -230
- package/src/layout/components/AppMain.vue +122 -122
- 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/permission.js +185 -135
- package/src/store/config/index.js +667 -669
- package/src/store/modules/micro.js +46 -0
- package/src/store/modules/permission.js +461 -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 -491
- 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 -254
- package/src/views/user/menuFallback/index.vue +123 -0
- package/src/views/user/wf/wfReport/index.vue +625 -619
|
@@ -1,195 +1,195 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
/**
|
|
3
|
-
* author: vformAdmin
|
|
4
|
-
* email: vdpadmin@163.com
|
|
5
|
-
* website: https://www.vform666.com
|
|
6
|
-
* date: 2021.08.18
|
|
7
|
-
* remark: 如果要分发VForm源码,需在本文件顶部保留此文件头信息!!
|
|
8
|
-
*/
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<el-container class="main-container full-height">
|
|
13
|
-
<!-- <el-header class="main-header">
|
|
14
|
-
<div class="float-left main-title">
|
|
15
|
-
<img src="../../assets/vform-logo.png" @click="openHome">
|
|
16
|
-
<span class="bold">VForm</span> {{i18nt('application.productTitle')}} <span class="version-span">Ver {{vFormVersion}}</span></div>
|
|
17
|
-
<div class="float-right external-link">
|
|
18
|
-
<el-dropdown v-if="showLink('languageMenu')" :hide-timeout="2000" @command="handleLanguageChanged">
|
|
19
|
-
<span class="el-dropdown-link">{{curLangName}}<i class="el-icon-arrow-down el-icon--right"></i></span>
|
|
20
|
-
<el-dropdown-menu slot="dropdown">
|
|
21
|
-
<el-dropdown-item command="zh-CN">{{i18nt('application.zh-CN')}}</el-dropdown-item>
|
|
22
|
-
<el-dropdown-item command="en-US">{{i18nt('application.en-US')}}</el-dropdown-item>
|
|
23
|
-
</el-dropdown-menu>
|
|
24
|
-
</el-dropdown>
|
|
25
|
-
<a v-if="showLink('externalLink')" href="javascript:void(0)" @click="(ev) => openUrl(ev, gitUrl)" target="_blank"><svg-icon icon-class="github" />{{i18nt('application.github')}}</a>
|
|
26
|
-
<a v-if="showLink('externalLink')" href="javascript:void(0)" @click="(ev) => openUrl(ev, docUrl)" target="_blank"><svg-icon icon-class="document" />{{i18nt('application.document')}}</a>
|
|
27
|
-
<a v-if="showLink('externalLink')" href="javascript:void(0)" @click="(ev) => openUrl(ev, chatUrl)" target="_blank">{{i18nt('application.qqGroup')}}</a>
|
|
28
|
-
<a v-if="showLink('externalLink')" href="javascript:void(0)" @click="(ev) => openUrl(ev, subScribeUrl)" target="_blank">
|
|
29
|
-
{{i18nt('application.subscription')}}<i class="el-icon-top-right"></i></a>
|
|
30
|
-
</div>
|
|
31
|
-
</el-header> -->
|
|
32
|
-
|
|
33
|
-
<el-container>
|
|
34
|
-
<el-aside class="side-panel attribute-right">
|
|
35
|
-
<widget-panel ref="widgetPanelRef" :designer="designer"/>
|
|
36
|
-
</el-aside>
|
|
37
|
-
|
|
38
|
-
<el-container class="center-layout-container">
|
|
39
|
-
<el-header class="toolbar-header">
|
|
40
|
-
<toolbar-panel :designer="designer" ref="toolbarRef" @loadWidgets="loadWidgets">
|
|
41
|
-
<template v-for="(idx, slotName) in $slots" #[slotName]>
|
|
42
|
-
<slot :name="slotName"></slot>
|
|
43
|
-
</template>
|
|
44
|
-
</toolbar-panel>
|
|
45
|
-
</el-header>
|
|
46
|
-
<el-main class="form-widget-main">
|
|
47
|
-
<el-scrollbar class="container-scroll-bar
|
|
48
|
-
<v-form-widget :designer="designer" :form-config="designer.formConfig" ref="formRef"></v-form-widget>
|
|
49
|
-
</el-scrollbar>
|
|
50
|
-
</el-main>
|
|
51
|
-
</el-container>
|
|
52
|
-
|
|
53
|
-
<el-aside class="attribute-right">
|
|
54
|
-
<setting-panel :designer="designer" :selected-widget="designer.selectedWidget"
|
|
55
|
-
:form-config="designer.formConfig" ref="formSettingRef"/>
|
|
56
|
-
</el-aside>
|
|
57
|
-
</el-container>
|
|
58
|
-
<preformDialog v-if="showPreformDialog" :visiable.sync="showPreformDialog"
|
|
59
|
-
@confirm="confirmPreformDialog"></preformDialog>
|
|
60
|
-
</el-container>
|
|
61
|
-
</template>
|
|
62
|
-
|
|
63
|
-
<script>
|
|
64
|
-
|
|
65
|
-
import WidgetPanel from './widget-panel/index';
|
|
66
|
-
import ToolbarPanel from './toolbar-panel/index';
|
|
67
|
-
import SettingPanel from './setting-panel/index';
|
|
68
|
-
import VFormWidget from './form-widget/index';
|
|
69
|
-
import indexMixin from '../../../components/xform/form-designer/indexMixin';
|
|
70
|
-
import preformDialog from "../../../components/xform/form-designer/form-widget/dialog/preformDialog.vue";
|
|
71
|
-
|
|
72
|
-
export default {
|
|
73
|
-
name: 'VFormDesigner',
|
|
74
|
-
components: {
|
|
75
|
-
preformDialog,
|
|
76
|
-
WidgetPanel,
|
|
77
|
-
ToolbarPanel,
|
|
78
|
-
SettingPanel,
|
|
79
|
-
VFormWidget
|
|
80
|
-
},
|
|
81
|
-
mixins: [indexMixin],
|
|
82
|
-
};
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<style lang="scss" scoped>
|
|
86
|
-
.el-aside {
|
|
87
|
-
font-family: inherit !important;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.xform-designer-scroll {
|
|
91
|
-
height: calc(100vh - var(--xform-designer-scroll-offset, 125px));
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.el-container.main-container {
|
|
95
|
-
background: #fff;
|
|
96
|
-
|
|
97
|
-
::v-deep aside {
|
|
98
|
-
/* 防止aside样式被外部样式覆盖!! */
|
|
99
|
-
margin: 0;
|
|
100
|
-
padding: 0;
|
|
101
|
-
background: inherit;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.el-container.full-height {
|
|
106
|
-
height: 100%;
|
|
107
|
-
overflow-y: hidden;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.el-container.center-layout-container {
|
|
111
|
-
min-width: 680px;
|
|
112
|
-
border-left: 2px dotted #ebeef5;
|
|
113
|
-
border-right: 2px dotted #ebeef5;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.el-header.main-header {
|
|
117
|
-
border-bottom: 2px dotted #ebeef5;
|
|
118
|
-
height: 48px !important;
|
|
119
|
-
line-height: 48px !important;
|
|
120
|
-
min-width: 800px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
div.main-title {
|
|
124
|
-
font-size: 18px;
|
|
125
|
-
color: #242424;
|
|
126
|
-
display: flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
justify-items: center;
|
|
129
|
-
|
|
130
|
-
img {
|
|
131
|
-
cursor: pointer;
|
|
132
|
-
width: 36px;
|
|
133
|
-
height: 36px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
span.bold {
|
|
137
|
-
font-size: 20px;
|
|
138
|
-
font-weight: bold;
|
|
139
|
-
margin: 0 6px 0 6px;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
span.version-span {
|
|
143
|
-
font-size: 14px;
|
|
144
|
-
color: #101f1c;
|
|
145
|
-
margin-left: 6px;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.float-left {
|
|
150
|
-
float: left;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.float-right {
|
|
154
|
-
float: right;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.el-dropdown-link {
|
|
158
|
-
margin-right: 12px;
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
div.external-link a {
|
|
163
|
-
font-size: 13px;
|
|
164
|
-
text-decoration: none;
|
|
165
|
-
margin-right: 10px;
|
|
166
|
-
color: #606266;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.el-header.toolbar-header {
|
|
170
|
-
font-size: 12px;
|
|
171
|
-
border-bottom: 2px dotted #ebeef5;
|
|
172
|
-
height: 40px !important;
|
|
173
|
-
line-height: 38px;
|
|
174
|
-
//line-height: 42px !important;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.el-aside.side-panel {
|
|
178
|
-
width: 260px !important;
|
|
179
|
-
overflow-y: hidden;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.el-main.form-widget-main {
|
|
183
|
-
padding: 0;
|
|
184
|
-
|
|
185
|
-
position: relative;
|
|
186
|
-
overflow-x: hidden;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.container-scroll-bar {
|
|
190
|
-
::v-deep .el-scrollbar__wrap,
|
|
191
|
-
::v-deep .el-scrollbar__view {
|
|
192
|
-
overflow-x: hidden;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
/**
|
|
3
|
+
* author: vformAdmin
|
|
4
|
+
* email: vdpadmin@163.com
|
|
5
|
+
* website: https://www.vform666.com
|
|
6
|
+
* date: 2021.08.18
|
|
7
|
+
* remark: 如果要分发VForm源码,需在本文件顶部保留此文件头信息!!
|
|
8
|
+
*/
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<el-container class="main-container full-height">
|
|
13
|
+
<!-- <el-header class="main-header">
|
|
14
|
+
<div class="float-left main-title">
|
|
15
|
+
<img src="../../assets/vform-logo.png" @click="openHome">
|
|
16
|
+
<span class="bold">VForm</span> {{i18nt('application.productTitle')}} <span class="version-span">Ver {{vFormVersion}}</span></div>
|
|
17
|
+
<div class="float-right external-link">
|
|
18
|
+
<el-dropdown v-if="showLink('languageMenu')" :hide-timeout="2000" @command="handleLanguageChanged">
|
|
19
|
+
<span class="el-dropdown-link">{{curLangName}}<i class="el-icon-arrow-down el-icon--right"></i></span>
|
|
20
|
+
<el-dropdown-menu slot="dropdown">
|
|
21
|
+
<el-dropdown-item command="zh-CN">{{i18nt('application.zh-CN')}}</el-dropdown-item>
|
|
22
|
+
<el-dropdown-item command="en-US">{{i18nt('application.en-US')}}</el-dropdown-item>
|
|
23
|
+
</el-dropdown-menu>
|
|
24
|
+
</el-dropdown>
|
|
25
|
+
<a v-if="showLink('externalLink')" href="javascript:void(0)" @click="(ev) => openUrl(ev, gitUrl)" target="_blank"><svg-icon icon-class="github" />{{i18nt('application.github')}}</a>
|
|
26
|
+
<a v-if="showLink('externalLink')" href="javascript:void(0)" @click="(ev) => openUrl(ev, docUrl)" target="_blank"><svg-icon icon-class="document" />{{i18nt('application.document')}}</a>
|
|
27
|
+
<a v-if="showLink('externalLink')" href="javascript:void(0)" @click="(ev) => openUrl(ev, chatUrl)" target="_blank">{{i18nt('application.qqGroup')}}</a>
|
|
28
|
+
<a v-if="showLink('externalLink')" href="javascript:void(0)" @click="(ev) => openUrl(ev, subScribeUrl)" target="_blank">
|
|
29
|
+
{{i18nt('application.subscription')}}<i class="el-icon-top-right"></i></a>
|
|
30
|
+
</div>
|
|
31
|
+
</el-header> -->
|
|
32
|
+
|
|
33
|
+
<el-container>
|
|
34
|
+
<el-aside class="side-panel attribute-right">
|
|
35
|
+
<widget-panel ref="widgetPanelRef" :designer="designer"/>
|
|
36
|
+
</el-aside>
|
|
37
|
+
|
|
38
|
+
<el-container class="center-layout-container">
|
|
39
|
+
<el-header class="toolbar-header">
|
|
40
|
+
<toolbar-panel :designer="designer" ref="toolbarRef" @loadWidgets="loadWidgets">
|
|
41
|
+
<template v-for="(idx, slotName) in $slots" #[slotName]>
|
|
42
|
+
<slot :name="slotName"></slot>
|
|
43
|
+
</template>
|
|
44
|
+
</toolbar-panel>
|
|
45
|
+
</el-header>
|
|
46
|
+
<el-main class="form-widget-main">
|
|
47
|
+
<el-scrollbar class="container-scroll-bar" style="height:100%">
|
|
48
|
+
<v-form-widget :designer="designer" :form-config="designer.formConfig" ref="formRef"></v-form-widget>
|
|
49
|
+
</el-scrollbar>
|
|
50
|
+
</el-main>
|
|
51
|
+
</el-container>
|
|
52
|
+
|
|
53
|
+
<el-aside class="attribute-right">
|
|
54
|
+
<setting-panel :designer="designer" :selected-widget="designer.selectedWidget"
|
|
55
|
+
:form-config="designer.formConfig" ref="formSettingRef"/>
|
|
56
|
+
</el-aside>
|
|
57
|
+
</el-container>
|
|
58
|
+
<preformDialog v-if="showPreformDialog" :visiable.sync="showPreformDialog"
|
|
59
|
+
@confirm="confirmPreformDialog"></preformDialog>
|
|
60
|
+
</el-container>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script>
|
|
64
|
+
|
|
65
|
+
import WidgetPanel from './widget-panel/index';
|
|
66
|
+
import ToolbarPanel from './toolbar-panel/index';
|
|
67
|
+
import SettingPanel from './setting-panel/index';
|
|
68
|
+
import VFormWidget from './form-widget/index';
|
|
69
|
+
import indexMixin from '../../../components/xform/form-designer/indexMixin';
|
|
70
|
+
import preformDialog from "../../../components/xform/form-designer/form-widget/dialog/preformDialog.vue";
|
|
71
|
+
|
|
72
|
+
export default {
|
|
73
|
+
name: 'VFormDesigner',
|
|
74
|
+
components: {
|
|
75
|
+
preformDialog,
|
|
76
|
+
WidgetPanel,
|
|
77
|
+
ToolbarPanel,
|
|
78
|
+
SettingPanel,
|
|
79
|
+
VFormWidget
|
|
80
|
+
},
|
|
81
|
+
mixins: [indexMixin],
|
|
82
|
+
};
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style lang="scss" scoped>
|
|
86
|
+
.el-aside {
|
|
87
|
+
font-family: inherit !important;
|
|
88
|
+
}
|
|
89
|
+
//.xform-designer-scroll{height:100%}
|
|
90
|
+
.xform-designer-scroll {
|
|
91
|
+
height: calc(100vh - var(--xform-designer-scroll-offset, 125px));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.el-container.main-container {
|
|
95
|
+
background: #fff;
|
|
96
|
+
|
|
97
|
+
::v-deep aside {
|
|
98
|
+
/* 防止aside样式被外部样式覆盖!! */
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding: 0;
|
|
101
|
+
background: inherit;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.el-container.full-height {
|
|
106
|
+
height: 100%;
|
|
107
|
+
overflow-y: hidden;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.el-container.center-layout-container {
|
|
111
|
+
min-width: 680px;
|
|
112
|
+
border-left: 2px dotted #ebeef5;
|
|
113
|
+
border-right: 2px dotted #ebeef5;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.el-header.main-header {
|
|
117
|
+
border-bottom: 2px dotted #ebeef5;
|
|
118
|
+
height: 48px !important;
|
|
119
|
+
line-height: 48px !important;
|
|
120
|
+
min-width: 800px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
div.main-title {
|
|
124
|
+
font-size: 18px;
|
|
125
|
+
color: #242424;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-items: center;
|
|
129
|
+
|
|
130
|
+
img {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
width: 36px;
|
|
133
|
+
height: 36px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
span.bold {
|
|
137
|
+
font-size: 20px;
|
|
138
|
+
font-weight: bold;
|
|
139
|
+
margin: 0 6px 0 6px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
span.version-span {
|
|
143
|
+
font-size: 14px;
|
|
144
|
+
color: #101f1c;
|
|
145
|
+
margin-left: 6px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.float-left {
|
|
150
|
+
float: left;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.float-right {
|
|
154
|
+
float: right;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.el-dropdown-link {
|
|
158
|
+
margin-right: 12px;
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
div.external-link a {
|
|
163
|
+
font-size: 13px;
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
margin-right: 10px;
|
|
166
|
+
color: #606266;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.el-header.toolbar-header {
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
border-bottom: 2px dotted #ebeef5;
|
|
172
|
+
height: 40px !important;
|
|
173
|
+
line-height: 38px;
|
|
174
|
+
//line-height: 42px !important;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.el-aside.side-panel {
|
|
178
|
+
width: 260px !important;
|
|
179
|
+
overflow-y: hidden;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.el-main.form-widget-main {
|
|
183
|
+
padding: 0;
|
|
184
|
+
|
|
185
|
+
position: relative;
|
|
186
|
+
overflow-x: hidden;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.container-scroll-bar {
|
|
190
|
+
::v-deep .el-scrollbar__wrap,
|
|
191
|
+
::v-deep .el-scrollbar__view {
|
|
192
|
+
overflow-x: hidden;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
</style>
|