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.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/view.vue +27 -26
  3. package/src/components/excelImport/index.vue +156 -156
  4. package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
  5. package/src/components/mobile/wf/content.vue +110 -67
  6. package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
  7. package/src/components/mobile/wf/selectUserDialog.vue +122 -0
  8. package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
  9. package/src/components/mobile/wf/urgingDialog.vue +26 -3
  10. package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
  11. package/src/components/xform/form-designer/designer.js +36 -52
  12. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
  13. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
  14. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +2 -2
  15. package/src/components/xform/form-designer/indexMixin.js +25 -0
  16. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -860
  17. package/src/components/xform/form-designer/toolbar-panel/index.vue +874 -874
  18. package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
  19. package/src/components/xform/form-designer/widget-panel/indexMixin.js +15 -2
  20. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +53 -1
  21. package/src/components/xform/form-render/container-item/list-h5-item.vue +154 -27
  22. package/src/components/xform/form-render/indexMixin.js +23 -3
  23. package/src/components/xform/styles/h5.scss +775 -588
  24. package/src/directive/append-to-body/index.js +48 -0
  25. package/src/index.js +4 -0
  26. package/src/layout/components/Sidebar/default.vue +1655 -1655
  27. package/src/router/index.js +48 -48
  28. package/src/utils/vab.js +1283 -1283
  29. package/src/views/bd/setting/form_template/edit.vue +378 -356
  30. package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
  31. package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
  32. package/src/views/bd/setting/form_template/list.vue +304 -303
  33. package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
  34. package/src/views/bd/setting/form_template/mixins/list.js +748 -721
  35. package/src/views/user/file_view_ins/list.vue +970 -970
  36. package/src/views/user/form/vform/designer.vue +823 -821
  37. package/src/views/user/home/default.vue +1117 -1117
  38. package/src/views/user/home/index.vue +103 -103
  39. package/src/views/user/notify_message/dialog.vue +139 -139
  40. package/src/views/user/outLink/form_view.vue +202 -202
  41. package/src/views/user/outLink/index.vue +110 -110
  42. package/src/views/user/wf/iframe/index.vue +51 -51
  43. package/src/views/user/wf/iframe/index2.vue +64 -64
  44. package/src/views/user/wf/wf_manage/list2.vue +871 -871
  45. package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -134
