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
|
@@ -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>
|