cloud-module-bpm 6.13.2 → 6.13.3
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/dist/cloud-module-bpm.common.js +3965 -1347
- package/dist/cloud-module-bpm.common.js.map +1 -1
- package/dist/cloud-module-bpm.css +1 -1
- package/dist/cloud-module-bpm.umd.js +3965 -1347
- package/dist/cloud-module-bpm.umd.js.map +1 -1
- package/dist/cloud-module-bpm.umd.min.js +6 -6
- package/dist/cloud-module-bpm.umd.min.js.map +1 -1
- package/package.json +5 -2
- package/packages/bpm-back-anylink-dialog/Tree.vue +222 -0
- package/packages/bpm-back-anylink-dialog/bpm-back-anylink-dialog.vue +466 -213
- package/packages/bpm-form-tools/bpm-form-tools.vue +33 -10
- package/packages/bpm-jump-dialog/Tree.vue +222 -0
- package/packages/bpm-jump-dialog/bpm-jump-dialog.vue +425 -161
- package/packages/bpm-jump-latest-dialog/Tree.vue +180 -41
- package/packages/bpm-jump-latest-dialog/bpm-jump-latest-dialog.vue +200 -30
- package/packages/bpm-opinion-dialog/bpm-opinion.vue +105 -44
- package/packages/bpm-send-read-dialog/SelectedGrid.vue +1 -1
- package/packages/bpm-send-read-dialog/SourceGrid.vue +90 -102
- package/packages/bpm-send-read-dialog/Tree.vue +145 -24
- package/packages/bpm-send-read-dialog/bpm-next-node.vue +3 -3
- package/packages/bpm-send-read-opinion-dialog/bpm-send-read-opinion.vue +35 -34
- package/packages/bpm-sign-dialog/SelectedGrid.vue +2 -2
- package/packages/bpm-sign-dialog/SourceGrid.vue +96 -113
- package/packages/bpm-sign-dialog/Tree.vue +125 -87
- package/packages/bpm-sign-dialog/bpm-next-node.vue +11 -8
- package/packages/bpm-user-select-dialog/SourceGrid.vue +127 -51
- package/packages/bpm-user-select-dialog/Tree.vue +151 -61
- package/packages/bpm-user-select-dialog/bpm-next-node.vue +17 -5
- package/packages/i18n/langs/zh_CN.js +6 -6
- package/packages/utils/merit-bpm.js +121 -8
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div style="height:100%;width:100%">
|
|
3
|
-
|
|
4
|
-
<el-col
|
|
2
|
+
<div style="height:100%;width:100%">
|
|
3
|
+
<el-row>
|
|
4
|
+
<el-col
|
|
5
|
+
:span="24"
|
|
6
|
+
style="padding: 4px;"
|
|
7
|
+
>
|
|
5
8
|
<el-input
|
|
6
9
|
placeholder="请输入名称或编码"
|
|
7
10
|
v-model="searchName"
|
|
@@ -13,44 +16,61 @@
|
|
|
13
16
|
></el-input>
|
|
14
17
|
</el-col>
|
|
15
18
|
</el-row>
|
|
16
|
-
<el-row style="
|
|
19
|
+
<el-row style="overflow-y: auto;height:91%">
|
|
17
20
|
<div>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
21
|
+
<el-tree
|
|
22
|
+
v-show="isShow"
|
|
23
|
+
:data="treeNode"
|
|
24
|
+
class="flow-tree"
|
|
25
|
+
ref="tree"
|
|
26
|
+
node-key="id"
|
|
27
|
+
:props="treeProps"
|
|
28
|
+
@node-click="handelrNodeClick"
|
|
29
|
+
highlight-current
|
|
30
|
+
:default-expanded-keys="defaultExpandedKeys"
|
|
31
|
+
>
|
|
32
|
+
<span
|
|
33
|
+
class="custom-tree-node cell-hidden"
|
|
34
|
+
slot-scope="{ node, data }"
|
|
35
|
+
>
|
|
36
|
+
<span
|
|
37
|
+
v-if="data.type == 0"
|
|
38
|
+
class="iconfont icon-jigou"
|
|
39
|
+
></span>
|
|
40
|
+
<span
|
|
41
|
+
v-else
|
|
42
|
+
class="iconfont icon-bumenkaoqin"
|
|
43
|
+
></span>
|
|
44
|
+
<span :title="node.label">{{ node.label }}</span>
|
|
45
|
+
</span>
|
|
46
|
+
|
|
47
|
+
</el-tree>
|
|
48
|
+
<el-tree
|
|
49
|
+
v-show="!isShow"
|
|
50
|
+
:data="treeNodeSearch"
|
|
51
|
+
ref="treeSearch"
|
|
52
|
+
node-key="id"
|
|
53
|
+
:props="treeProps"
|
|
54
|
+
@node-click="handelrNodeClick"
|
|
55
|
+
highlight-current
|
|
56
|
+
:default-expanded-keys="defaultExpandedKeys"
|
|
57
|
+
>
|
|
58
|
+
<span
|
|
59
|
+
class="custom-tree-node span-ellipsis"
|
|
60
|
+
slot-scope="{ node, data }"
|
|
61
|
+
>
|
|
62
|
+
<span
|
|
63
|
+
v-if="data.dLevel == 0"
|
|
64
|
+
class="iconfont icon-jigou"
|
|
65
|
+
></span>
|
|
66
|
+
<span
|
|
67
|
+
v-else
|
|
68
|
+
class="iconfont icon-bumenkaoqin"
|
|
69
|
+
></span>
|
|
70
|
+
<span :title="node.label">{{ node.label }}</span>
|
|
71
|
+
</span>
|
|
72
|
+
</el-tree>
|
|
73
|
+
</div>
|
|
54
74
|
</el-row>
|
|
55
75
|
</div>
|
|
56
76
|
</template>
|
|
@@ -63,27 +83,27 @@ export default {
|
|
|
63
83
|
"el-container": Container
|
|
64
84
|
},
|
|
65
85
|
//初始化数据
|
|
66
|
-
data() {
|
|
86
|
+
data () {
|
|
67
87
|
return {
|
|
68
88
|
height: 0,
|
|
69
89
|
orgUrl: "/api/identity/bpm-dept/tree-by-deptcodes", //组织机构树接口
|
|
70
|
-
orgListUrl: "/
|
|
90
|
+
orgListUrl: "/api/identity/bpm-dept/tree-by-search", //组织机构列表筛选接口
|
|
71
91
|
treeNode: [],
|
|
72
92
|
searchName: '',
|
|
73
93
|
currentPage: 1,
|
|
74
94
|
pageSize: 10,
|
|
75
95
|
treeNodeSearch: [],
|
|
76
96
|
defaultExpandedKeys: [],
|
|
77
|
-
|
|
97
|
+
|
|
78
98
|
treeProps: {
|
|
79
99
|
children: "children",
|
|
80
100
|
label: "name",
|
|
81
101
|
id: "id"
|
|
82
102
|
},
|
|
83
|
-
resultData:{
|
|
103
|
+
resultData: {
|
|
84
104
|
nextNodes: [],
|
|
85
105
|
},
|
|
86
|
-
ruleEngine:{},
|
|
106
|
+
ruleEngine: {},
|
|
87
107
|
isShow: true
|
|
88
108
|
};
|
|
89
109
|
},
|
|
@@ -97,55 +117,76 @@ export default {
|
|
|
97
117
|
//方法
|
|
98
118
|
methods: {
|
|
99
119
|
//树节点点击事件
|
|
100
|
-
handelrNodeClick(treeNode) {
|
|
101
|
-
this.EventBus.$emit("refresh-source-grid", treeNode);
|
|
120
|
+
handelrNodeClick (treeNode) {
|
|
121
|
+
this.EventBus.$emit("refresh-source-grid-sign", treeNode);
|
|
102
122
|
},
|
|
103
|
-
restart(){
|
|
104
|
-
|
|
105
|
-
|
|
123
|
+
restart () {
|
|
124
|
+
let _this = this;
|
|
125
|
+
let param = {
|
|
106
126
|
page: this.currentPage,
|
|
107
127
|
rows: this.pageSize,
|
|
108
128
|
};
|
|
109
|
-
|
|
129
|
+
this.treeNodeSearch = [];
|
|
130
|
+
this.isShow = true;
|
|
131
|
+
let deptCodes = [];
|
|
132
|
+
this.opt.forEach(bpmUser => {
|
|
133
|
+
if (bpmUser.deptCode && !deptCodes.includes(bpmUser.deptCode)) {
|
|
134
|
+
deptCodes.push(bpmUser.deptCode);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
axios['bpm-engine']
|
|
138
|
+
.post(this.orgUrl, { deptCodes: deptCodes.join(',') })
|
|
139
|
+
.then(function (res) {
|
|
140
|
+
_this.treeNode = res.data;
|
|
141
|
+
_this.defaultExpandedKeys.push(res.data[0].id);
|
|
142
|
+
})
|
|
143
|
+
.catch(function (err) {
|
|
144
|
+
console.log(err);
|
|
145
|
+
});
|
|
146
|
+
_this.EventBus.$emit('refresh-source-grid', param);
|
|
110
147
|
},
|
|
111
|
-
searchTree() {
|
|
148
|
+
searchTree () {
|
|
112
149
|
let _this = this;
|
|
113
150
|
if (_this.searchName == null || _this.searchName == '') {
|
|
114
151
|
_this.treeNodeSearch = [];
|
|
115
152
|
_this.isShow = true;
|
|
116
|
-
_this.$nextTick(() => {
|
|
117
|
-
_this.$refs.tree.setCurrentKey(_this.treeNode[0].id);
|
|
118
|
-
});
|
|
119
|
-
_this.handelrNodeClick(_this.treeNode[0]);
|
|
120
153
|
return;
|
|
121
154
|
}
|
|
122
|
-
|
|
155
|
+
|
|
156
|
+
let deptCodes = [];
|
|
157
|
+
_this.opt.alldeptcodes.forEach(bpmUser => {
|
|
158
|
+
if (bpmUser.deptCode && !deptCodes.includes(bpmUser.deptCode)) {
|
|
159
|
+
deptCodes.push(bpmUser.deptCode);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
_this.isShow = false;
|
|
163
|
+
axios['bpm-engine']
|
|
123
164
|
.post(this.orgListUrl, {
|
|
124
165
|
search: this.searchName,
|
|
125
|
-
|
|
126
|
-
rows: 1000
|
|
166
|
+
deptCodes: deptCodes.join(',')
|
|
127
167
|
})
|
|
128
|
-
.then(function(res) {
|
|
129
|
-
|
|
130
|
-
|
|
168
|
+
.then(function (res) {
|
|
169
|
+
|
|
170
|
+
if (res.data.length > 0) {
|
|
171
|
+
_this.treeNodeSearch = res.data;
|
|
131
172
|
_this.$nextTick(() => {
|
|
132
|
-
_this.$refs.treeSearch.setCurrentKey(res.data
|
|
173
|
+
_this.$refs.treeSearch.setCurrentKey(res.data[0].id);
|
|
133
174
|
});
|
|
134
|
-
_this.handelrNodeClick(res.data
|
|
175
|
+
_this.handelrNodeClick(res.data[0]);
|
|
135
176
|
} else {
|
|
136
177
|
_this.treeNodeSearch = [];
|
|
137
178
|
}
|
|
138
|
-
_this.isShow = false;
|
|
139
179
|
})
|
|
140
|
-
.catch(function(err) {
|
|
180
|
+
.catch(function (err) {
|
|
141
181
|
console.log(err);
|
|
142
182
|
});
|
|
183
|
+
|
|
143
184
|
}
|
|
144
185
|
},
|
|
145
186
|
//页面渲染之前调用方法 函数
|
|
146
|
-
created() {
|
|
187
|
+
created () {
|
|
147
188
|
},
|
|
148
|
-
mounted() {
|
|
189
|
+
mounted () {
|
|
149
190
|
let _this = this;
|
|
150
191
|
let deptCodes = [];
|
|
151
192
|
this.opt.alldeptcodes.forEach(bpmUser => {
|
|
@@ -155,25 +196,25 @@ export default {
|
|
|
155
196
|
});
|
|
156
197
|
axios['bpm-engine']
|
|
157
198
|
.post(this.orgUrl, { deptCodes: deptCodes.join(',') })
|
|
158
|
-
.then(function(res) {
|
|
199
|
+
.then(function (res) {
|
|
159
200
|
_this.treeNode = res.data;
|
|
201
|
+
_this.EventBus.$emit('refresh-source-grid-sendRead', res.data[0]);
|
|
160
202
|
_this.defaultExpandedKeys.push(res.data[0].id);
|
|
161
203
|
})
|
|
162
|
-
.catch(function(err) {
|
|
204
|
+
.catch(function (err) {
|
|
163
205
|
console.log(err);
|
|
164
206
|
});
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
});
|
|
207
|
+
this.EventBus.$on('reset-checked-node', () => {
|
|
208
|
+
_this.searchName = '';
|
|
209
|
+
if (_this.$refs.tree) {
|
|
210
|
+
_this.$refs.tree.setCurrentKey(_this.$refs.tree.defaultExpandedKeys[0]);
|
|
211
|
+
_this.EventBus.$emit('refresh-source-grid', _this.$refs.tree.getCurrentNode());
|
|
212
|
+
}
|
|
213
|
+
});
|
|
173
214
|
},
|
|
174
215
|
//页面渲染完成调用方法 函数
|
|
175
216
|
watch: {
|
|
176
|
-
'opt.alldeptcodes'(old, newVal) {
|
|
217
|
+
'opt.alldeptcodes' (old, newVal) {
|
|
177
218
|
let _this = this;
|
|
178
219
|
let deptCodes = [];
|
|
179
220
|
this.opt.alldeptcodes.forEach(bpmUser => {
|
|
@@ -183,19 +224,16 @@ export default {
|
|
|
183
224
|
});
|
|
184
225
|
axios['bpm-engine']
|
|
185
226
|
.post(this.orgUrl, { deptCodes: deptCodes.join(',') })
|
|
186
|
-
.then(function(res) {
|
|
227
|
+
.then(function (res) {
|
|
187
228
|
_this.treeNode = res.data;
|
|
229
|
+
_this.EventBus.$emit('refresh-source-grid-sendRead', res.data[0]);
|
|
188
230
|
_this.defaultExpandedKeys.push(res.data[0].id);
|
|
189
|
-
_this.$nextTick(() => {
|
|
190
|
-
_this.$refs.tree.setCurrentKey(res.data[0].id);
|
|
191
|
-
});
|
|
192
|
-
_this.handelrNodeClick(res.data[0]);
|
|
193
231
|
})
|
|
194
|
-
.catch(function(err) {
|
|
232
|
+
.catch(function (err) {
|
|
195
233
|
console.log(err);
|
|
196
234
|
});
|
|
197
|
-
|
|
198
|
-
|
|
235
|
+
this.ruleEngine = this.opt.temRuleEngine;
|
|
236
|
+
}
|
|
199
237
|
}
|
|
200
238
|
|
|
201
239
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container>
|
|
3
|
-
<el-aside style="height:456px;width:65%;margin-right: 0px;margin-left: 0px;">
|
|
3
|
+
<el-aside style="height:456px;width:65%;margin-right: 0px;margin-left: 0px;background: #e8ecf3">
|
|
4
4
|
<el-container>
|
|
5
|
-
<el-aside style="height:456px;width: 40%;max-width: 400px;
|
|
5
|
+
<el-aside style="height:456px;width: 40%;max-width: 400px;margin:0px;border-radius: 0px;">
|
|
6
6
|
<v-tree :opt="nextNode" />
|
|
7
7
|
</el-aside>
|
|
8
8
|
<el-main style="height:456px;width:45%;padding: 0px;margin-left:2px">
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
</el-container>
|
|
12
12
|
</el-aside>
|
|
13
13
|
<el-main style="height:456px;padding:0px;padding-bottom: 0px;width:35%;margin-left:10px">
|
|
14
|
-
<v-select-grid
|
|
14
|
+
<v-select-grid
|
|
15
|
+
:opt="nextNode"
|
|
16
|
+
ref="selectGrid"
|
|
17
|
+
/>
|
|
15
18
|
</el-main>
|
|
16
19
|
</el-container>
|
|
17
20
|
</template>
|
|
@@ -37,19 +40,19 @@ export default {
|
|
|
37
40
|
'el-main': Main,
|
|
38
41
|
'el-container': Container
|
|
39
42
|
},
|
|
40
|
-
data() {
|
|
43
|
+
data () {
|
|
41
44
|
return {
|
|
42
45
|
opt: {
|
|
43
46
|
maxHeight: '483px'
|
|
44
47
|
},
|
|
45
|
-
ruleEngine:'' //提供引擎传值参数
|
|
48
|
+
ruleEngine: '' //提供引擎传值参数
|
|
46
49
|
};
|
|
47
50
|
},
|
|
48
|
-
created() {
|
|
51
|
+
created () {
|
|
49
52
|
this.maxHeight = window.outerHeight > 900 ? '483px' : '361px';
|
|
50
53
|
},
|
|
51
|
-
methods:{
|
|
52
|
-
clearSelectData(){
|
|
54
|
+
methods: {
|
|
55
|
+
clearSelectData () {
|
|
53
56
|
this.$refs.selectGrid.refre();
|
|
54
57
|
}
|
|
55
58
|
}
|