eoss-mobiles 0.3.37 → 0.3.39

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.
@@ -1,51 +1,60 @@
1
1
  <template>
2
2
  <div class="em-flow">
3
3
  <StartFlow
4
- v-if="type === 'start'"
4
+ v-if="newType === 'start'"
5
5
  v-bind="$attrs"
6
6
  :userId="userId"
7
7
  :beforeSubmit="beforeSubmit"
8
8
  />
9
9
  <Handle
10
- v-else-if="type === 'handle' || type === 'freeStart'"
10
+ v-else-if="newType === 'handle' || newType === 'freeStart'"
11
11
  v-bind="$attrs"
12
- :type="type"
12
+ :type="newType"
13
13
  :userId="userId"
14
14
  :identityIds="userId"
15
15
  :beforeSubmit="beforeSubmit"
16
16
  />
17
17
  <Reject
18
- v-else-if="type === 'reject'"
19
- :type="type"
18
+ v-else-if="newType === 'reject'"
19
+ :type="newType"
20
20
  v-bind="$attrs"
21
21
  :userId="userId"
22
22
  :beforeSubmit="beforeSubmit"
23
23
  />
24
24
  <TaskRead
25
- v-else-if="type === 'taskRead' || type === 'transfer'"
25
+ v-else-if="newType === 'taskRead' || newType === 'transfer'"
26
26
  v-bind="$attrs"
27
27
  :userId="userId"
28
- :type="type"
28
+ :type="newType"
29
29
  :beforeSubmit="beforeSubmit"
30
30
  />
31
31
  <TaskUnionExamineVue
32
- v-else-if="type === 'unionExamine' || type === 'takeAdvice' || type === 'startDraf'"
32
+ v-else-if="
33
+ newType === 'unionExamine' || newType === 'takeAdvice' || newType === 'startDraf'
34
+ "
33
35
  v-bind="$attrs"
34
36
  :userId="userId"
35
- :type="type"
37
+ :type="newType"
36
38
  :beforeSubmit="beforeSubmit"
37
39
  />
38
40
  <Supervise
39
- v-else-if="type === 'supervise'"
41
+ v-else-if="newType === 'supervise'"
40
42
  v-bind="$attrs"
41
43
  :userId="userId"
42
- :type="type"
44
+ :type="newType"
43
45
  />
44
46
  <Reset
45
- v-if="type === 'reset' || type == 'continuation'"
47
+ v-if="newType === 'reset' || newType == 'continuation'"
46
48
  v-bind="$attrs"
47
49
  :userId="userId"
48
- :type="type"
50
+ :type="newType"
51
+ :beforeSubmit="beforeSubmit"
52
+ />
53
+ <Circulate
54
+ v-if="newType === 'circulate'"
55
+ v-bind="$attrs"
56
+ :userId="userId"
57
+ :type="newType"
49
58
  :beforeSubmit="beforeSubmit"
50
59
  />
51
60
  </div>
@@ -53,6 +62,7 @@
53
62
  <script>
54
63
  import StartFlow from './components/StartFlow.vue';
55
64
  import Handle from './components/Handle.vue';
65
+ import Circulate from './components/Circulate.vue';
56
66
  import Reject from './components/Reject.vue';
57
67
  import TaskRead from './components/TaskRead.vue';
58
68
  import TaskUnionExamineVue from './components/taskUnionExamine.vue';
@@ -68,7 +78,8 @@ export default {
68
78
  TaskRead,
69
79
  Supervise,
70
80
  Reset,
71
- TaskUnionExamineVue
81
+ TaskUnionExamineVue,
82
+ Circulate
72
83
  },
73
84
  props: {
74
85
  userId: String, //用户id
@@ -76,16 +87,28 @@ export default {
76
87
  type: {
77
88
  type: String,
78
89
  default: 'handle'
90
+ },
91
+ isCirculate: {
92
+ type: Boolean,
93
+ default: false
79
94
  }
80
95
  },
81
96
  data() {
82
- return {};
97
+ return {
98
+ newType:'handle',
99
+ };
83
100
  },
84
- mounted(){
85
- for(let i=0;i<10;i++){
86
- if(i == 2) return
87
- console.log(i)
101
+ watch: {
102
+ isCirculate: {
103
+ handler(val) {
104
+ this.newType = val ? 'circulate' : this.type;
105
+ },
106
+ deep: true,
107
+ immediate: true
88
108
  }
109
+ },
110
+ mounted() {
111
+ this.newType = this.type;
89
112
  }
90
113
  };
91
114
  </script>
@@ -747,10 +747,15 @@ export default {
747
747
  }else{
748
748
  this.newParam.pid = 'root';
749
749
  }
750
+ this.newParam.pid = 'root';
750
751
  this.newParam.myUserid =
751
752
  this.newParam.myUserid || $.getStorage('userId');
752
753
  } else {
753
- this.newParam = {...this.newTabs[this.selectIndex].param,...this.newParam[this.newTabs[this.selectIndex].name]?this.newParam[this.newTabs[this.selectIndex].name]:{}}
754
+
755
+ this.newParam = {...this.newParam,...this.newTabs[this.selectIndex].param,...this.newParam[this.newTabs[this.selectIndex].name]?this.newParam[this.newTabs[this.selectIndex].name]:{}}
756
+ if(this.param.pid){
757
+ this.newParam.pid = this.param.pid;
758
+ }
754
759
  // this.newTabs[this.selectIndex].param.pid || this.param.pid || 'root';
755
760
  }
756
761
  delete this.newParam.department
package/src/config/api.js CHANGED
@@ -148,3 +148,7 @@ export const officeHandleRemark =
148
148
  '/archives/task/taskHandle/getDefaultNotificationType.dhtml';
149
149
  // 获取分阅信息
150
150
  export const toStartTaskReadNew = '/bpm/bpmBackend/toStartTaskRead';
151
+ export const directStartTaskCircularRead =
152
+ '/bpm/bpmBackend/directStartTaskCircularRead';
153
+ export const endFlowAndStartTaskCircularRead =
154
+ '/bpm/bpmBackend/endFlowAndStartTaskCircularRead';
package/src/index.js CHANGED
@@ -105,7 +105,7 @@ if (typeof window !== 'undefined' && window.Vue) {
105
105
  }
106
106
 
107
107
  export default {
108
- version: '0.3.37',
108
+ version: '0.3.39',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,