@@ -1,134 +1,134 @@
1
- <template>
2
- <el-dialog
3
- :title="$t1('查看单据流程')"
4
- :append-to-body="true"
5
- :modal-append-to-body="true"
6
- :close-on-click-modal="false"
7
- :visible.sync="showWfDialog"
8
- :modal="false"
9
- custom-class="el-dialog dialog-style designer-dialog indexUse"
10
- width="100%"
11
- height="100%"
12
- top="0px"
13
- bottom="0px"
14
- :destroy-on-close="true"
15
- @close="wfClose"
16
- >
17
- <div id="containt">
18
- <component
19
- v-if="showWfContent && wfContent"
20
- :is="wfContent"
21
- visible-key="showWfContent"
22
- v-bind="param"
23
- :parent-target="_self"
24
- :defaultShowWfContent="true"
25
- :_viewType="1"
26
- @reload="$reloadHandle"
27
- :_handleCallback="handleCallback"
28
- ></component>
29
- <micro-view-host
30
- v-else-if="showWfContent && remoteView"
31
- :owner="remoteView.owner"
32
- :target-path="remoteView.targetPath"
33
- :biz-params="remoteView.bizParams"
34
- :view-meta="remoteView.viewMeta"
35
- @reload="$reloadHandle"
36
- @handle-callback="handleCallback"
37
- @close="showWfContent = false"
38
- ></micro-view-host>
39
- </div>
40
- </el-dialog>
41
- </template>
42
-
43
- <script>
44
- import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
45
- export default {
46
- name: "wfContentDialog",
47
- props: {
48
- option: {
49
- type: Object,
50
- default: {},
51
- },
52
- },
53
- components: {},
54
- data() {
55
- return {
56
- param: {},
57
- wfContent: null,
58
- remoteView: null,
59
- showWfContent: false,
60
- showWfDialog: true,
61
- };
62
- },
63
- created() {
64
- this.openWfDialog();
65
- },
66
- methods: {
67
- handleCallback(flag) {
68
- if ([1, 2, 3, 4].includes(flag)) {
69
- this.$http({
70
- url: USER_PREFIX + "/wf_diy_attribute/getValue",
71
- method: `post`,
72
- data: { attributeKey: "param4" },
73
- isLoading: true,
74
- success: (res) => {
75
- let val = res.objx || false;
76
- this.option._handleCallback && this.option._handleCallback(flag);
77
- if (val === true) {
78
- this.wfClose();
79
- }
80
- },
81
- });
82
- } else {
83
- this.option._handleCallback && this.option._handleCallback(flag);
84
- }
85
- },
86
- wfClose() {
87
- this.showWfDialog = false;
88
- this.$emit("update:visible", false);
89
- this.$emit("close");
90
- },
91
- // 异步:await 之后才置 showWfContent(见方法末尾),否则弹窗先开出空壳
92
- async openWfDialog() {
93
- let id = this.option.objId;
94
- let wfDataId = !id || typeof id == "object" ? 0 : Number(id);
95
- let param = this.option.param || {};
96
- if (this.option.url == "form") {
97
- let formCode = null;
98
- if (this.option.formCode) {
99
- formCode = this.option.formCode;
100
- } else {
101
- formCode = this.option.objTypeCode.substr(9);
102
- }
103
- this.param = Object.assign(param, {
104
- formCode: formCode,
105
- dataId: wfDataId,
106
- });
107
- // 路径是常量,用字面量 import:生成普通 ImportDependency,不参与 views context
108
- this.wfContent = (
109
- await import("@base/views/user/form/vform/render.vue")
110
- ).default;
111
- } else {
112
- this.param = Object.assign(param, {
113
- _dataId: wfDataId,
114
- });
115
- let url = this.option.url + ".vue";
116
- const res = await loadViewComponentAsync(url);
117
- this.remoteView =
118
- res.kind === "remote"
119
- ? {
120
- owner: res.owner,
121
- targetPath: res.targetPath,
122
- bizParams: this.param,
123
- viewMeta: { visibleKey: "showWfContent", defaultShowWfContent: true, viewType: 1 },
124
- }
125
- : null;
126
- this.wfContent = res.component;
127
- }
128
- this.showWfContent = true;
129
- },
130
- },
131
- };
132
- </script>
133
-
134
- <style scoped></style>
1
+ <template>
2
+ <el-dialog
3
+ :title="$t1('查看单据流程')"
4
+ :append-to-body="true"
5
+ :modal-append-to-body="true"
6
+ :close-on-click-modal="false"
7
+ :visible.sync="showWfDialog"
8
+ :modal="false"
9
+ custom-class="el-dialog dialog-style designer-dialog indexUse"
10
+ width="100%"
11
+ height="100%"
12
+ top="0px"
13
+ bottom="0px"
14
+ :destroy-on-close="true"
15
+ @close="wfClose"
16
+ >
17
+ <div id="containt">
18
+ <component
19
+ v-if="showWfContent && wfContent"
20
+ :is="wfContent"
21
+ visible-key="showWfContent"
22
+ v-bind="param"
23
+ :parent-target="_self"
24
+ :defaultShowWfContent="true"
25
+ :_viewType="1"
26
+ @reload="$reloadHandle"
27
+ :_handleCallback="handleCallback"
28
+ ></component>
29
+ <micro-view-host
30
+ v-else-if="showWfContent && remoteView"
31
+ :owner="remoteView.owner"
32
+ :target-path="remoteView.targetPath"
33
+ :biz-params="remoteView.bizParams"
34
+ :view-meta="remoteView.viewMeta"
35
+ @reload="$reloadHandle"
36
+ @handle-callback="handleCallback"
37
+ @close="showWfContent = false"
38
+ ></micro-view-host>
39
+ </div>
40
+ </el-dialog>
41
+ </template>
42
+
43
+ <script>
44
+ import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
45
+ export default {
46
+ name: "wfContentDialog",
47
+ props: {
48
+ option: {
49
+ type: Object,
50
+ default: {},
51
+ },
52
+ },
53
+ components: {},
54
+ data() {
55
+ return {
56
+ param: {},
57
+ wfContent: null,
58
+ remoteView: null,
59
+ showWfContent: false,
60
+ showWfDialog: true,
61
+ };
62
+ },
63
+ created() {
64
+ this.openWfDialog();
65
+ },
66
+ methods: {
67
+ handleCallback(flag) {
68
+ if ([1, 2, 3, 4].includes(flag)) {
69
+ this.$http({
70
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
71
+ method: `post`,
72
+ data: { attributeKey: "param4" },
73
+ isLoading: true,
74
+ success: (res) => {
75
+ let val = res.objx || false;
76
+ this.option._handleCallback && this.option._handleCallback(flag);
77
+ if (val === true) {
78
+ this.wfClose();
79
+ }
80
+ },
81
+ });
82
+ } else {
83
+ this.option._handleCallback && this.option._handleCallback(flag);
84
+ }
85
+ },
86
+ wfClose() {
87
+ this.showWfDialog = false;
88
+ this.$emit("update:visible", false);
89
+ this.$emit("close");
90
+ },
91
+ // 异步:await 之后才置 showWfContent(见方法末尾),否则弹窗先开出空壳
92
+ async openWfDialog() {
93
+ let id = this.option.objId;
94
+ let wfDataId = !id || typeof id == "object" ? 0 : Number(id);
95
+ let param = this.option.param || {};
96
+ if (this.option.url == "form") {
97
+ let formCode = null;
98
+ if (this.option.formCode) {
99
+ formCode = this.option.formCode;
100
+ } else {
101
+ formCode = this.option.objTypeCode.substr(9);
102
+ }
103
+ this.param = Object.assign(param, {
104
+ formCode: formCode,
105
+ dataId: wfDataId,
106
+ });
107
+ // 路径是常量,用字面量 import:生成普通 ImportDependency,不参与 views context
108
+ this.wfContent = (
109
+ await import("@base/views/user/form/vform/render.vue")
110
+ ).default;
111
+ } else {
112
+ this.param = Object.assign(param, {
113
+ _dataId: wfDataId,
114
+ });
115
+ let url = this.option.url + ".vue";
116
+ const res = await loadViewComponentAsync(url);
117
+ this.remoteView =
118
+ res.kind === "remote"
119
+ ? {
120
+ owner: res.owner,
121
+ targetPath: res.targetPath,
122
+ bizParams: this.param,
123
+ viewMeta: { visibleKey: "showWfContent", defaultShowWfContent: true, viewType: 1 },
124
+ }
125
+ : null;
126
+ this.wfContent = res.component;
127
+ }
128
+ this.showWfContent = true;
129
+ },
130
+ },
131
+ };
132
+ </script>
133
+
134
+ <style scoped></style>