cloud-web-corejs 1.1.0-dev.6 → 1.1.0-dev.7
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 +1 -1
- package/src/components/VabUpload/view.vue +27 -26
- package/src/components/excelImport/index.vue +156 -156
- package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
- package/src/components/mobile/wf/content.vue +110 -67
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
- package/src/components/mobile/wf/selectUserDialog.vue +122 -0
- package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
- package/src/components/mobile/wf/urgingDialog.vue +26 -3
- package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
- package/src/components/xform/form-designer/designer.js +36 -52
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +2 -2
- package/src/components/xform/form-designer/indexMixin.js +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -860
- package/src/components/xform/form-designer/toolbar-panel/index.vue +874 -874
- package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +15 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +53 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +154 -27
- package/src/components/xform/form-render/indexMixin.js +23 -3
- package/src/components/xform/styles/h5.scss +774 -588
- package/src/directive/append-to-body/index.js +48 -0
- package/src/index.js +4 -0
- package/src/layout/components/Sidebar/default.vue +1655 -1655
- package/src/router/index.js +48 -48
- package/src/utils/vab.js +1283 -1283
- package/src/views/bd/setting/form_template/edit.vue +378 -356
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
- package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
- package/src/views/bd/setting/form_template/list.vue +304 -303
- package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
- package/src/views/bd/setting/form_template/mixins/list.js +748 -721
- package/src/views/user/file_view_ins/list.vue +970 -970
- package/src/views/user/form/vform/designer.vue +823 -821
- package/src/views/user/home/default.vue +1117 -1117
- package/src/views/user/home/index.vue +103 -103
- package/src/views/user/notify_message/dialog.vue +139 -139
- package/src/views/user/outLink/form_view.vue +202 -202
- package/src/views/user/outLink/index.vue +110 -110
- package/src/views/user/wf/iframe/index.vue +51 -51
- package/src/views/user/wf/iframe/index2.vue +64 -64
- package/src/views/user/wf/wf_manage/list2.vue +871 -871
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -134
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
:sourceData="sourceData"
|
|
27
27
|
:formTemplate="formTemplate"
|
|
28
28
|
:jsonFlag="jsonFlag"
|
|
29
|
+
:defaultLayoutType="defaultLayoutType"
|
|
29
30
|
></designer>
|
|
30
31
|
</el-tab-pane>
|
|
31
32
|
<el-tab-pane :label="$t1('后端脚本')" name="second" v-if="showFormScript">
|
|
@@ -87,6 +88,11 @@ export default {
|
|
|
87
88
|
widgetList: Array,
|
|
88
89
|
columnFlag: Boolean,
|
|
89
90
|
sourceData: Object,
|
|
91
|
+
/* 进入设计器时的默认布局模式(临时模式,不写死模板) */
|
|
92
|
+
defaultLayoutType: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: "",
|
|
95
|
+
},
|
|
90
96
|
},
|
|
91
97
|
components: {
|
|
92
98
|
designer: () => import("@base/views/user/form/vform/designer.vue"),
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 表单模板「模板类型」(PC端 / 移动端)
|
|
3
|
+
*
|
|
4
|
+
* 模板类型不是数据库字段,只在新增时维护:选择移动端后模板编码固定加前缀 h5_,
|
|
5
|
+
* 之后一律由 formCode 前缀反推类型,列表展示、编辑态回显、设计器默认布局共用此处。
|
|
6
|
+
*/
|
|
7
|
+
export const H5_FORM_CODE_PREFIX = "h5_";
|
|
8
|
+
|
|
9
|
+
export const TEMPLATE_TYPE_PC = "PC";
|
|
10
|
+
export const TEMPLATE_TYPE_H5 = "H5";
|
|
11
|
+
|
|
12
|
+
/** 模板编码是否为移动端模板 */
|
|
13
|
+
export function isH5FormTemplate(formCode) {
|
|
14
|
+
return (
|
|
15
|
+
typeof formCode === "string" && formCode.indexOf(H5_FORM_CODE_PREFIX) === 0
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** 去掉移动端前缀,返回编码主体 */
|
|
20
|
+
export function stripH5Prefix(formCode) {
|
|
21
|
+
if (!isH5FormTemplate(formCode)) {
|
|
22
|
+
return formCode || "";
|
|
23
|
+
}
|
|
24
|
+
return formCode.slice(H5_FORM_CODE_PREFIX.length);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** 按模板类型给编码补/去前缀,重复调用不会叠加前缀 */
|
|
28
|
+
export function applyTemplateTypeToFormCode(formCode, templateType) {
|
|
29
|
+
let code = stripH5Prefix(formCode);
|
|
30
|
+
return templateType === TEMPLATE_TYPE_H5 ? H5_FORM_CODE_PREFIX + code : code;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** 由模板编码推导模板类型 */
|
|
34
|
+
export function getTemplateTypeByFormCode(formCode) {
|
|
35
|
+
return isH5FormTemplate(formCode) ? TEMPLATE_TYPE_H5 : TEMPLATE_TYPE_PC;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 进入设计器时的默认布局模式(临时模式:仅入口默认值,用户仍可手动切换)
|
|
40
|
+
*/
|
|
41
|
+
export function getDesignerLayoutType(formCode) {
|
|
42
|
+
return isH5FormTemplate(formCode) ? "H5" : "PC";
|
|
43
|
+
}
|