eoss-mobiles 0.2.8 → 0.2.9
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/checkbox.js +2 -2
- package/lib/eoss-mobile.common.js +359 -88
- package/lib/flow.js +128 -80
- package/lib/index.js +1 -1
- package/lib/picker.js +2 -2
- package/lib/pull-refresh.js +305 -0
- package/lib/radio.js +2 -2
- package/lib/selector.js +12 -9
- package/lib/swipe.js +327 -0
- package/lib/table.js +11 -11
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/pull-refresh.css +0 -0
- package/lib/theme-chalk/selector.css +1 -1
- package/lib/theme-chalk/swipe.css +0 -0
- package/lib/utils/axios.js +2 -2
- package/package.json +1 -1
- package/packages/flow/src/components/Handle.vue +12 -4
- package/packages/flow/src/components/Message.vue +5 -1
- package/packages/flow/src/components/Opinion.vue +6 -2
- package/packages/flow/src/components/Reject.vue +7 -1
- package/packages/flow/src/components/StartFlow.vue +9 -3
- package/packages/flow/src/components/TaskRead.vue +12 -4
- package/packages/flow/src/components/taskUnionExamine.vue +17 -14
- package/packages/pull-refresh/index.js +5 -0
- package/packages/pull-refresh/src/main.vue +31 -0
- package/packages/selector/src/selector-tree.vue +2 -0
- package/packages/swipe/index.js +5 -0
- package/packages/swipe/src/main.vue +42 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/pull-refresh.css +0 -0
- package/packages/theme-chalk/lib/selector.css +1 -1
- package/packages/theme-chalk/lib/swipe.css +0 -0
- package/packages/theme-chalk/src/flow.scss +1 -0
- package/packages/theme-chalk/src/index.scss +2 -0
- package/packages/theme-chalk/src/pull-refresh.scss +0 -0
- package/packages/theme-chalk/src/selector.scss +6 -0
- package/packages/theme-chalk/src/swipe.scss +0 -0
- package/src/index.js +10 -4
- package/src/utils/axios.js +2 -2
|
@@ -460,6 +460,10 @@ export default {
|
|
|
460
460
|
esign: {
|
|
461
461
|
type: Boolean,
|
|
462
462
|
default: false
|
|
463
|
+
},
|
|
464
|
+
userId: {
|
|
465
|
+
type: String,
|
|
466
|
+
default: ''
|
|
463
467
|
}
|
|
464
468
|
},
|
|
465
469
|
data() {
|
|
@@ -692,7 +696,8 @@ export default {
|
|
|
692
696
|
processDefinitionId,
|
|
693
697
|
pendingId,
|
|
694
698
|
opinion: this.form.opinion,
|
|
695
|
-
taskAction: 'complete'
|
|
699
|
+
taskAction: 'complete',
|
|
700
|
+
userId: this.userId
|
|
696
701
|
};
|
|
697
702
|
let formData = new FormData();
|
|
698
703
|
if (this.form.isImageOpinion == 1) {
|
|
@@ -859,6 +864,7 @@ export default {
|
|
|
859
864
|
_that.form.processDefinitionId = taskExamineInfo.processDefinitionId;
|
|
860
865
|
_that.form.isSubFlow = taskExamineInfo.isSubFlow;
|
|
861
866
|
_that.form.nodeId = taskExamineInfo.nodeId;
|
|
867
|
+
_that.form.userId = _that.userId;
|
|
862
868
|
_that.form.nextNodeId =
|
|
863
869
|
_that.form.nextOperate == 0 || _that.form.nextOperate == 1
|
|
864
870
|
? _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode
|
|
@@ -1126,7 +1132,8 @@ export default {
|
|
|
1126
1132
|
? that.baseUrl + getHandleInfoHtml
|
|
1127
1133
|
: getHandleInfoHtml,
|
|
1128
1134
|
params: {
|
|
1129
|
-
pendingId: that.pendingId
|
|
1135
|
+
pendingId: that.pendingId,
|
|
1136
|
+
userId: that.userId
|
|
1130
1137
|
}
|
|
1131
1138
|
}).then(res => {
|
|
1132
1139
|
if (res.status == 'success') {
|
|
@@ -1317,7 +1324,7 @@ export default {
|
|
|
1317
1324
|
url: this.baseUrl
|
|
1318
1325
|
? this.baseUrl + toStartTaskReadHtml
|
|
1319
1326
|
: toStartTaskReadHtml,
|
|
1320
|
-
params: { pendingId: this.pendingId }
|
|
1327
|
+
params: { pendingId: this.pendingId, userId: this.userId }
|
|
1321
1328
|
})
|
|
1322
1329
|
.then(res => {
|
|
1323
1330
|
const {
|
|
@@ -1353,7 +1360,8 @@ export default {
|
|
|
1353
1360
|
nextNodeId: res,
|
|
1354
1361
|
taskId: this.processObj.taskExamine.taskId,
|
|
1355
1362
|
pendingId: this.pendingId,
|
|
1356
|
-
businessId: this.taskExamineInfo.businessId
|
|
1363
|
+
businessId: this.taskExamineInfo.businessId,
|
|
1364
|
+
userId: this.userId
|
|
1357
1365
|
}
|
|
1358
1366
|
}).then(res => {
|
|
1359
1367
|
this.$toast.clear();
|
|
@@ -135,6 +135,10 @@ export default {
|
|
|
135
135
|
esign: {
|
|
136
136
|
type: Boolean,
|
|
137
137
|
default: false
|
|
138
|
+
},
|
|
139
|
+
userId: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: ''
|
|
138
142
|
}
|
|
139
143
|
},
|
|
140
144
|
// components: {
|
|
@@ -171,7 +175,7 @@ export default {
|
|
|
171
175
|
this.$emit('onInputOpintion', {
|
|
172
176
|
opinion: this.opinion,
|
|
173
177
|
isImageOpinion,
|
|
174
|
-
file:info.file
|
|
178
|
+
file: info.file
|
|
175
179
|
});
|
|
176
180
|
},
|
|
177
181
|
handleChange() {
|
|
@@ -190,7 +194,7 @@ export default {
|
|
|
190
194
|
const _that = this;
|
|
191
195
|
request({
|
|
192
196
|
url: _that.baseUrl ? _that.baseUrl + commonOpion : commonOpion,
|
|
193
|
-
params: {}
|
|
197
|
+
params: { userId: this.userId }
|
|
194
198
|
}).then(res => {
|
|
195
199
|
if (res.status == 'success') {
|
|
196
200
|
this.opinionList = res.data.list;
|
|
@@ -57,6 +57,10 @@ export default {
|
|
|
57
57
|
esign: {
|
|
58
58
|
type: Boolean,
|
|
59
59
|
default: false
|
|
60
|
+
},
|
|
61
|
+
userId:{
|
|
62
|
+
type:String,
|
|
63
|
+
default:''
|
|
60
64
|
}
|
|
61
65
|
},
|
|
62
66
|
data() {
|
|
@@ -131,6 +135,7 @@ export default {
|
|
|
131
135
|
formData.append('file', this.file);
|
|
132
136
|
}
|
|
133
137
|
formData.append('pendingId', this.pendingId);
|
|
138
|
+
this.form.userId = this.userId
|
|
134
139
|
for (let key in this.form) {
|
|
135
140
|
if (this.form[key] !== '' && this.form[key] !== undefined) {
|
|
136
141
|
formData.append(key, this.form[key]);
|
|
@@ -179,7 +184,8 @@ export default {
|
|
|
179
184
|
params: {
|
|
180
185
|
pendingId: this.pendingId,
|
|
181
186
|
isSinglePage: false,
|
|
182
|
-
opinion: this.form.opinion
|
|
187
|
+
opinion: this.form.opinion,
|
|
188
|
+
userId: this.userId
|
|
183
189
|
}
|
|
184
190
|
}).then(res => {
|
|
185
191
|
if (res.status == 'success') {
|
|
@@ -138,6 +138,10 @@ export default {
|
|
|
138
138
|
esign: {
|
|
139
139
|
type: Boolean,
|
|
140
140
|
default: false
|
|
141
|
+
},
|
|
142
|
+
userId:{
|
|
143
|
+
type:String,
|
|
144
|
+
default:''
|
|
141
145
|
}
|
|
142
146
|
},
|
|
143
147
|
data() {
|
|
@@ -278,7 +282,8 @@ export default {
|
|
|
278
282
|
userId: sessionStorage.getItem('userId'),
|
|
279
283
|
notificationMsg: this.form.notificationMsg,
|
|
280
284
|
loginType: 2, //登录方式
|
|
281
|
-
isImageOpinion:this.form.isImageOpinion
|
|
285
|
+
isImageOpinion:this.form.isImageOpinion,
|
|
286
|
+
userId: this.userId
|
|
282
287
|
};
|
|
283
288
|
if (this.beforeSubmit) {
|
|
284
289
|
this.beforeSubmit(info);
|
|
@@ -405,7 +410,7 @@ export default {
|
|
|
405
410
|
return new Promise(function(resolve, reiect) {
|
|
406
411
|
request({
|
|
407
412
|
url: that.apiBaseUrl ? that.apiBaseUrl + toStartFlow : toStartFlow,
|
|
408
|
-
params: res
|
|
413
|
+
params: {...res,userId:this.userId}
|
|
409
414
|
}).then(res => {
|
|
410
415
|
if (res.rCode == 0) {
|
|
411
416
|
res.results.nodeExtr.submitTipsMsg &&
|
|
@@ -467,7 +472,8 @@ export default {
|
|
|
467
472
|
params: {
|
|
468
473
|
processDefinitionId: this.flowObj.processDefinitionId,
|
|
469
474
|
nodeId: res,
|
|
470
|
-
taskId: this.processObj.taskId
|
|
475
|
+
taskId: this.processObj.taskId,
|
|
476
|
+
userId: this.userId
|
|
471
477
|
}
|
|
472
478
|
}).then(res => {
|
|
473
479
|
this.$toast.clear();
|
|
@@ -131,6 +131,10 @@ export default {
|
|
|
131
131
|
paddingTop: {
|
|
132
132
|
type: [String, Number],
|
|
133
133
|
default: 0
|
|
134
|
+
},
|
|
135
|
+
userId:{
|
|
136
|
+
type:String,
|
|
137
|
+
default:''
|
|
134
138
|
}
|
|
135
139
|
},
|
|
136
140
|
computed: {
|
|
@@ -203,7 +207,8 @@ export default {
|
|
|
203
207
|
opinion,
|
|
204
208
|
pendingId,
|
|
205
209
|
isSubFlow: taskExamine.isSubFlow,
|
|
206
|
-
isSinglePage: taskExamine.isSinglePage
|
|
210
|
+
isSinglePage: taskExamine.isSinglePage,
|
|
211
|
+
userId: this.userId
|
|
207
212
|
}
|
|
208
213
|
};
|
|
209
214
|
request(params)
|
|
@@ -267,7 +272,8 @@ export default {
|
|
|
267
272
|
const _that = this;
|
|
268
273
|
let params = {
|
|
269
274
|
pendingId: this.pendingId,
|
|
270
|
-
taskAction: _that.newType
|
|
275
|
+
taskAction: _that.newType,
|
|
276
|
+
userId: _that.userId
|
|
271
277
|
};
|
|
272
278
|
if (_that.newType != 'taskReadAndEnd') delete params.taskAction;
|
|
273
279
|
|
|
@@ -321,7 +327,8 @@ export default {
|
|
|
321
327
|
notificationMsg: this.form.notificationMsg,
|
|
322
328
|
isImageOpinion: 0,
|
|
323
329
|
loginType: 2,
|
|
324
|
-
taskAction: this.type
|
|
330
|
+
taskAction: this.type,
|
|
331
|
+
userId: this.userId
|
|
325
332
|
}
|
|
326
333
|
};
|
|
327
334
|
if (this.beforeSubmit) {
|
|
@@ -354,7 +361,7 @@ export default {
|
|
|
354
361
|
url: this.baseUrl
|
|
355
362
|
? this.baseUrl + getHandleInfoHtml
|
|
356
363
|
: getHandleInfoHtml,
|
|
357
|
-
params: { pendingId: this.pendingId }
|
|
364
|
+
params: { pendingId: this.pendingId,userId: this.userId }
|
|
358
365
|
}).then(res => {
|
|
359
366
|
let {
|
|
360
367
|
status,
|
|
@@ -417,6 +424,7 @@ export default {
|
|
|
417
424
|
currentOrgProcessKey: processDefinitionId,
|
|
418
425
|
noticeType: this.form.notificationMsgType,
|
|
419
426
|
taskAction: 'create',
|
|
427
|
+
userId: this.userId,
|
|
420
428
|
// notificationMsg: this.form.notificationMsg,
|
|
421
429
|
nextReadUserId: ids
|
|
422
430
|
}
|
|
@@ -111,6 +111,7 @@ export default {
|
|
|
111
111
|
inevitableNode: { type: String, default: '' },
|
|
112
112
|
appId: { type: String, default: '' },
|
|
113
113
|
defaultOpinion: { type: String, default: '' },
|
|
114
|
+
userId:{type:String,default:''},
|
|
114
115
|
// disabled: { type: Boolean, default: false },
|
|
115
116
|
// multiple: { type: Boolean, default: true },
|
|
116
117
|
baseUrl: { type: String, default: '' },
|
|
@@ -202,7 +203,8 @@ export default {
|
|
|
202
203
|
url: isCanStartSubFlow,
|
|
203
204
|
params: {
|
|
204
205
|
appId: this.appId,
|
|
205
|
-
inevitableNode: this.inevitableNode
|
|
206
|
+
inevitableNode: this.inevitableNode,
|
|
207
|
+
userId: this.userId
|
|
206
208
|
},
|
|
207
209
|
type: 'post',
|
|
208
210
|
headers: { Accept: 'application/json,text/plain' }
|
|
@@ -221,7 +223,8 @@ export default {
|
|
|
221
223
|
//获取通知信息
|
|
222
224
|
getMessage() {
|
|
223
225
|
let params = {
|
|
224
|
-
pendingId: this.pendingId
|
|
226
|
+
pendingId: this.pendingId,
|
|
227
|
+
userId: this.userId
|
|
225
228
|
};
|
|
226
229
|
request({ url: getNotificationMsg, params, methods: 'post' })
|
|
227
230
|
.then(res => {
|
|
@@ -319,7 +322,7 @@ export default {
|
|
|
319
322
|
: this.type == 'twoOfficesDispatch'
|
|
320
323
|
? toTwoOfficesDispatch
|
|
321
324
|
: toTaskUnionExamine,
|
|
322
|
-
params: { pendingId: this.pendingId },
|
|
325
|
+
params: { pendingId: this.pendingId,userId: this.userId },
|
|
323
326
|
headers: { Accept: 'application/json,text/plain' }
|
|
324
327
|
};
|
|
325
328
|
this.$toast.loading({
|
|
@@ -431,18 +434,17 @@ export default {
|
|
|
431
434
|
}
|
|
432
435
|
if (
|
|
433
436
|
(type == 'takeAdvice' &&
|
|
434
|
-
(nextCurrentOrgObj ==
|
|
435
|
-
|
|
436
|
-
((isHideOtherOrg == 0 && nextOtherOrgObj == '') ||
|
|
437
|
-
nextOtherOrgObj == null)
|
|
437
|
+
(!nextCurrentOrgObj && isHideCurrentOrg == 0)) &&
|
|
438
|
+
(isHideOtherOrg == 0 && !nextOtherOrgObj)
|
|
438
439
|
) {
|
|
439
440
|
return this.$toast('请选择处理对象!');
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
)
|
|
444
|
-
|
|
445
|
-
|
|
441
|
+
}
|
|
442
|
+
// else if (
|
|
443
|
+
// isHideCurrentOrg == 0 &&
|
|
444
|
+
// (nextOtherOrgObj == '' || nextOtherOrgObj == null)
|
|
445
|
+
// ) {
|
|
446
|
+
// return this.$toast('请选择处理对象!');
|
|
447
|
+
// }
|
|
446
448
|
let info = {
|
|
447
449
|
opinion,
|
|
448
450
|
pendingId,
|
|
@@ -456,7 +458,8 @@ export default {
|
|
|
456
458
|
notificationType: noticeType.join(','),
|
|
457
459
|
choiceDeptId,
|
|
458
460
|
isSubFlow,
|
|
459
|
-
choiceOrgId
|
|
461
|
+
choiceOrgId,
|
|
462
|
+
userId: this.userId
|
|
460
463
|
}
|
|
461
464
|
let formData = new FormData();
|
|
462
465
|
if (isImageOpinion == 1) {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<van-pull-refresh v-model="isLoading" v-bind="$attrs" v-on="$listeners">
|
|
3
|
+
<template v-for="(index, name) in $slots" :slot="name">
|
|
4
|
+
<slot :name="name" />
|
|
5
|
+
</template>
|
|
6
|
+
</van-pull-refresh>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
export default {
|
|
11
|
+
name: 'EmPullRefresh',
|
|
12
|
+
props: {
|
|
13
|
+
value: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
computed: {
|
|
19
|
+
isLoading: {
|
|
20
|
+
set() {
|
|
21
|
+
return this.value;
|
|
22
|
+
},
|
|
23
|
+
get(val) {
|
|
24
|
+
return val;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<style></style>
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
<em-tabs
|
|
23
23
|
v-show="newTabs.length > 1 && !showTree"
|
|
24
24
|
@click="handleClick"
|
|
25
|
+
class="em-flow-tabs"
|
|
25
26
|
type="card"
|
|
26
27
|
style="margin:10px 0px"
|
|
27
28
|
>
|
|
@@ -679,6 +680,7 @@ export default {
|
|
|
679
680
|
this.$emit('update:selectList', this.list);
|
|
680
681
|
}
|
|
681
682
|
this.personnel = res.results;
|
|
683
|
+
console.log(this.personnel,'this.personnel')
|
|
682
684
|
let _this = this;
|
|
683
685
|
this.list.filter(r => {
|
|
684
686
|
_this.personnel.find(i => {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<van-swipe ref="swipe" v-bind="$attrs" v-on="$listeners">
|
|
3
|
+
<van-swipe-item v-for="(item, index) in contents" :key="index">
|
|
4
|
+
<div @click="handleClick(item,index)" v-if="item.render" v-html="item.render(item)"></div>
|
|
5
|
+
<img v-else @click="handleClick(item,index)" :src="item.url" style="width: 100%; height: 100%;" />
|
|
6
|
+
</van-swipe-item>
|
|
7
|
+
<template v-for="(index, name) in $slots" :slot="name">
|
|
8
|
+
<slot :name="name" />
|
|
9
|
+
</template>
|
|
10
|
+
</van-swipe>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
name: 'EmSwipe',
|
|
16
|
+
props: {
|
|
17
|
+
contents: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: () => []
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
methods:{
|
|
23
|
+
resize() {
|
|
24
|
+
this.$refs.swipe.resize()
|
|
25
|
+
},
|
|
26
|
+
prev() {
|
|
27
|
+
this.$refs.swipe.prev()
|
|
28
|
+
},
|
|
29
|
+
next() {
|
|
30
|
+
this.$refs.swipe.next()
|
|
31
|
+
},
|
|
32
|
+
swipeTo(index,options) {
|
|
33
|
+
this.$refs.swipe.swipeTo(index,options)
|
|
34
|
+
},
|
|
35
|
+
handleClick(info,index){
|
|
36
|
+
this.$emit('click',info,index)
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<style></style>
|