eoss-ui 0.4.82 → 0.4.84
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/lib/button-group.js +98 -49
- package/lib/button.js +98 -49
- package/lib/checkbox-group.js +98 -49
- package/lib/config/api.js +11 -11
- package/lib/data-table-form.js +98 -49
- package/lib/data-table.js +103 -54
- package/lib/date-picker.js +98 -49
- package/lib/dialog.js +103 -54
- package/lib/eoss-ui.common.js +167 -103
- package/lib/flow-group.js +98 -49
- package/lib/flow-list.js +100 -51
- package/lib/flow.js +101 -52
- package/lib/form.js +112 -55
- package/lib/handle-user.js +98 -49
- package/lib/handler.js +98 -49
- package/lib/index.js +1 -1
- package/lib/input-number.js +98 -49
- package/lib/input.js +98 -49
- package/lib/layout.js +38 -31
- package/lib/login.js +98 -49
- package/lib/main.js +98 -49
- package/lib/nav.js +98 -49
- package/lib/notify.js +11 -11
- package/lib/page.js +98 -49
- package/lib/player.js +98 -49
- package/lib/qr-code.js +98 -49
- package/lib/radio-group.js +98 -49
- package/lib/retrial-auth.js +98 -49
- package/lib/select-ganged.js +98 -49
- package/lib/select.js +98 -49
- package/lib/selector-panel.js +98 -49
- package/lib/selector.js +98 -49
- package/lib/sizer.js +98 -49
- package/lib/steps.js +98 -49
- package/lib/switch.js +98 -49
- package/lib/table-form.js +104 -55
- package/lib/tabs.js +98 -49
- package/lib/tips.js +98 -49
- package/lib/tree-group.js +98 -49
- package/lib/tree.js +98 -49
- package/lib/upload.js +98 -49
- package/lib/utils/util.js +87 -38
- package/lib/wujie.js +98 -49
- package/lib/wxlogin.js +98 -49
- package/package.json +2 -1
- package/packages/form/src/main.vue +10 -6
- package/packages/form/src/table.vue +1 -1
- package/packages/layout/src/item.vue +32 -21
- package/src/config/api.js +11 -11
- package/src/index.js +1 -1
- package/src/utils/util.js +57 -8
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
class="es-collapse-title-handler"
|
|
72
72
|
>
|
|
73
73
|
<es-label
|
|
74
|
+
v-if="item.label"
|
|
74
75
|
:contents="item.label"
|
|
75
76
|
:event="item.label.event"
|
|
76
77
|
:events="item.label.events"
|
|
77
|
-
v-if="item.label"
|
|
78
78
|
></es-label>
|
|
79
79
|
<span v-if="item.text || item.type === 'text'">{{
|
|
80
80
|
item.text || item.contents
|
|
@@ -246,7 +246,8 @@
|
|
|
246
246
|
v-if="
|
|
247
247
|
item.showLabel !== false &&
|
|
248
248
|
item.type !== 'table' &&
|
|
249
|
-
showLabel
|
|
249
|
+
showLabel &&
|
|
250
|
+
item.label
|
|
250
251
|
"
|
|
251
252
|
:contents="item.label"
|
|
252
253
|
:event="item.label.event"
|
|
@@ -1183,7 +1184,8 @@
|
|
|
1183
1184
|
v-if="
|
|
1184
1185
|
item.showLabel !== false &&
|
|
1185
1186
|
item.type !== 'table' &&
|
|
1186
|
-
showLabel
|
|
1187
|
+
showLabel &&
|
|
1188
|
+
item.label
|
|
1187
1189
|
"
|
|
1188
1190
|
:contents="item.label"
|
|
1189
1191
|
:event="item.label.event"
|
|
@@ -1983,10 +1985,10 @@
|
|
|
1983
1985
|
</template>
|
|
1984
1986
|
<div v-else :key="index" class="es-collapse-title-handler">
|
|
1985
1987
|
<es-label
|
|
1988
|
+
v-if="item.label"
|
|
1986
1989
|
:contents="item.label"
|
|
1987
1990
|
:event="item.label.event"
|
|
1988
1991
|
:events="item.label.events"
|
|
1989
|
-
v-if="item.label"
|
|
1990
1992
|
></es-label>
|
|
1991
1993
|
<span v-if="item.text || item.type === 'text'">{{
|
|
1992
1994
|
item.text || item.contents
|
|
@@ -2148,7 +2150,8 @@
|
|
|
2148
2150
|
v-if="
|
|
2149
2151
|
item.showLabel !== false &&
|
|
2150
2152
|
item.type !== 'table' &&
|
|
2151
|
-
showLabel
|
|
2153
|
+
showLabel &&
|
|
2154
|
+
item.label
|
|
2152
2155
|
"
|
|
2153
2156
|
:contents="item.label"
|
|
2154
2157
|
:event="item.label.event"
|
|
@@ -3037,7 +3040,8 @@
|
|
|
3037
3040
|
v-if="
|
|
3038
3041
|
item.showLabel !== false &&
|
|
3039
3042
|
item.type !== 'table' &&
|
|
3040
|
-
showLabel
|
|
3043
|
+
showLabel &&
|
|
3044
|
+
item.label
|
|
3041
3045
|
"
|
|
3042
3046
|
:contents="item.label"
|
|
3043
3047
|
:event="item.label.event"
|
|
@@ -110,12 +110,12 @@
|
|
|
110
110
|
:rowspan="item.labelRow"
|
|
111
111
|
>
|
|
112
112
|
<es-label
|
|
113
|
+
v-if="item.type !== 'table' && item.label"
|
|
113
114
|
:contents="item.label"
|
|
114
115
|
:event="item.label.event"
|
|
115
116
|
:events="item.label.events"
|
|
116
117
|
:plain="item.plain"
|
|
117
118
|
:rules="item.rules"
|
|
118
|
-
v-if="item.type !== 'table'"
|
|
119
119
|
></es-label>
|
|
120
120
|
</td>
|
|
121
121
|
<td
|
|
@@ -76,30 +76,41 @@ export default {
|
|
|
76
76
|
console.log(this.position);
|
|
77
77
|
},
|
|
78
78
|
mounted() {
|
|
79
|
-
console.log(
|
|
79
|
+
console.log(interact.feedback);
|
|
80
80
|
this.interaction = interact(this.$refs.move);
|
|
81
81
|
this.interaction.draggable({
|
|
82
|
+
// modifiers: [
|
|
83
|
+
// interact.modifiers.restrictRect({
|
|
84
|
+
// restriction: 'parent',
|
|
85
|
+
// endOnly: false
|
|
86
|
+
// })
|
|
87
|
+
// ],
|
|
88
|
+
// listeners: {
|
|
89
|
+
// start: (event) => {
|
|
90
|
+
// this.dragging = true;
|
|
91
|
+
// console.log(event.type, event.target, 111);
|
|
92
|
+
// },
|
|
93
|
+
// move: (event) => {
|
|
94
|
+
// this.position.x += event.dx;
|
|
95
|
+
// this.position.y += event.dy;
|
|
96
|
+
// event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
|
|
97
|
+
// },
|
|
98
|
+
// end: (event) => {
|
|
99
|
+
// this.dragging = false;
|
|
100
|
+
// console.log(event.type, event.target, 222);
|
|
101
|
+
// }
|
|
102
|
+
// }
|
|
103
|
+
inertia: true,
|
|
104
|
+
//autoScroll: { container: '.container' },
|
|
105
|
+
listeners: [interact.feedback.pointers()],
|
|
82
106
|
modifiers: [
|
|
83
|
-
interact.modifiers.
|
|
84
|
-
restriction: '
|
|
85
|
-
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
this.dragging = true;
|
|
91
|
-
console.log(event.type, event.target, 111);
|
|
92
|
-
},
|
|
93
|
-
move: (event) => {
|
|
94
|
-
this.position.x += event.dx;
|
|
95
|
-
this.position.y += event.dy;
|
|
96
|
-
event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
|
|
97
|
-
},
|
|
98
|
-
end: (event) => {
|
|
99
|
-
this.dragging = false;
|
|
100
|
-
console.log(event.type, event.target, 222);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
107
|
+
interact.modifiers.restrict({
|
|
108
|
+
restriction: 'html',
|
|
109
|
+
elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
|
|
110
|
+
}),
|
|
111
|
+
interact.modifiers.transform(),
|
|
112
|
+
interact.modifiers.spring()
|
|
113
|
+
]
|
|
103
114
|
});
|
|
104
115
|
this.interaction.resizable({
|
|
105
116
|
modifiers: [
|
package/src/config/api.js
CHANGED
|
@@ -82,7 +82,7 @@ export const mainDetail = '/config/configLayoutTheme/detail';
|
|
|
82
82
|
// export const toStartFlow = '/api/mecp/v1/mecpItask/toStartFlow.json';
|
|
83
83
|
export const toStartFlow = '/bpm/bpmBackend/toStartFlow';
|
|
84
84
|
// 暂存数据
|
|
85
|
-
export const tempSave = '/
|
|
85
|
+
export const tempSave = '/oa/task/taskHandle/tempSave.dhtml';
|
|
86
86
|
// 获取常用意见
|
|
87
87
|
// /oa/commonOpinionsManager/getOpinionsList.dhtml /api/v1/mecpIpending/commonOpion.json
|
|
88
88
|
// /api/v1/mecpIpending/commonOpion.json
|
|
@@ -101,18 +101,18 @@ export const deleteCommonOpion = '/oa/commonOpinionsManager/delete.dhtml';
|
|
|
101
101
|
// '/api/mecp/v1/mecpItask/getProcessDefList.json';
|
|
102
102
|
export const getProcessDefList = '/bpm/bpmBackend/toStartFlowIndex';
|
|
103
103
|
// 获取下步办理人 /api/mecp/v1/mecpItask/getNodeInfo.json
|
|
104
|
-
export const getNodeInfo = '/
|
|
104
|
+
export const getNodeInfo = '/oa/task/taskHandle/getNodeInfo.dhtml';
|
|
105
105
|
|
|
106
106
|
// 系统消息
|
|
107
107
|
// 通知方式
|
|
108
108
|
export const findCodeValues = '/bpm/bpmCommon/findCodeValues';
|
|
109
109
|
export const findSysParam = '/bpm/bpmCommon/findSysParam';
|
|
110
110
|
export const findSysCodes =
|
|
111
|
-
'/
|
|
111
|
+
'/oa/task/taskHandle/getDefaultNotificationType.dhtml';
|
|
112
112
|
|
|
113
113
|
// 获取通知消息
|
|
114
114
|
export const getNotificationMsg =
|
|
115
|
-
'/
|
|
115
|
+
'/oa/task/taskHandle/getNotificationMsg.dhtml';
|
|
116
116
|
// 获取审核页面数据
|
|
117
117
|
export const getHandleInfoHtml = '/bpm/bpmBackend/toTaskHandleIndex.dhtml';
|
|
118
118
|
// export const getHandleInfoHtml =
|
|
@@ -120,11 +120,11 @@ export const getHandleInfoHtml = '/bpm/bpmBackend/toTaskHandleIndex.dhtml';
|
|
|
120
120
|
// 获取节点信息(获取节点属性及办理人)
|
|
121
121
|
// export const getNodeInfoHtml = '/api/mecp/v1/mecpItask/getNodeInfoHtml.json';
|
|
122
122
|
// 提交办理
|
|
123
|
-
export const taskHandleHtml = '/
|
|
123
|
+
export const taskHandleHtml = '/oa/task/taskHandle/taskHandle.dhtml';
|
|
124
124
|
// 获取流程图
|
|
125
125
|
export const getView = '/bpm/service/diagram/view.html';
|
|
126
126
|
// 开始流程
|
|
127
|
-
export const register = '/
|
|
127
|
+
export const register = '/oa/task/taskHandle/startFlow.dhtml';
|
|
128
128
|
// 获取流程列表
|
|
129
129
|
export const pendedhistoryList = '/api/v1/mecpIpending/pendedhistoryList.json';
|
|
130
130
|
// 获取审核按钮信息
|
|
@@ -151,7 +151,7 @@ export const endFlowHtml = '/bpm/task/taskHandle/endFlow.dhtml';
|
|
|
151
151
|
// 获取用户信息
|
|
152
152
|
// export const findUserBaseInfos = '/api/v1/mecpSys/findUserBaseInfo.dhtml';
|
|
153
153
|
// 搜索用户信息
|
|
154
|
-
export const handleInfo = '/
|
|
154
|
+
export const handleInfo = '/oa/task/taskHandle/handleInfo.dhtml';
|
|
155
155
|
// 获取当前用户信息
|
|
156
156
|
export const loginUserInfo = '/bpm/bpmCommon/loginUserInfo';
|
|
157
157
|
|
|
@@ -161,9 +161,9 @@ export const wss = window.wss || '/main2/ws';
|
|
|
161
161
|
export const topic = '/user/topic/all';
|
|
162
162
|
// 流程预设
|
|
163
163
|
export const getPresetCustomInfo =
|
|
164
|
-
'/
|
|
164
|
+
'/oa/task/taskHandle/getPresetCustomInfo.dhtml';
|
|
165
165
|
// 办理人预设
|
|
166
|
-
export const getPresetNodeInfo = '/
|
|
166
|
+
export const getPresetNodeInfo = '/oa/task/taskHandle/getPresetNodeInfo.dhtml';
|
|
167
167
|
// 获取转办页面数据
|
|
168
168
|
export const toTaskTransferIndex = '/bpm/bpmBackend/toTaskTransferIndex';
|
|
169
169
|
// 转办提交按钮
|
|
@@ -195,12 +195,12 @@ export const taskTakeAdvice = '/bpm/task/taskHandle/taskTakeAdvice.dhtml';
|
|
|
195
195
|
export const toTaskStartDraft = '/bpm/bpmBackend/totaskStartDraft';
|
|
196
196
|
|
|
197
197
|
// 稿件递送提交接口
|
|
198
|
-
// export const taskStartDraft = '/
|
|
198
|
+
// export const taskStartDraft = '/oa/task/taskHandle/taskStartDraft.dhtml';
|
|
199
199
|
export const taskStartDraft = '/archives/task/taskHandle/taskStartDraft.dhtml';
|
|
200
200
|
// 复核
|
|
201
201
|
export const toTaskReview = '/bpm/bpmBackend/toTaskReview';
|
|
202
202
|
// 复核提交
|
|
203
|
-
export const taskReview = '/
|
|
203
|
+
export const taskReview = '/oa/task/taskHandle/taskReview.dhtml';
|
|
204
204
|
// 联合用印
|
|
205
205
|
export const toTaskUnionSeal = '/bpm/bpmBackend/toTaskUnionSeal';
|
|
206
206
|
// 联合用印提交
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -43,6 +43,8 @@ import { MessageBox, Loading } from 'eoss-element';
|
|
|
43
43
|
* @param {Boolean} [mix = false] - 是否混合传参
|
|
44
44
|
* @param {Boolean} [defaults = false] - 是否传入默认参数userId
|
|
45
45
|
* @param {Object} [loading] - loading加载对象
|
|
46
|
+
* @param {String} [publicKey] - sm2加密公钥
|
|
47
|
+
* @param {Array} [secret] - 要加密的字段属性名称,默认所有
|
|
46
48
|
**/
|
|
47
49
|
// 请求
|
|
48
50
|
const pendingRequest = new Map();
|
|
@@ -66,7 +68,9 @@ const ajax = function ({
|
|
|
66
68
|
format = true,
|
|
67
69
|
mix = false,
|
|
68
70
|
defaults = false,
|
|
69
|
-
loading
|
|
71
|
+
loading,
|
|
72
|
+
publicKey,
|
|
73
|
+
secret
|
|
70
74
|
}) {
|
|
71
75
|
let header = headers || {};
|
|
72
76
|
if (!method) {
|
|
@@ -336,15 +340,60 @@ const ajax = function ({
|
|
|
336
340
|
if (!Object.prototype.hasOwnProperty.call(params, 'userId') && userId && defaults) {
|
|
337
341
|
params.userId = getStorage('userId');
|
|
338
342
|
}
|
|
339
|
-
if (!mix
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
if (!mix) {
|
|
343
|
+
if (!mix) {
|
|
344
|
+
if (method === 'get') {
|
|
345
|
+
data = {};
|
|
346
|
+
} else {
|
|
344
347
|
params = {};
|
|
345
348
|
}
|
|
346
|
-
|
|
347
|
-
|
|
349
|
+
}
|
|
350
|
+
if (publicKey) {
|
|
351
|
+
if (Object.keys(params).length) {
|
|
352
|
+
if (secret && Array.isArray(secret) && secret.length) {
|
|
353
|
+
secret.forEach(item => {
|
|
354
|
+
if (Object.prototype.hasOwnProperty.call(params, item) && params[item] !== '' && params[item] !== null) {
|
|
355
|
+
params[item] = esmEncrypt({
|
|
356
|
+
data: params[item],
|
|
357
|
+
key: publicKey
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
} else {
|
|
362
|
+
for (let i in params) {
|
|
363
|
+
if (params[i] !== '' && params[i] !== null) {
|
|
364
|
+
params[i] = esmEncrypt({
|
|
365
|
+
data: params[i],
|
|
366
|
+
key: publicKey
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
if (Object.keys(data).length) {
|
|
373
|
+
if (secret && Array.isArray(secret) && secret.length) {
|
|
374
|
+
secret.forEach(item => {
|
|
375
|
+
if (Object.prototype.hasOwnProperty.call(data, item) && data[item] !== '' && data[item] !== null) {
|
|
376
|
+
data[item] = esmEncrypt({
|
|
377
|
+
data: data[item],
|
|
378
|
+
key: publicKey
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
} else {
|
|
383
|
+
for (let i in data) {
|
|
384
|
+
if (data[i] !== '' && data[i] !== null) {
|
|
385
|
+
data[i] = esmEncrypt({
|
|
386
|
+
data: data[i],
|
|
387
|
+
key: publicKey
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
if (method === 'post' && format) {
|
|
395
|
+
data = qs.stringify(data);
|
|
396
|
+
if (!header['content-type']) {
|
|
348
397
|
header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
|
|
349
398
|
}
|
|
350
399
|
}
|