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,103 +1,103 @@
1
- <template>
2
- <div>
3
- <component
4
- v-if="homeContent && showHomeContent"
5
- :is="homeContent"
6
- visible-key="showHomeContent"
7
- :parent-target="_self"
8
- @reload="$reloadHandle"
9
- ></component>
10
- </div>
11
- </template>
12
-
13
- <script>
14
- import corejsConfig from "@/corejsConfig";
15
- import settingConfig from "@/settings";
16
- import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
17
-
18
- export default {
19
- name: 'home',
20
- components: {},
21
- data() {
22
- return {
23
- flag: 0,
24
- homeContent: null,
25
- showHomeContent: false,
26
- userInfo: {}
27
- };
28
- },
29
- created() {
30
- this.init();
31
- },
32
- methods: {
33
- init() {
34
- this.$http({
35
- url: USER_PREFIX + '/user/currentUser',
36
- method: 'post',
37
- success: res => {
38
- let userInfo = res.objx;
39
- this.userInfo = userInfo;
40
- let flag = userInfo.flag;
41
- this.initHome();
42
- }
43
- });
44
- },
45
- getIsDistributor(userInfo) {
46
- this.$http({
47
- url: USER_PREFIX + '/userb/getUserRole',
48
- method: `post`,
49
- data: {id: userInfo.id},
50
- success: res2 => {
51
- let rows = res2.objx || [];
52
- let codes = rows.map(row => row.roleCode);
53
- if (codes.includes('distributor')) {
54
- this.flag = 2;
55
- } else {
56
- this.initHome();
57
- }
58
- }
59
- });
60
- },
61
- async initHome() {
62
- let url = null;
63
- let userInfo = this.userInfo;
64
- let flag = userInfo.flag;
65
- if (flag == 6 || flag == 7 || flag == 8) {
66
- // 路径是常量,用字面量 import:生成普通 ImportDependency,不参与 views context
67
- this.homeContent = (
68
- await import("@base/views/user/home/dev.vue")
69
- ).default;
70
- this.showHomeContent = true;
71
- return
72
- }
73
- this.$http({
74
- url: USER_PREFIX + '/menu/currentList',
75
- data: {},
76
- method: 'post',
77
- success: async res => {
78
- let menus = res.objx || [];
79
- let homeMenu = menus.find(menu => menu.type == 2 && menu.enabled);
80
- let menuUrl = homeMenu?.url;
81
-
82
- let userInfo = this.userInfo;
83
- let flag = userInfo.flag;
84
-
85
- if (menuUrl && flag !== 1) {
86
- //超级管理员不使用角色首页
87
- url = menuUrl + '.vue';
88
- } else {
89
- let defaultHomePage = this.userInfo.defaultHomePage;
90
- url = defaultHomePage || settingConfig.defaultHomePage || '@base/views/user/home/default.vue'
91
- }
92
- // 首页菜单不会归属别的子应用,无需 remote 兜底;归属解析见 @base/utils/resolveViewComponent
93
- this.homeContent = (await loadViewComponentAsync(url)).component;
94
-
95
- this.showHomeContent = true;
96
- this.flag = 1;
97
- }
98
- });
99
- }
100
-
101
- }
102
- };
103
- </script>
1
+ <template>
2
+ <div>
3
+ <component
4
+ v-if="homeContent && showHomeContent"
5
+ :is="homeContent"
6
+ visible-key="showHomeContent"
7
+ :parent-target="_self"
8
+ @reload="$reloadHandle"
9
+ ></component>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import corejsConfig from "@/corejsConfig";
15
+ import settingConfig from "@/settings";
16
+ import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
17
+
18
+ export default {
19
+ name: 'home',
20
+ components: {},
21
+ data() {
22
+ return {
23
+ flag: 0,
24
+ homeContent: null,
25
+ showHomeContent: false,
26
+ userInfo: {}
27
+ };
28
+ },
29
+ created() {
30
+ this.init();
31
+ },
32
+ methods: {
33
+ init() {
34
+ this.$http({
35
+ url: USER_PREFIX + '/user/currentUser',
36
+ method: 'post',
37
+ success: res => {
38
+ let userInfo = res.objx;
39
+ this.userInfo = userInfo;
40
+ let flag = userInfo.flag;
41
+ this.initHome();
42
+ }
43
+ });
44
+ },
45
+ getIsDistributor(userInfo) {
46
+ this.$http({
47
+ url: USER_PREFIX + '/userb/getUserRole',
48
+ method: `post`,
49
+ data: {id: userInfo.id},
50
+ success: res2 => {
51
+ let rows = res2.objx || [];
52
+ let codes = rows.map(row => row.roleCode);
53
+ if (codes.includes('distributor')) {
54
+ this.flag = 2;
55
+ } else {
56
+ this.initHome();
57
+ }
58
+ }
59
+ });
60
+ },
61
+ async initHome() {
62
+ let url = null;
63
+ let userInfo = this.userInfo;
64
+ let flag = userInfo.flag;
65
+ if (flag == 6 || flag == 7 || flag == 8) {
66
+ // 路径是常量,用字面量 import:生成普通 ImportDependency,不参与 views context
67
+ this.homeContent = (
68
+ await import("@base/views/user/home/dev.vue")
69
+ ).default;
70
+ this.showHomeContent = true;
71
+ return
72
+ }
73
+ this.$http({
74
+ url: USER_PREFIX + '/menu/currentList',
75
+ data: {},
76
+ method: 'post',
77
+ success: async res => {
78
+ let menus = res.objx || [];
79
+ let homeMenu = menus.find(menu => menu.type == 2 && menu.enabled);
80
+ let menuUrl = homeMenu?.url;
81
+
82
+ let userInfo = this.userInfo;
83
+ let flag = userInfo.flag;
84
+
85
+ if (menuUrl && flag !== 1) {
86
+ //超级管理员不使用角色首页
87
+ url = menuUrl + '.vue';
88
+ } else {
89
+ let defaultHomePage = this.userInfo.defaultHomePage;
90
+ url = defaultHomePage || settingConfig.defaultHomePage || '@base/views/user/home/default.vue'
91
+ }
92
+ // 首页菜单不会归属别的子应用,无需 remote 兜底;归属解析见 @base/utils/resolveViewComponent
93
+ this.homeContent = (await loadViewComponentAsync(url)).component;
94
+
95
+ this.showHomeContent = true;
96
+ this.flag = 1;
97
+ }
98
+ });
99
+ }
100
+
101
+ }
102
+ };
103
+ </script>
@@ -1,139 +1,139 @@
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
- v-if="showWfDialog2"
8
- :visible.sync="showWfDialog2"
9
- :modal="false"
10
- custom-class="el-dialog dialog-style designer-dialog indexUse"
11
- width="100%"
12
- height="100%"
13
- top="0px"
14
- bottom="0px"
15
- :destroy-on-close="true"
16
- v-el-drag-dialog
17
- >
18
- <div id="containt">
19
- <component
20
- v-if="showWfContent && wfContent"
21
- :is="wfContent"
22
- visible-key="showWfContent"
23
- v-bind="param"
24
- :_isNotifyMessage="true"
25
- :parent-target="_self"
26
- @reload="$reloadHandle"
27
- ></component>
28
- <micro-view-host
29
- v-else-if="showWfContent && remoteView"
30
- :owner="remoteView.owner"
31
- :target-path="remoteView.targetPath"
32
- :biz-params="remoteView.bizParams"
33
- :view-meta="remoteView.viewMeta"
34
- @reload="$reloadHandle"
35
- @close="showWfContent = false"
36
- ></micro-view-host>
37
- </div>
38
- </el-dialog>
39
- </template>
40
-
41
- <script>
42
- import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
43
- export default {
44
- props: {},
45
- data() {
46
- return {
47
- showWfDialog2: false,
48
- wfUrl2: "",
49
- showWfContent: true,
50
- wfContent: null,
51
- remoteView: null,
52
- wfDataId: "",
53
- param: {},
54
- };
55
- },
56
- methods: {
57
- getUrlParam(url) {
58
- var reg = /([^?&=]+)=([^?&=]+)/g,
59
- obj = {},
60
- str = url;
61
- url.replace(reg, function () {
62
- obj[arguments[1]] = arguments[2];
63
- });
64
- return obj;
65
- },
66
- notifyMessageRead(row, callback) {
67
- if (row.readed == 0) {
68
- this.$http({
69
- url: USER_PREFIX + `/notify_message/read`,
70
- method: `post`,
71
- data: [row.id],
72
- isLoading: true,
73
- loadingTarget: document.body,
74
- success: (res) => {
75
- callback && callback();
76
- },
77
- });
78
- } else {
79
- callback && callback();
80
- }
81
- },
82
- open(row, callback) {
83
- this.notifyMessageRead(row, async () => {
84
- let turl = row.jumpContent;
85
- let wfUrl = turl.split("?")[0];
86
- let param = this.getUrlParam(turl);
87
- let wfDataId = param.dataId;
88
- if (!wfDataId) {
89
- wfDataId = 0;
90
- } else if (!isNaN(wfDataId)) {
91
- wfDataId = Number(wfDataId);
92
- }
93
-
94
- if (wfUrl == "form") {
95
- let formCode = null;
96
- if (param.formCode) {
97
- formCode = param.formCode;
98
- } else {
99
- formCode = param.objTypeCode.substr(9);
100
- }
101
- this.param = Object.assign(param, {
102
- formCode: formCode,
103
- dataId: wfDataId,
104
- });
105
- // 路径是常量,用字面量 import:生成普通 ImportDependency,不参与 views context
106
- this.wfContent = (
107
- await import("@base/views/user/form/vform/render.vue")
108
- ).default;
109
- } else {
110
- this.param = Object.assign(param, {
111
- _dataId: wfDataId,
112
- });
113
- let url = wfUrl + ".vue";
114
- let id = wfDataId;
115
- this.wfDataId = !id || typeof id == "object" ? 0 : id;
116
- // this.showWfDialog = true;
117
- this.showWfContent = true;
118
- const res = await loadViewComponentAsync(url);
119
- this.remoteView =
120
- res.kind === "remote"
121
- ? {
122
- owner: res.owner,
123
- targetPath: res.targetPath,
124
- bizParams: this.param,
125
- viewMeta: { visibleKey: "showWfContent", _isNotifyMessage: true },
126
- }
127
- : null;
128
- this.wfContent = res.component;
129
- }
130
- this.showWfDialog2 = true;
131
-
132
- callback && callback();
133
- });
134
- },
135
- },
136
- };
137
- </script>
138
-
139
- <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
+ v-if="showWfDialog2"
8
+ :visible.sync="showWfDialog2"
9
+ :modal="false"
10
+ custom-class="el-dialog dialog-style designer-dialog indexUse"
11
+ width="100%"
12
+ height="100%"
13
+ top="0px"
14
+ bottom="0px"
15
+ :destroy-on-close="true"
16
+ v-el-drag-dialog
17
+ >
18
+ <div id="containt">
19
+ <component
20
+ v-if="showWfContent && wfContent"
21
+ :is="wfContent"
22
+ visible-key="showWfContent"
23
+ v-bind="param"
24
+ :_isNotifyMessage="true"
25
+ :parent-target="_self"
26
+ @reload="$reloadHandle"
27
+ ></component>
28
+ <micro-view-host
29
+ v-else-if="showWfContent && remoteView"
30
+ :owner="remoteView.owner"
31
+ :target-path="remoteView.targetPath"
32
+ :biz-params="remoteView.bizParams"
33
+ :view-meta="remoteView.viewMeta"
34
+ @reload="$reloadHandle"
35
+ @close="showWfContent = false"
36
+ ></micro-view-host>
37
+ </div>
38
+ </el-dialog>
39
+ </template>
40
+
41
+ <script>
42
+ import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
43
+ export default {
44
+ props: {},
45
+ data() {
46
+ return {
47
+ showWfDialog2: false,
48
+ wfUrl2: "",
49
+ showWfContent: true,
50
+ wfContent: null,
51
+ remoteView: null,
52
+ wfDataId: "",
53
+ param: {},
54
+ };
55
+ },
56
+ methods: {
57
+ getUrlParam(url) {
58
+ var reg = /([^?&=]+)=([^?&=]+)/g,
59
+ obj = {},
60
+ str = url;
61
+ url.replace(reg, function () {
62
+ obj[arguments[1]] = arguments[2];
63
+ });
64
+ return obj;
65
+ },
66
+ notifyMessageRead(row, callback) {
67
+ if (row.readed == 0) {
68
+ this.$http({
69
+ url: USER_PREFIX + `/notify_message/read`,
70
+ method: `post`,
71
+ data: [row.id],
72
+ isLoading: true,
73
+ loadingTarget: document.body,
74
+ success: (res) => {
75
+ callback && callback();
76
+ },
77
+ });
78
+ } else {
79
+ callback && callback();
80
+ }
81
+ },
82
+ open(row, callback) {
83
+ this.notifyMessageRead(row, async () => {
84
+ let turl = row.jumpContent;
85
+ let wfUrl = turl.split("?")[0];
86
+ let param = this.getUrlParam(turl);
87
+ let wfDataId = param.dataId;
88
+ if (!wfDataId) {
89
+ wfDataId = 0;
90
+ } else if (!isNaN(wfDataId)) {
91
+ wfDataId = Number(wfDataId);
92
+ }
93
+
94
+ if (wfUrl == "form") {
95
+ let formCode = null;
96
+ if (param.formCode) {
97
+ formCode = param.formCode;
98
+ } else {
99
+ formCode = param.objTypeCode.substr(9);
100
+ }
101
+ this.param = Object.assign(param, {
102
+ formCode: formCode,
103
+ dataId: wfDataId,
104
+ });
105
+ // 路径是常量,用字面量 import:生成普通 ImportDependency,不参与 views context
106
+ this.wfContent = (
107
+ await import("@base/views/user/form/vform/render.vue")
108
+ ).default;
109
+ } else {
110
+ this.param = Object.assign(param, {
111
+ _dataId: wfDataId,
112
+ });
113
+ let url = wfUrl + ".vue";
114
+ let id = wfDataId;
115
+ this.wfDataId = !id || typeof id == "object" ? 0 : id;
116
+ // this.showWfDialog = true;
117
+ this.showWfContent = true;
118
+ const res = await loadViewComponentAsync(url);
119
+ this.remoteView =
120
+ res.kind === "remote"
121
+ ? {
122
+ owner: res.owner,
123
+ targetPath: res.targetPath,
124
+ bizParams: this.param,
125
+ viewMeta: { visibleKey: "showWfContent", _isNotifyMessage: true },
126
+ }
127
+ : null;
128
+ this.wfContent = res.component;
129
+ }
130
+ this.showWfDialog2 = true;
131
+
132
+ callback && callback();
133
+ });
134
+ },
135
+ },
136
+ };
137
+ </script>
138
+
139
+ <style scoped></style>