apply-clients 3.3.43 → 3.3.47

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,124 +1,130 @@
1
- <template>
2
- <div style="overflow: auto;background-color: #FFFFFF;">
3
- <div class="row" v-for="(i,row) in defnames">
4
- <div :class="row.id === selectdata.actid ? 'item selectIndex' : 'item'" @click="getdefname(row)" >
5
- {{ row.defname }}
6
- <br>
7
- {{i === (defnames.length) - 1 ? row.sendtime : row.finishtime}}
8
- </div>
9
- <div class="arrow glyphicon glyphicon-menu-down" v-if="i !== defnames.length-1" aria-hidden="true"></div>
10
- </div>
11
- </div>
12
- </template>
13
-
14
- <script>
15
- import {HttpResetClass} from 'vue-client'
16
- import {isEmpty} from "../../Util";
17
- export default {
18
- title: "流程节点",
19
- props:['selectdata'],
20
- data(){
21
- return{
22
- defnames: [] // 所有节点
23
- }
24
- },
25
- created () {
26
- this.initial()
27
- },
28
- methods :{
29
- async initial () {
30
- // 获取流程节点信息
31
- let http = new HttpResetClass()
32
- let data = {
33
- processid: this.selectdata.f_process_id
34
- }
35
-
36
- let res = await http.load(
37
- 'POST',
38
- 'rs/sql/getAllNode',
39
- {data: data},
40
- {resolveMsg: null, rejectMsg: '流程节点信息获取失败!!!'})
41
-
42
- this.defnames = res.data
43
- },
44
- //点击获取节点名
45
- getdefname (row) {
46
- // 发起节点都可查看
47
- // if(row.defname === this.$workflow_vue.start_activity){
48
- // row = Object.assign({},this.selectdata,row)
49
- // this.$dispatch('apply', row)
50
- // return
51
- // }
52
- // if(this.check(row.actorexpression)){
53
- // row = Object.assign({},this.selectdata,row)
54
- // this.$dispatch('apply', row)
55
- // return
56
- // }
57
- // this.$showMessage("对不起,您没有查看此节点的权限!")
58
- delete row.id
59
- row = Object.assign({},this.selectdata,row)
60
- this.$dispatch('apply', row)
61
- },
62
- // 检测是否有权限
63
- check (actorexpression){
64
-
65
- let str = null
66
-
67
- if (isEmpty(actorexpression)) {
68
- return true
69
- }
70
-
71
- if (actorexpression.indexOf('D') === 0) {
72
- str = actorexpression.substring(2, actorexpression.length-1)
73
- return this.$login.f.f_department_name.includes(str)
74
- }
75
-
76
- if (actorexpression.indexOf('RS') === 0) {
77
- for (str of actorexpression.substring(3, actorexpression.length-1).split(',')) {
78
- return this.$login.f.f_role_name.includes(str)
79
- }
80
- }
81
-
82
- if (actorexpression.indexOf('R') === 0) {
83
- str = actorexpression.substring(2, actorexpression.length-1)
84
- return this.$login.f.f_role_name.includes(str)
85
- }
86
-
87
- if (actorexpression.indexOf('PI') === 0) {
88
- str = actorexpression.substring(3, actorexpression.length-1)
89
- return this.$login.f.id.includes(str)
90
- }
91
- if (actorexpression.indexOf('P') === 0) {
92
- str = actorexpression.substring(2, actorexpression.length-1)
93
- return this.$login.f.name.includes(str)
94
- }
95
-
96
- return this.$login.f.f_role_name.includes('流程监控')
97
- }
98
- },
99
- watch:{
100
- }
101
- }
102
- </script>
103
-
104
- <style scoped>
105
- .row{
106
- text-align: center;
107
- height: auto;
108
- margin-right: 20px;
109
- }
110
- .item{
111
- border-radius: 2em;
112
- border: 1px solid silver;
113
- line-height: 25px;
114
- }
115
- .arrow{
116
- width: 100%;
117
- color: #5ac0d9;
118
- font-weight: bold;
119
- }
120
- .selectIndex{
121
- background-color: #5ac0d9;
122
- color: #ffffff;
123
- }
124
- </style>
1
+ <template>
2
+ <div style="overflow: auto;background-color: #FFFFFF;">
3
+ <div class="row" v-for="(i,row) in defnames">
4
+ <div :class="row.id === selectdata.actid ? 'item selectIndex' : 'item'" @click="getdefname(row)" >
5
+ {{ row.defname }}
6
+ <span v-if="row.state === '结束'">({{ row.person }})</span>
7
+ <span v-if="row.state !== '结束' && row.actorexpression !== null && row.actorexpression.indexOf('PI') === 0">
8
+ ({{ row.peruser }})
9
+ </span>
10
+ <br>
11
+ {{i === (defnames.length) - 1 ? row.sendtime : row.finishtime}}
12
+ </div>
13
+ <div class="arrow glyphicon glyphicon-menu-down" v-if="i !== defnames.length-1" aria-hidden="true"></div>
14
+ </div>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ import {HttpResetClass} from 'vue-client'
20
+ import {isEmpty} from "../../Util";
21
+ export default {
22
+ title: "流程节点",
23
+ props:['selectdata'],
24
+ data(){
25
+ return{
26
+ defnames: [] // 所有节点
27
+ }
28
+ },
29
+ created () {
30
+ this.initial()
31
+ },
32
+ methods :{
33
+ async initial () {
34
+ // 获取流程节点信息
35
+ let http = new HttpResetClass()
36
+ let data = {
37
+ processid: this.selectdata.f_process_id
38
+ }
39
+
40
+ let res = await http.load(
41
+ 'POST',
42
+ 'rs/sql/getAllNode',
43
+ {data: data},
44
+ {resolveMsg: null, rejectMsg: '流程节点信息获取失败!!!'})
45
+
46
+ this.defnames = res.data
47
+ },
48
+ //点击获取节点名
49
+ getdefname (row) {
50
+ // 发起节点都可查看
51
+ // if(row.defname === this.$workflow_vue.start_activity){
52
+ // row = Object.assign({},this.selectdata,row)
53
+ // this.$dispatch('apply', row)
54
+ // return
55
+ // }
56
+ // if(this.check(row.actorexpression)){
57
+ // row = Object.assign({},this.selectdata,row)
58
+ // this.$dispatch('apply', row)
59
+ // return
60
+ // }
61
+ // this.$showMessage("对不起,您没有查看此节点的权限!")
62
+ delete row.id
63
+ row = Object.assign({},this.selectdata,row)
64
+ this.$dispatch('apply', row)
65
+ },
66
+ // 检测是否有权限
67
+ check (actorexpression){
68
+
69
+ let str = null
70
+
71
+ if (isEmpty(actorexpression)) {
72
+ return true
73
+ }
74
+
75
+ if (actorexpression.indexOf('D') === 0) {
76
+ str = actorexpression.substring(2, actorexpression.length-1)
77
+ return this.$login.f.f_department_name.includes(str)
78
+ }
79
+
80
+ if (actorexpression.indexOf('RS') === 0) {
81
+ for (str of actorexpression.substring(3, actorexpression.length-1).split(',')) {
82
+ return this.$login.f.f_role_name.includes(str)
83
+ }
84
+ }
85
+
86
+ if (actorexpression.indexOf('R') === 0) {
87
+ str = actorexpression.substring(2, actorexpression.length-1)
88
+ return this.$login.f.f_role_name.includes(str)
89
+ }
90
+
91
+ if (actorexpression.indexOf('PI') === 0) {
92
+ str = actorexpression.substring(3, actorexpression.length-1)
93
+ return this.$login.f.id.includes(str)
94
+ }
95
+ if (actorexpression.indexOf('P') === 0) {
96
+ str = actorexpression.substring(2, actorexpression.length-1)
97
+ return this.$login.f.name.includes(str)
98
+ }
99
+
100
+ return this.$login.f.f_role_name.includes('流程监控')
101
+ }
102
+ },
103
+ computed: {
104
+ },
105
+ watch:{
106
+ }
107
+ }
108
+ </script>
109
+
110
+ <style scoped>
111
+ .row{
112
+ text-align: center;
113
+ height: auto;
114
+ margin-right: 20px;
115
+ }
116
+ .item{
117
+ border-radius: 2em;
118
+ border: 1px solid silver;
119
+ line-height: 25px;
120
+ }
121
+ .arrow{
122
+ width: 100%;
123
+ color: #5ac0d9;
124
+ font-weight: bold;
125
+ }
126
+ .selectIndex{
127
+ background-color: #5ac0d9;
128
+ color: #ffffff;
129
+ }
130
+ </style>