super-page-runtime 2.0.10 → 3.0.3
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/dist/es/_virtual/AttributeMap.js +4 -0
- package/dist/es/_virtual/Delta.js +4 -0
- package/dist/es/_virtual/Op.js +4 -0
- package/dist/es/_virtual/OpIterator.js +4 -0
- package/dist/es/_virtual/__vite-browser-external.js +4 -0
- package/dist/es/_virtual/_commonjsHelpers.js +8 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/es/_virtual/dayjs.min.js +4 -0
- package/dist/es/_virtual/index.js +4 -0
- package/dist/es/_virtual/index2.js +4 -0
- package/dist/es/_virtual/index3.js +4 -0
- package/dist/es/components/runtime/index.d.ts +3 -3
- package/dist/es/components/runtime/utils/api/api-util.js +3 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +1 -14
- package/dist/es/components/runtime/utils/common-util.d.ts +0 -5
- package/dist/es/components/runtime/utils/common-util.js +2 -15
- package/dist/es/components/runtime/utils/eventBus.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +7 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -4
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -19
- package/dist/es/components/runtime/utils/page-helper-util.js +3 -122
- package/dist/es/components/runtime/utils/page-init-util.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +25 -392
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +17 -13
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -13
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +19 -14
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -5
- package/dist/es/components/runtime/views/super-page.vue.js +7 -20
- package/dist/es/index.d.ts +2 -7
- package/dist/es/index.js +2 -11
- package/dist/lib/components/runtime/index.d.ts +3 -3
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -13
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -5
- package/dist/lib/components/runtime/utils/common-util.js +0 -13
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -19
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -119
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +3 -376
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -14
- package/dist/lib/index.d.ts +2 -7
- package/dist/lib/index.js +2 -11
- package/package.json +69 -70
- package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/es/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -44
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -62
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, withDirectives, normalizeStyle, toDisplayString, vShow, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import _sfc_main$2 from "./common-chart-header-group.vue.js";
|
|
3
|
-
import _sfc_main$1 from "./common-chart-header-breadcrumb.vue.js";
|
|
4
|
-
const _hoisted_1 = { class: "amb-widget-chart-header" };
|
|
5
|
-
const _hoisted_2 = { class: "amb-widget-chart-header-item" };
|
|
6
|
-
const _hoisted_3 = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" };
|
|
7
|
-
const _hoisted_4 = { class: "amb-widget-chart-header-item" };
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "common-chart-header",
|
|
10
|
-
props: {
|
|
11
|
-
headerInfo: {
|
|
12
|
-
type: Object,
|
|
13
|
-
required: true
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
emits: ["drill-end"],
|
|
17
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
18
|
-
const props = __props;
|
|
19
|
-
const drillObjRef = ref(null);
|
|
20
|
-
const $emits = __emit;
|
|
21
|
-
if (!props.headerInfo.drillOptions) {
|
|
22
|
-
props.headerInfo.drillOptions = [];
|
|
23
|
-
}
|
|
24
|
-
function closeDrill(closeIndex) {
|
|
25
|
-
const drillLen = props.headerInfo.drillOptions.length;
|
|
26
|
-
if (closeIndex >= drillLen) {
|
|
27
|
-
console.log("无效的取消操作,", closeIndex, props.headerInfo.drillOptions);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
for (let i = drillLen - 1; i >= closeIndex; i--) {
|
|
31
|
-
props.headerInfo.drillOptions.splice(i, 1);
|
|
32
|
-
}
|
|
33
|
-
toDrillLevel(closeIndex);
|
|
34
|
-
}
|
|
35
|
-
function drill(params, datas) {
|
|
36
|
-
const currentIndex = props.headerInfo.drillOptions.length;
|
|
37
|
-
if (currentIndex + 1 >= props.headerInfo.options.length) {
|
|
38
|
-
console.log("钻取到最底层了!");
|
|
39
|
-
$emits("drill-end", params);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
console.log("props.headerInfo.options", currentIndex, props.headerInfo.options);
|
|
43
|
-
const targetGroup = props.headerInfo.options[currentIndex];
|
|
44
|
-
const drillOption = {
|
|
45
|
-
fieldName: targetGroup.target ? targetGroup.target.replace(".", "_") : "",
|
|
46
|
-
label: params.name,
|
|
47
|
-
value: params.name
|
|
48
|
-
};
|
|
49
|
-
props.headerInfo.drillOptions.push(drillOption);
|
|
50
|
-
toDrillLevel(currentIndex + 1);
|
|
51
|
-
}
|
|
52
|
-
function toDrillLevel(drillIndex) {
|
|
53
|
-
const drillParams = {};
|
|
54
|
-
for (let o of props.headerInfo.drillOptions) {
|
|
55
|
-
if (o.fieldName) {
|
|
56
|
-
drillParams[o.fieldName] = o.value;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
props.headerInfo.drillParams = drillParams;
|
|
60
|
-
props.headerInfo.groupValue = props.headerInfo.options[drillIndex].value;
|
|
61
|
-
}
|
|
62
|
-
__expose({
|
|
63
|
-
drill
|
|
64
|
-
});
|
|
65
|
-
return (_ctx, _cache) => {
|
|
66
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
67
|
-
createElementVNode("div", _hoisted_2, [
|
|
68
|
-
withDirectives(createElementVNode("label", {
|
|
69
|
-
style: normalizeStyle(__props.headerInfo.style)
|
|
70
|
-
}, toDisplayString(__props.headerInfo.title) + " ", 5), [
|
|
71
|
-
[vShow, __props.headerInfo.title && (!__props.headerInfo.textAlign || __props.headerInfo.textAlign == "left")]
|
|
72
|
-
]),
|
|
73
|
-
__props.headerInfo.showDrill && (!__props.headerInfo.groupPosition || __props.headerInfo.groupPosition == "left") ? (openBlock(), createBlock(_sfc_main$1, {
|
|
74
|
-
key: 0,
|
|
75
|
-
ref_key: "drillObjRef",
|
|
76
|
-
ref: drillObjRef,
|
|
77
|
-
headerInfo: __props.headerInfo,
|
|
78
|
-
onCloseDrill: closeDrill
|
|
79
|
-
}, null, 8, ["headerInfo"])) : createCommentVNode("", true),
|
|
80
|
-
__props.headerInfo.showGroup && (!__props.headerInfo.groupPosition || __props.headerInfo.groupPosition == "left") ? (openBlock(), createBlock(_sfc_main$2, {
|
|
81
|
-
key: 1,
|
|
82
|
-
headerInfo: __props.headerInfo
|
|
83
|
-
}, null, 8, ["headerInfo"])) : createCommentVNode("", true)
|
|
84
|
-
]),
|
|
85
|
-
createElementVNode("div", _hoisted_3, [
|
|
86
|
-
withDirectives(createElementVNode("label", {
|
|
87
|
-
style: normalizeStyle(__props.headerInfo.style)
|
|
88
|
-
}, toDisplayString(__props.headerInfo.title) + " ", 5), [
|
|
89
|
-
[vShow, __props.headerInfo.title && __props.headerInfo.textAlign == "center"]
|
|
90
|
-
]),
|
|
91
|
-
__props.headerInfo.showDrill && __props.headerInfo.groupPosition == "center" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
92
|
-
key: 0,
|
|
93
|
-
headerInfo: __props.headerInfo,
|
|
94
|
-
onCloseDrill: closeDrill,
|
|
95
|
-
ref_key: "drillObjRef",
|
|
96
|
-
ref: drillObjRef
|
|
97
|
-
}, null, 8, ["headerInfo"])) : createCommentVNode("", true),
|
|
98
|
-
__props.headerInfo.showGroup && __props.headerInfo.groupPosition == "center" ? (openBlock(), createBlock(_sfc_main$2, {
|
|
99
|
-
key: 1,
|
|
100
|
-
headerInfo: __props.headerInfo
|
|
101
|
-
}, null, 8, ["headerInfo"])) : createCommentVNode("", true)
|
|
102
|
-
]),
|
|
103
|
-
createElementVNode("div", _hoisted_4, [
|
|
104
|
-
withDirectives(createElementVNode("label", {
|
|
105
|
-
style: normalizeStyle(__props.headerInfo.style)
|
|
106
|
-
}, toDisplayString(__props.headerInfo.title) + " ", 5), [
|
|
107
|
-
[vShow, __props.headerInfo.title && __props.headerInfo.textAlign == "right"]
|
|
108
|
-
]),
|
|
109
|
-
__props.headerInfo.showDrill && __props.headerInfo.groupPosition == "right" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
110
|
-
key: 0,
|
|
111
|
-
headerInfo: __props.headerInfo,
|
|
112
|
-
onCloseDrill: closeDrill,
|
|
113
|
-
ref_key: "drillObjRef",
|
|
114
|
-
ref: drillObjRef
|
|
115
|
-
}, null, 8, ["headerInfo"])) : createCommentVNode("", true),
|
|
116
|
-
__props.headerInfo.showGroup && __props.headerInfo.groupPosition == "right" ? (openBlock(), createBlock(_sfc_main$2, {
|
|
117
|
-
key: 1,
|
|
118
|
-
headerInfo: __props.headerInfo
|
|
119
|
-
}, null, 8, ["headerInfo"])) : createCommentVNode("", true)
|
|
120
|
-
])
|
|
121
|
-
]);
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
export {
|
|
126
|
-
_sfc_main as default
|
|
127
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare enum FuncType {
|
|
2
|
-
/**
|
|
3
|
-
* 公用
|
|
4
|
-
*/
|
|
5
|
-
AUTHENTICATED = "AUTHENTICATED",
|
|
6
|
-
/**
|
|
7
|
-
* 匿名
|
|
8
|
-
*/
|
|
9
|
-
ANONYMOUS = "ANONYMOUS",
|
|
10
|
-
/**
|
|
11
|
-
* 专用
|
|
12
|
-
*/
|
|
13
|
-
AUTHORIZED = "AUTHORIZED"
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* 根据简码获取对应的资源信息
|
|
17
|
-
* @param eventName 方法名
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
export declare function getStandPermissionInfo(eventName: string): any;
|
|
21
|
-
/**
|
|
22
|
-
* 获取资源信息
|
|
23
|
-
* @param simpleCode
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
export declare function getFunctionInfo(simpleCode: string): any;
|
|
@@ -1,525 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var FuncType = /* @__PURE__ */ ((FuncType2) => {
|
|
4
|
-
FuncType2["AUTHENTICATED"] = "AUTHENTICATED";
|
|
5
|
-
FuncType2["ANONYMOUS"] = "ANONYMOUS";
|
|
6
|
-
FuncType2["AUTHORIZED"] = "AUTHORIZED";
|
|
7
|
-
return FuncType2;
|
|
8
|
-
})(FuncType || {});
|
|
9
|
-
const standardFuncUrlMap = {
|
|
10
|
-
page: {
|
|
11
|
-
label: "页面",
|
|
12
|
-
functions: [
|
|
13
|
-
{
|
|
14
|
-
label: "页面",
|
|
15
|
-
path: "temp"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
gets: {
|
|
20
|
-
group: "表单标准功能",
|
|
21
|
-
label: "获取表单数据",
|
|
22
|
-
functions: [
|
|
23
|
-
{
|
|
24
|
-
funcType: "AUTHENTICATED",
|
|
25
|
-
path: "/commons/gets$POST"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
workflowGets: {
|
|
30
|
-
group: "标准流程",
|
|
31
|
-
label: "获取表单及流程数据",
|
|
32
|
-
functions: [
|
|
33
|
-
{
|
|
34
|
-
funcType: "AUTHENTICATED",
|
|
35
|
-
path: "/workflow-commons/gets$POST"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
save: {
|
|
40
|
-
group: "表单标准功能",
|
|
41
|
-
label: "暂存",
|
|
42
|
-
functions: [
|
|
43
|
-
{
|
|
44
|
-
code: "create",
|
|
45
|
-
label: "暂存",
|
|
46
|
-
path: "/commons$POST"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
code: "update",
|
|
50
|
-
label: "修改",
|
|
51
|
-
path: "/commons$POST"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
submit: {
|
|
56
|
-
group: "表单标准功能",
|
|
57
|
-
label: "提交",
|
|
58
|
-
functions: [
|
|
59
|
-
{
|
|
60
|
-
path: "/commons/submits$POST"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
exportForm: {
|
|
65
|
-
group: "表单标准功能",
|
|
66
|
-
label: "导出报告",
|
|
67
|
-
functions: [
|
|
68
|
-
{
|
|
69
|
-
path: "/commons/export-reports$POST"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
exportPDF: {
|
|
74
|
-
group: "表单标准功能",
|
|
75
|
-
label: "导出PDF",
|
|
76
|
-
functions: [
|
|
77
|
-
{
|
|
78
|
-
path: "/commons/exportPDF$POST"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
agree: {
|
|
83
|
-
group: "表单标准功能",
|
|
84
|
-
label: "同意",
|
|
85
|
-
functions: [
|
|
86
|
-
{
|
|
87
|
-
path: "/commons/approves$POST"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
disagree: {
|
|
92
|
-
group: "表单标准功能",
|
|
93
|
-
label: "不同意",
|
|
94
|
-
functions: [
|
|
95
|
-
{
|
|
96
|
-
path: "/commons/refuses$POST"
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
back: {
|
|
101
|
-
group: "表单标准功能",
|
|
102
|
-
label: "返回",
|
|
103
|
-
functions: []
|
|
104
|
-
//无资源时表示不需要控制
|
|
105
|
-
},
|
|
106
|
-
workflowSave: {
|
|
107
|
-
group: "流程表单功能",
|
|
108
|
-
label: "暂存",
|
|
109
|
-
functions: [
|
|
110
|
-
{
|
|
111
|
-
funcType: "AUTHENTICATED",
|
|
112
|
-
//公用
|
|
113
|
-
path: "/workflow-commons$POST"
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
submitProcess: {
|
|
118
|
-
group: "流程表单功能",
|
|
119
|
-
label: "提交流程",
|
|
120
|
-
functions: [
|
|
121
|
-
{
|
|
122
|
-
funcType: "AUTHENTICATED",
|
|
123
|
-
//公用
|
|
124
|
-
path: "/workflow-commons/submit$POST"
|
|
125
|
-
}
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
submitTask: {
|
|
129
|
-
group: "流程表单功能",
|
|
130
|
-
label: "提交任务",
|
|
131
|
-
functions: [
|
|
132
|
-
{
|
|
133
|
-
funcType: "AUTHENTICATED",
|
|
134
|
-
//公用
|
|
135
|
-
code: "completeTask.submitTask",
|
|
136
|
-
path: "/workflow-commons/complete-tasks$POST"
|
|
137
|
-
}
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
approve: {
|
|
141
|
-
group: "流程表单功能",
|
|
142
|
-
label: "同意",
|
|
143
|
-
functions: [
|
|
144
|
-
{
|
|
145
|
-
funcType: "AUTHENTICATED",
|
|
146
|
-
//公用
|
|
147
|
-
code: "completeTask.approve",
|
|
148
|
-
path: "/workflow-commons/complete-tasks$POST"
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
refuse: {
|
|
153
|
-
group: "流程表单功能",
|
|
154
|
-
label: "不同意",
|
|
155
|
-
functions: [
|
|
156
|
-
{
|
|
157
|
-
funcType: "AUTHENTICATED",
|
|
158
|
-
//公用
|
|
159
|
-
code: "completeTask.refuse",
|
|
160
|
-
path: "/workflow-commons/complete-tasks$POST"
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
assign: {
|
|
165
|
-
group: "流程表单功能",
|
|
166
|
-
label: "指派",
|
|
167
|
-
functions: [
|
|
168
|
-
{
|
|
169
|
-
funcType: "AUTHENTICATED",
|
|
170
|
-
//公用
|
|
171
|
-
path: "/workflow-commons/assigns$POST"
|
|
172
|
-
}
|
|
173
|
-
]
|
|
174
|
-
},
|
|
175
|
-
drawTask: {
|
|
176
|
-
group: "流程表单功能",
|
|
177
|
-
label: "领取",
|
|
178
|
-
functions: [
|
|
179
|
-
{
|
|
180
|
-
funcType: "AUTHENTICATED",
|
|
181
|
-
//公用
|
|
182
|
-
path: "/workflow-commons/draw-tasks$POST"
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
},
|
|
186
|
-
abandonReceive: {
|
|
187
|
-
group: "流程表单功能",
|
|
188
|
-
label: "放弃领取",
|
|
189
|
-
functions: [
|
|
190
|
-
{
|
|
191
|
-
funcType: "AUTHENTICATED",
|
|
192
|
-
//公用
|
|
193
|
-
path: "/workflow-commons/abandon-receives$POST"
|
|
194
|
-
}
|
|
195
|
-
]
|
|
196
|
-
},
|
|
197
|
-
readed: {
|
|
198
|
-
group: "流程表单功能",
|
|
199
|
-
label: "已阅",
|
|
200
|
-
functions: [
|
|
201
|
-
{
|
|
202
|
-
funcType: "AUTHENTICATED",
|
|
203
|
-
//公用
|
|
204
|
-
code: "completeTask.readed",
|
|
205
|
-
path: "/workflow-commons/complete-tasks$POST"
|
|
206
|
-
}
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
agreement: {
|
|
210
|
-
group: "流程表单功能",
|
|
211
|
-
label: "赞成",
|
|
212
|
-
functions: [
|
|
213
|
-
{
|
|
214
|
-
funcType: "AUTHENTICATED",
|
|
215
|
-
//公用
|
|
216
|
-
code: "completeTask.agreement",
|
|
217
|
-
path: "/workflow-commons/complete-tasks$POST"
|
|
218
|
-
}
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
|
-
oppose: {
|
|
222
|
-
group: "流程表单功能",
|
|
223
|
-
label: "反对",
|
|
224
|
-
functions: [
|
|
225
|
-
{
|
|
226
|
-
funcType: "AUTHENTICATED",
|
|
227
|
-
//公用
|
|
228
|
-
code: "completeTask.oppose",
|
|
229
|
-
path: "/workflow-commons/complete-tasks$POST"
|
|
230
|
-
}
|
|
231
|
-
]
|
|
232
|
-
},
|
|
233
|
-
kiken: {
|
|
234
|
-
group: "流程表单功能",
|
|
235
|
-
label: "弃权",
|
|
236
|
-
functions: [
|
|
237
|
-
{
|
|
238
|
-
funcType: "AUTHENTICATED",
|
|
239
|
-
//公用
|
|
240
|
-
code: "completeTask.kiken",
|
|
241
|
-
path: "/workflow-commons/complete-tasks$POST"
|
|
242
|
-
}
|
|
243
|
-
]
|
|
244
|
-
},
|
|
245
|
-
addSigner: {
|
|
246
|
-
group: "流程表单功能",
|
|
247
|
-
label: "加签",
|
|
248
|
-
functions: [
|
|
249
|
-
{
|
|
250
|
-
funcType: "AUTHENTICATED",
|
|
251
|
-
//公用
|
|
252
|
-
path: "/workflow-commons/add-signers$POST"
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
},
|
|
256
|
-
removeSigner: {
|
|
257
|
-
group: "流程表单功能",
|
|
258
|
-
label: "减签",
|
|
259
|
-
functions: [
|
|
260
|
-
{
|
|
261
|
-
funcType: "AUTHENTICATED",
|
|
262
|
-
//公用
|
|
263
|
-
path: "/workflow-commons/abandon-receives$POST"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
code: "getRemoveSigners",
|
|
267
|
-
//有编码时,以此为准
|
|
268
|
-
label: "获取可减签人员",
|
|
269
|
-
//有标题时,以此为准
|
|
270
|
-
funcType: "AUTHENTICATED",
|
|
271
|
-
//公用
|
|
272
|
-
path: "/workflow-commons/get-remove-signers$POST"
|
|
273
|
-
}
|
|
274
|
-
]
|
|
275
|
-
},
|
|
276
|
-
copyTask: {
|
|
277
|
-
group: "流程表单功能",
|
|
278
|
-
label: "抄送",
|
|
279
|
-
functions: [
|
|
280
|
-
{
|
|
281
|
-
funcType: "AUTHENTICATED",
|
|
282
|
-
//公用
|
|
283
|
-
path: "/workflow-commons/copies$POST"
|
|
284
|
-
}
|
|
285
|
-
]
|
|
286
|
-
},
|
|
287
|
-
retrieveTask: {
|
|
288
|
-
group: "流程表单功能",
|
|
289
|
-
label: "取回",
|
|
290
|
-
functions: [
|
|
291
|
-
{
|
|
292
|
-
funcType: "AUTHENTICATED",
|
|
293
|
-
//公用
|
|
294
|
-
path: "/workflow-commons/retrieves$POST"
|
|
295
|
-
}
|
|
296
|
-
]
|
|
297
|
-
},
|
|
298
|
-
returnToPreviousTask: {
|
|
299
|
-
group: "流程表单功能",
|
|
300
|
-
label: "驳回",
|
|
301
|
-
functions: [
|
|
302
|
-
{
|
|
303
|
-
funcType: "AUTHENTICATED",
|
|
304
|
-
//公用
|
|
305
|
-
path: "/workflow-commons/returnTaskTo$POST"
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
},
|
|
309
|
-
returnTaskTo: {
|
|
310
|
-
group: "流程表单功能",
|
|
311
|
-
label: "退回",
|
|
312
|
-
functions: [
|
|
313
|
-
{
|
|
314
|
-
funcType: "AUTHENTICATED",
|
|
315
|
-
//公用
|
|
316
|
-
path: "/workflow-commons/return-to-previous-tasks$POST"
|
|
317
|
-
}
|
|
318
|
-
]
|
|
319
|
-
},
|
|
320
|
-
endInstance: {
|
|
321
|
-
group: "流程表单功能",
|
|
322
|
-
label: "强制结束",
|
|
323
|
-
functions: [
|
|
324
|
-
{
|
|
325
|
-
funcType: "AUTHENTICATED",
|
|
326
|
-
//公用
|
|
327
|
-
path: "/workflow-commons/end-instance$POST"
|
|
328
|
-
}
|
|
329
|
-
]
|
|
330
|
-
},
|
|
331
|
-
listData: {
|
|
332
|
-
group: "列表功能",
|
|
333
|
-
label: "列表数据",
|
|
334
|
-
functions: [
|
|
335
|
-
{
|
|
336
|
-
funcType: "AUTHENTICATED",
|
|
337
|
-
//公用
|
|
338
|
-
path: "/commons/list$POST"
|
|
339
|
-
}
|
|
340
|
-
]
|
|
341
|
-
},
|
|
342
|
-
listSubData: {
|
|
343
|
-
group: "列表功能",
|
|
344
|
-
label: "列表子级",
|
|
345
|
-
functions: [
|
|
346
|
-
{
|
|
347
|
-
funcType: "AUTHENTICATED",
|
|
348
|
-
//公用
|
|
349
|
-
path: "/commons/list-subs$POST"
|
|
350
|
-
}
|
|
351
|
-
]
|
|
352
|
-
},
|
|
353
|
-
saveList: {
|
|
354
|
-
group: "列表功能",
|
|
355
|
-
label: "暂存",
|
|
356
|
-
functions: [
|
|
357
|
-
{
|
|
358
|
-
code: "create",
|
|
359
|
-
label: "暂存",
|
|
360
|
-
path: "/commons$POST"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
funcType: "AUTHENTICATED",
|
|
364
|
-
//公用
|
|
365
|
-
code: "update",
|
|
366
|
-
label: "修改",
|
|
367
|
-
path: "/commons$POST"
|
|
368
|
-
}
|
|
369
|
-
]
|
|
370
|
-
},
|
|
371
|
-
delete: {
|
|
372
|
-
group: "列表功能",
|
|
373
|
-
label: "删除",
|
|
374
|
-
functions: [
|
|
375
|
-
{
|
|
376
|
-
path: "/commons/{tableName}$DELETE"
|
|
377
|
-
}
|
|
378
|
-
]
|
|
379
|
-
},
|
|
380
|
-
submitList: {
|
|
381
|
-
group: "列表功能",
|
|
382
|
-
label: "提交",
|
|
383
|
-
functions: [
|
|
384
|
-
{
|
|
385
|
-
path: "/commons/batch-submits$POST"
|
|
386
|
-
}
|
|
387
|
-
]
|
|
388
|
-
},
|
|
389
|
-
agreeList: {
|
|
390
|
-
group: "列表功能",
|
|
391
|
-
label: "同意",
|
|
392
|
-
functions: [
|
|
393
|
-
{
|
|
394
|
-
path: "/commons/batch-approves$POST"
|
|
395
|
-
}
|
|
396
|
-
]
|
|
397
|
-
},
|
|
398
|
-
disagreeList: {
|
|
399
|
-
group: "列表功能",
|
|
400
|
-
label: "不同意",
|
|
401
|
-
functions: [
|
|
402
|
-
{
|
|
403
|
-
path: "/commons/batch-refuses$POST"
|
|
404
|
-
}
|
|
405
|
-
]
|
|
406
|
-
},
|
|
407
|
-
import: {
|
|
408
|
-
group: "列表功能",
|
|
409
|
-
label: "导入",
|
|
410
|
-
functions: [
|
|
411
|
-
{
|
|
412
|
-
path: "/commons/import-data$POST"
|
|
413
|
-
}
|
|
414
|
-
]
|
|
415
|
-
},
|
|
416
|
-
export: {
|
|
417
|
-
group: "列表功能",
|
|
418
|
-
label: "导出",
|
|
419
|
-
functions: [
|
|
420
|
-
{
|
|
421
|
-
path: "/commons/export-list-data$POST /commons/export-reports$POST"
|
|
422
|
-
}
|
|
423
|
-
]
|
|
424
|
-
},
|
|
425
|
-
search: {
|
|
426
|
-
group: "列表功能",
|
|
427
|
-
label: "查询",
|
|
428
|
-
functions: []
|
|
429
|
-
},
|
|
430
|
-
downloadTemplate: {
|
|
431
|
-
group: "列表功能",
|
|
432
|
-
label: "下载导入模板",
|
|
433
|
-
functions: [
|
|
434
|
-
{
|
|
435
|
-
path: "/commons/download-files$GET"
|
|
436
|
-
}
|
|
437
|
-
]
|
|
438
|
-
},
|
|
439
|
-
lineEditCreate: {
|
|
440
|
-
group: "列表行编辑功能",
|
|
441
|
-
label: "新建",
|
|
442
|
-
functions: [
|
|
443
|
-
{
|
|
444
|
-
code: "create",
|
|
445
|
-
label: "暂存",
|
|
446
|
-
path: "/commons$POST"
|
|
447
|
-
}
|
|
448
|
-
]
|
|
449
|
-
},
|
|
450
|
-
lineEditSave: {
|
|
451
|
-
group: "列表行编辑功能",
|
|
452
|
-
label: "保存",
|
|
453
|
-
functions: [
|
|
454
|
-
{
|
|
455
|
-
code: "create",
|
|
456
|
-
label: "保存",
|
|
457
|
-
path: "/commons$POST"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
code: "update",
|
|
461
|
-
label: "修改",
|
|
462
|
-
path: "/commons$POST"
|
|
463
|
-
}
|
|
464
|
-
]
|
|
465
|
-
},
|
|
466
|
-
lineEditDelete: {
|
|
467
|
-
group: "列表行编辑功能",
|
|
468
|
-
label: "删除",
|
|
469
|
-
functions: [
|
|
470
|
-
{
|
|
471
|
-
code: "delete",
|
|
472
|
-
path: "/commons/{tableName}$DELETE"
|
|
473
|
-
}
|
|
474
|
-
]
|
|
475
|
-
},
|
|
476
|
-
lineEditUpdate: {
|
|
477
|
-
group: "列表行编辑功能",
|
|
478
|
-
label: "修改",
|
|
479
|
-
functions: [
|
|
480
|
-
{
|
|
481
|
-
code: "update",
|
|
482
|
-
label: "修改",
|
|
483
|
-
path: "/commons$POST"
|
|
484
|
-
}
|
|
485
|
-
]
|
|
486
|
-
},
|
|
487
|
-
restoreEdit: {
|
|
488
|
-
group: "列表行编辑功能",
|
|
489
|
-
label: "取消编辑",
|
|
490
|
-
functions: []
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
|
-
const functionMap = {};
|
|
494
|
-
function getStandPermissionInfo(eventName) {
|
|
495
|
-
return eventName ? standardFuncUrlMap[eventName] : void 0;
|
|
496
|
-
}
|
|
497
|
-
function getFunctionInfo(simpleCode) {
|
|
498
|
-
if (!simpleCode) {
|
|
499
|
-
return void 0;
|
|
500
|
-
}
|
|
501
|
-
let funcInfo = functionMap[simpleCode];
|
|
502
|
-
if (funcInfo == void 0) {
|
|
503
|
-
for (let eventName in standardFuncUrlMap) {
|
|
504
|
-
const functions = standardFuncUrlMap[eventName].functions;
|
|
505
|
-
if (!functions) {
|
|
506
|
-
continue;
|
|
507
|
-
}
|
|
508
|
-
for (let f of functions) {
|
|
509
|
-
const tempCode = f.code ? f.code : eventName;
|
|
510
|
-
if (simpleCode === tempCode) {
|
|
511
|
-
funcInfo = f;
|
|
512
|
-
break;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
if (funcInfo) {
|
|
516
|
-
break;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
functionMap[simpleCode] = funcInfo ? funcInfo : "";
|
|
520
|
-
}
|
|
521
|
-
return funcInfo ? funcInfo : void 0;
|
|
522
|
-
}
|
|
523
|
-
exports.FuncType = FuncType;
|
|
524
|
-
exports.getFunctionInfo = getFunctionInfo;
|
|
525
|
-
exports.getStandPermissionInfo = getStandPermissionInfo;
|