1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| export default {
| /**
| * 生成巡查子任务对象
| */
| ceateSubTask(){
|
| },
|
| /**
| * 根据多选下拉框的选项值,返回任务执行人对象
| * @returns
| */
| getExecutors(data, executorOptions) {
| const ids = [];
| const uNames = [];
| const rNames = [];
| executorOptions.forEach((e) => {
| const index = data.indexOf(e.value);
| if (index != -1) {
| ids.push(e.data.id);
| uNames.push(e.data.userName);
| rNames.push(e.data.realName);
| }
| });
| return {
| ids: ids.join('#'),
| uName: uNames.join('#'),
| rName: rNames.join('#')
| };
| }
| }
|
|