cloud-web-corejs 1.1.0-dev.6 → 1.1.0-dev.8
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 +775 -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
|
@@ -69,6 +69,9 @@ import {
|
|
|
69
69
|
resolveTreeSubmitConfig,
|
|
70
70
|
} from "../utils/treeTableUtil";
|
|
71
71
|
|
|
72
|
+
/* 暂时:H5 运行时整表只读(设计器画布不受影响)。打开 H5 编辑时改 false 即可。 */
|
|
73
|
+
const H5_TEMP_READ_ONLY = true;
|
|
74
|
+
|
|
72
75
|
let modules = {};
|
|
73
76
|
const baseRefUtil = {
|
|
74
77
|
emitter,
|
|
@@ -184,7 +187,7 @@ modules = {
|
|
|
184
187
|
},
|
|
185
188
|
previewState: this.previewState,
|
|
186
189
|
getReadMode: function () {
|
|
187
|
-
return e.
|
|
190
|
+
return e.getReadMode();
|
|
188
191
|
},
|
|
189
192
|
getSubFormFieldFlag: function () {
|
|
190
193
|
return !1;
|
|
@@ -350,6 +353,15 @@ modules = {
|
|
|
350
353
|
: "";
|
|
351
354
|
},
|
|
352
355
|
|
|
356
|
+
/** 暂时:H5 版式强制只读 */
|
|
357
|
+
isH5TempReadOnly() {
|
|
358
|
+
return (
|
|
359
|
+
H5_TEMP_READ_ONLY &&
|
|
360
|
+
!!this.formConfig &&
|
|
361
|
+
this.formConfig.layoutType === "H5"
|
|
362
|
+
);
|
|
363
|
+
},
|
|
364
|
+
|
|
353
365
|
formModel() {
|
|
354
366
|
return this.formDataModel;
|
|
355
367
|
},
|
|
@@ -362,6 +374,7 @@ modules = {
|
|
|
362
374
|
this.currentFormData = this.formData;
|
|
363
375
|
|
|
364
376
|
this.initGlobalConfig(); //初始化全局配置
|
|
377
|
+
this.applyH5TempReadOnly();
|
|
365
378
|
this.buildFormModel(!this.formJsonObj ? null : this.formJsonObj.widgetList);
|
|
366
379
|
|
|
367
380
|
// this.handleOnCreated(),
|
|
@@ -2055,6 +2068,7 @@ modules = {
|
|
|
2055
2068
|
this.$set(this.formJsonObj, "formConfig", i.formConfig),
|
|
2056
2069
|
(this._provided.formConfig = i.formConfig),
|
|
2057
2070
|
this.$set(this.formJsonObj, "widgetList", i.widgetList),
|
|
2071
|
+
this.applyH5TempReadOnly(),
|
|
2058
2072
|
this.insertCustomStyleAndScriptNode(),
|
|
2059
2073
|
this.$nextTick(function () {
|
|
2060
2074
|
t.initFormObject(!1), t.handleOnMounted();
|
|
@@ -3598,10 +3612,16 @@ modules = {
|
|
|
3598
3612
|
setReadMode: function () {
|
|
3599
3613
|
let e =
|
|
3600
3614
|
!(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0];
|
|
3601
|
-
|
|
3615
|
+
/* H5 暂时只读:不允许关掉 */
|
|
3616
|
+
this.readModeFlag = this.isH5TempReadOnly ? true : e;
|
|
3602
3617
|
},
|
|
3603
3618
|
getReadMode: function () {
|
|
3604
|
-
return this.readModeFlag;
|
|
3619
|
+
return this.readModeFlag || this.isH5TempReadOnly;
|
|
3620
|
+
},
|
|
3621
|
+
applyH5TempReadOnly() {
|
|
3622
|
+
if (this.isH5TempReadOnly) {
|
|
3623
|
+
this.readModeFlag = true;
|
|
3624
|
+
}
|
|
3605
3625
|
},
|
|
3606
3626
|
getGlobalDsv: function () {
|
|
3607
3627
|
return this.globalDsv;
|