cloud-web-corejs 1.1.0-dev.5 → 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.
Files changed (52) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/index.vue +1 -1
  3. package/src/components/VabUpload/view.vue +27 -26
  4. package/src/components/excelImport/index.vue +156 -156
  5. package/src/components/jsonImport/index.vue +1 -1
  6. package/src/components/langImport/index.vue +1 -1
  7. package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
  8. package/src/components/mobile/wf/content.vue +110 -67
  9. package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
  10. package/src/components/mobile/wf/selectUserDialog.vue +122 -0
  11. package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
  12. package/src/components/mobile/wf/urgingDialog.vue +26 -3
  13. package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
  14. package/src/components/obsUpload/index.vue +1 -1
  15. package/src/components/xform/form-designer/designer.js +36 -52
  16. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
  17. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
  18. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +2 -2
  19. package/src/components/xform/form-designer/indexMixin.js +33 -1
  20. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -860
  21. package/src/components/xform/form-designer/toolbar-panel/index.vue +874 -874
  22. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -0
  23. package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
  24. package/src/components/xform/form-designer/widget-panel/indexMixin.js +30 -6
  25. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +53 -1
  26. package/src/components/xform/form-render/container-item/list-h5-item.vue +154 -27
  27. package/src/components/xform/form-render/indexMixin.js +23 -3
  28. package/src/components/xform/styles/h5.scss +774 -588
  29. package/src/directive/append-to-body/index.js +48 -0
  30. package/src/index.js +4 -0
  31. package/src/layout/components/Sidebar/default.vue +1655 -1655
  32. package/src/router/index.js +48 -48
  33. package/src/utils/assetUrl.js +19 -0
  34. package/src/utils/vab.js +1283 -1279
  35. package/src/views/bd/setting/form_template/edit.vue +378 -356
  36. package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
  37. package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
  38. package/src/views/bd/setting/form_template/list.vue +304 -303
  39. package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
  40. package/src/views/bd/setting/form_template/mixins/list.js +748 -721
  41. package/src/views/user/file_view_ins/list.vue +970 -970
  42. package/src/views/user/form/vform/designer.vue +823 -821
  43. package/src/views/user/home/default.vue +1117 -1117
  44. package/src/views/user/home/index.vue +103 -103
  45. package/src/views/user/notify_message/dialog.vue +139 -139
  46. package/src/views/user/outLink/form_view.vue +202 -202
  47. package/src/views/user/outLink/index.vue +110 -110
  48. package/src/views/user/wf/iframe/index.vue +51 -51
  49. package/src/views/user/wf/iframe/index2.vue +64 -64
  50. package/src/views/user/wf/wf_manage/list2.vue +871 -871
  51. package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -134
  52. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
@@ -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>
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  </el-upload>
22
22
  <div class="upload-finish" v-if="fileRaw">
23
- <img :src="require('@/resources' + '/images/ico-txt.svg')" class="ico"/>
23
+ <img :src="$assetUrl(require('@/resources' + '/images/ico-txt.svg'))" class="ico"/>
24
24
  <p class="name">{{ fileRaw.name }}</p>
25
25
  <!-- <p>2022-1-17</p> -->
26
26
  <el-tooltip :enterable="false" class="item" effect="dark"