cloud-web-corejs 1.0.54-dev.744 → 1.0.54-dev.746
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 +192 -192
- package/src/App.vue +73 -71
- package/src/components/baseArea/index.vue +1628 -1628
- package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
- package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -298
- package/src/components/fileLibrary/index.vue +1109 -1110
- package/src/components/fileLibrary/propertiesDialog.vue +190 -190
- package/src/components/fileLibrary/recycleBinDialog.vue +237 -236
- package/src/components/wf/mixins/setCandidateDialog.js +217 -217
- package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
- package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -986
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +408 -0
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -272
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +216 -216
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +928 -928
- package/src/components/xform/form-designer/index.vue +195 -195
- package/src/components/xform/form-designer/indexMixin.js +848 -848
- package/src/components/xform/form-designer/setting-panel/index.vue +313 -314
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -124
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +369 -369
- package/src/components/xform/form-designer/widget-panel/index.vue +389 -389
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +343 -343
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4531 -4531
- package/src/components/xform/form-render/container-item/data-table-mixin.js +4748 -4576
- package/src/components/xform/form-render/container-item/tab-item.vue +125 -125
- package/src/components/xform/form-render/indexMixin.js +5061 -5078
- package/src/components/xform/lang/en-US.js +457 -457
- package/src/components/xform/lang/zh-CN.js +628 -628
- package/src/components/xform/utils/formHttp.js +162 -0
- package/src/components/xform/utils/util.js +1585 -1554
- package/src/index.js +344 -230
- package/src/layout/components/AppMain.vue +122 -122
- package/src/layout/components/extractedCode/viewDialog.vue +207 -207
- package/src/layout/components/langTool.vue +128 -123
- package/src/layout/defaultLayout.vue +164 -158
- package/src/permission.js +185 -135
- package/src/store/config/index.js +667 -669
- package/src/store/modules/micro.js +46 -0
- package/src/store/modules/permission.js +461 -373
- package/src/store/modules/user.js +419 -415
- package/src/utils/auth.js +27 -1
- package/src/utils/index.js +579 -6
- package/src/utils/keepAlive.js +4 -0
- package/src/utils/menuAdapter.js +183 -0
- package/src/utils/request.js +417 -28
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +483 -491
- package/src/views/bd/setting/form_script/form_list.vue +174 -174
- package/src/views/bd/setting/form_script/mixins/form_list.js +330 -330
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -171
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -254
- package/src/views/user/menuFallback/index.vue +123 -0
- package/src/views/user/wf/wfReport/index.vue +625 -619
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
// import {initWf} from '../../../components/wf/wfUtil'
|
|
2
|
+
// import {getReportGlobalMap} from "../../../components/xform/utils/util";
|
|
3
|
+
import {decrypt} from "@base/utils/aes";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
let modules = {};
|
|
7
|
+
modules = {
|
|
8
|
+
methods: {
|
|
9
|
+
/*formScriptHttp(opts){
|
|
10
|
+
return this.formHttp({
|
|
11
|
+
...opts
|
|
12
|
+
});
|
|
13
|
+
},*/
|
|
14
|
+
handleDecryptData(data) {
|
|
15
|
+
if (data) {
|
|
16
|
+
if (Array.isArray(data)) {
|
|
17
|
+
data.forEach(item => {
|
|
18
|
+
this.handleDecryptData(item)
|
|
19
|
+
})
|
|
20
|
+
} else if (Object.prototype.toString.call(data) === "[object Object]") {
|
|
21
|
+
Object.keys(data).forEach(key => {
|
|
22
|
+
|
|
23
|
+
let value = data[key];
|
|
24
|
+
if (value !== null && value !== undefined) {
|
|
25
|
+
if (Object.prototype.toString.call(data[key]) === "[object String]") {
|
|
26
|
+
let str = "ATEN*-";
|
|
27
|
+
if (value.startsWith(str)) {
|
|
28
|
+
data[key] = decrypt(value.slice(str.length));
|
|
29
|
+
}
|
|
30
|
+
} else {
|
|
31
|
+
this.handleDecryptData(data[key])
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
} else if (Object.prototype.toString.call(data) === "[object String]") {
|
|
36
|
+
let str = "ATEN*-";
|
|
37
|
+
if (data.startsWith(str)) {
|
|
38
|
+
data = decrypt(data.slice(str.length));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return data;
|
|
43
|
+
},
|
|
44
|
+
getHttpTarget() {
|
|
45
|
+
return this.getFormRef ? this.getFormRef() : this;
|
|
46
|
+
},
|
|
47
|
+
formHttp(opts) {
|
|
48
|
+
let data = opts.data;
|
|
49
|
+
let scriptCode = opts.scriptCode ? opts.scriptCode.trim() : null;
|
|
50
|
+
let formCode = opts.formCode ? opts.formCode.trim() : null;
|
|
51
|
+
let isLoading = opts.isLoading ?? true;
|
|
52
|
+
let success = opts.success;
|
|
53
|
+
let fail = opts.fail;
|
|
54
|
+
let error = opts.error;
|
|
55
|
+
|
|
56
|
+
let that = this;
|
|
57
|
+
// let reportTemplate = that.getFormRef ? that.getFormRef().reportTemplate : that.reportTemplate;
|
|
58
|
+
if (scriptCode && !formCode) {
|
|
59
|
+
let arr = scriptCode.split("/").filter(item => item)
|
|
60
|
+
if (arr.length > 1) {
|
|
61
|
+
formCode = arr[0];
|
|
62
|
+
scriptCode = arr[1];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
delete opts.data
|
|
68
|
+
delete opts.scriptCode
|
|
69
|
+
delete opts.formCode
|
|
70
|
+
delete opts.isLoading
|
|
71
|
+
delete opts.success
|
|
72
|
+
delete opts.fail
|
|
73
|
+
delete opts.error
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
let getReqUrl = (callback) => {
|
|
77
|
+
|
|
78
|
+
if (!opts.url) {
|
|
79
|
+
this.getHttpTarget().$http({
|
|
80
|
+
aes: true,
|
|
81
|
+
url: USER_PREFIX + `/formScript/getServiceName`,
|
|
82
|
+
method: `post`,
|
|
83
|
+
data: {
|
|
84
|
+
formCode,
|
|
85
|
+
scriptCode
|
|
86
|
+
},
|
|
87
|
+
isLoading,
|
|
88
|
+
// loadingTarget: this.getLoadingTarget(),
|
|
89
|
+
// modalStrictly: true,
|
|
90
|
+
success: res => {
|
|
91
|
+
let serviceName = res.objx;
|
|
92
|
+
if (serviceName) {
|
|
93
|
+
let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
|
|
94
|
+
callback(url)
|
|
95
|
+
} else {
|
|
96
|
+
this.$baseAlert("服务名不存在")
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
} else {
|
|
101
|
+
callback(opts.url)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
}
|
|
105
|
+
let toDo = () => {
|
|
106
|
+
return new Promise((resolve, reject) => {
|
|
107
|
+
getReqUrl(url => {
|
|
108
|
+
let reqData;
|
|
109
|
+
reqData = data;
|
|
110
|
+
|
|
111
|
+
let reportGlobalMap = {};
|
|
112
|
+
// let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
|
|
113
|
+
// let opts.vue
|
|
114
|
+
return opts.vue.$http({
|
|
115
|
+
// aes: true,
|
|
116
|
+
url: url,
|
|
117
|
+
method: `post`,
|
|
118
|
+
// loadingTarget: this.getLoadingTarget(),
|
|
119
|
+
isLoading,
|
|
120
|
+
...opts,
|
|
121
|
+
data: {
|
|
122
|
+
// scriptCode: scriptCode,
|
|
123
|
+
fixeData: reportGlobalMap,
|
|
124
|
+
...reqData
|
|
125
|
+
},
|
|
126
|
+
success: res => {
|
|
127
|
+
if (res.objx) {
|
|
128
|
+
res.objx = this.handleDecryptData(res.objx);
|
|
129
|
+
}
|
|
130
|
+
if (opts.successMsg) {
|
|
131
|
+
this.$message({
|
|
132
|
+
message: res.content,
|
|
133
|
+
type: 'success',
|
|
134
|
+
duration: 1000
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
success && success(res);
|
|
138
|
+
resolve(res);
|
|
139
|
+
},
|
|
140
|
+
fail: res => {
|
|
141
|
+
fail && fail(res);
|
|
142
|
+
resolve(res);
|
|
143
|
+
},
|
|
144
|
+
error: e => {
|
|
145
|
+
error && error(e);
|
|
146
|
+
reject(e);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
})
|
|
150
|
+
})
|
|
151
|
+
}
|
|
152
|
+
if (opts.isConfirm) {
|
|
153
|
+
this.$baseConfirm(opts.confirmText).then(() => {
|
|
154
|
+
return toDo();
|
|
155
|
+
});
|
|
156
|
+
} else {
|
|
157
|
+
return toDo();
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
export default modules;
|