cloud-module-bpm 6.3.0 → 6.4.0
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 +144 -154
- 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 +144 -154
- package/dist/cloud-module-bpm.umd.js.map +1 -1
- package/dist/cloud-module-bpm.umd.min.js +5 -5
- package/dist/cloud-module-bpm.umd.min.js.map +1 -1
- package/package.json +3 -3
- package/packages/bpm-jump-dialog/bpm-jump-dialog.vue +20 -13
- package/packages/bpm-jump-latest-dialog/bpm-jump-latest-dialog.vue +5 -5
- package/packages/bpm-send-read-dialog/SelectedGrid.vue +1 -1
- package/packages/bpm-send-read-dialog/SourceGrid.vue +1 -1
- package/packages/bpm-send-read-dialog/bpm-next-node.vue +1 -1
- package/packages/bpm-user-select-dialog/SelectedGrid.vue +1 -1
- package/packages/bpm-user-select-dialog/SourceGrid.vue +1 -1
- package/packages/bpm-user-select-dialog/bpm-next-node.vue +2 -2
- package/packages/bpm-user-select-dialog/bpm-user-select.vue +2 -7
- package/packages/utils/merit-bpm.js +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloud-module-bpm",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": " bpm base lib",
|
|
5
5
|
"main": "dist/cloud-module-bpm.umd.min.js",
|
|
6
6
|
"author": "wujx",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"axios": "0.19.0",
|
|
17
17
|
"babel-loader": "^8.0.6",
|
|
18
18
|
"babel-polyfill": "^6.26.0",
|
|
19
|
-
"cloud-module-base": "6.
|
|
19
|
+
"cloud-module-base": "6.4.0",
|
|
20
20
|
"core-js": "^3.4.4",
|
|
21
21
|
"css-loader": "^3.4.1",
|
|
22
22
|
"element-ui": "^2.13.2",
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
"> 1%",
|
|
64
64
|
"last 2 versions"
|
|
65
65
|
]
|
|
66
|
-
}
|
|
66
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<el-dialog
|
|
4
4
|
:title="opt.title"
|
|
5
5
|
:visible.sync="dialogVisible"
|
|
6
|
-
width="
|
|
6
|
+
width="700px"
|
|
7
7
|
top="8vh"
|
|
8
8
|
@open="openDialog"
|
|
9
9
|
:before-close="handleClose"
|
|
@@ -14,22 +14,30 @@
|
|
|
14
14
|
<el-form>
|
|
15
15
|
<div style="padding: 10px 0px 30px 0px">
|
|
16
16
|
<el-row>
|
|
17
|
-
<el-col :span="8" style="
|
|
17
|
+
<el-col :span="8" style="text-align: left">
|
|
18
18
|
{{ $t('bpm.jump.choice_activity') }}
|
|
19
19
|
</el-col>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<span style="padding-right:5px;line-height:2.5;">
|
|
20
|
+
<el-col :span="16">
|
|
21
|
+
<span style="padding-right:5px;line-height:2.5;">
|
|
23
22
|
{{ $t('bpm.jump.activity_name') }}
|
|
24
23
|
</span>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
<el-select style="width:200px" @change="handleChange" v-model="value" :placeholder="$t('bpm.jump.please_select')">
|
|
25
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
26
|
+
</el-select>
|
|
27
|
+
</el-col>
|
|
28
28
|
</el-row>
|
|
29
|
+
<!--<el-row type="flex" justify="center">-->
|
|
30
|
+
<!--<span style="padding-right:5px;line-height:2.5;">-->
|
|
31
|
+
<!--{{ $t('bpm.jump.activity_name') }}-->
|
|
32
|
+
<!--</span>-->
|
|
33
|
+
<!--<el-select style="width:200px" @change="handleChange" v-model="value" :placeholder="$t('bpm.jump.please_select')">-->
|
|
34
|
+
<!--<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>-->
|
|
35
|
+
<!--</el-select>-->
|
|
36
|
+
<!--</el-row>-->
|
|
29
37
|
</div>
|
|
30
38
|
<div>
|
|
31
|
-
<el-row>
|
|
32
|
-
<el-col :span="8"
|
|
39
|
+
<el-row style="text-align: left">
|
|
40
|
+
<el-col :span="8">{{ $t('bpm.jump.for_personnel') }}</el-col>
|
|
33
41
|
</el-row>
|
|
34
42
|
<el-table
|
|
35
43
|
:data="initialTableData"
|
|
@@ -53,8 +61,8 @@
|
|
|
53
61
|
</el-table>
|
|
54
62
|
</div>
|
|
55
63
|
<div style="padding: 20px 0px 0px 0px">
|
|
56
|
-
<el-row>
|
|
57
|
-
<el-col :span="8"
|
|
64
|
+
<el-row style="text-align: left">
|
|
65
|
+
<el-col :span="8">{{ $t('bpm.jump.selected_personnel_list') }}</el-col>
|
|
58
66
|
</el-row>
|
|
59
67
|
<el-table :data="selectTableData" tooltip-effect="dark" stripe height="150" @row-click="handleRowClick">
|
|
60
68
|
<el-table-column width="55"></el-table-column>
|
|
@@ -70,7 +78,6 @@
|
|
|
70
78
|
</el-table>
|
|
71
79
|
</div>
|
|
72
80
|
</el-form>
|
|
73
|
-
|
|
74
81
|
<span slot="footer" class="dialog-footer">
|
|
75
82
|
<el-button @click="handleClose">{{ $t('base.button.cancel') }}</el-button>
|
|
76
83
|
<el-button type="primary" @click="handleSave">{{ $t('base.button.ok') }}</el-button>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
class="jumpDialog"
|
|
13
13
|
>
|
|
14
14
|
<el-container>
|
|
15
|
-
<el-aside style="height:456px;width:65%;margin-right: 0px;margin-left: 0px;">
|
|
15
|
+
<el-aside style="height:456px;width:65%;margin-right: 0px;margin-left: 0px;background: #e8ecf3">
|
|
16
16
|
<el-container>
|
|
17
17
|
<el-aside style="height:456px;width: 35%;max-width: 400px;padding-top:5px;margin:0px;border-radius: 0px;">
|
|
18
18
|
<v-tree />
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<el-main style="height:456px; width: 45%; padding: 0px; margin-left: 2px;">
|
|
22
22
|
<div class="selected-grid">
|
|
23
23
|
<el-row>
|
|
24
|
-
<el-col style="
|
|
24
|
+
<el-col style="text-align: left;padding: 7px 7px 0 7px">
|
|
25
25
|
{{ $t('bpm.jump.choice_activity') }}
|
|
26
26
|
</el-col>
|
|
27
27
|
</el-row>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</el-col>
|
|
35
35
|
</el-row>
|
|
36
36
|
<el-row>
|
|
37
|
-
<el-col style="
|
|
37
|
+
<el-col style="text-align: left;padding: 7px 7px 0 7px">{{ $t('bpm.jump.for_personnel') }}</el-col>
|
|
38
38
|
</el-row>
|
|
39
39
|
<el-table
|
|
40
40
|
:data="initialTableData"
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
<el-row style="float:left;padding:7px;">
|
|
101
101
|
{{ $t('bpm.jump.selected_personnel_list') }}
|
|
102
102
|
</el-row>
|
|
103
|
-
<el-table :data="selectTableData" :height="tableHeight +
|
|
103
|
+
<el-table :data="selectTableData" :height="tableHeight + 85" @row-click="handleRowClick">
|
|
104
104
|
<el-table-column prop="name" :label="$t('bpm.jump.name')">
|
|
105
105
|
<template slot-scope="scope">
|
|
106
106
|
<div :title="scope.row.name" class="cell-hidden">
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
172
172
|
pageSize: 10,
|
|
173
173
|
pagerCount: 5,
|
|
174
174
|
total: 10,
|
|
175
|
-
tableHeight:
|
|
175
|
+
tableHeight: 300,
|
|
176
176
|
maxHeight: '483px',
|
|
177
177
|
//默认参数
|
|
178
178
|
opt: {
|
|
@@ -1,6 +1,6 @@
|
|
|
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
5
|
<el-aside style="height:456px;width: 40%;max-width: 400px;padding-top:5px;margin:0px;border-radius: 0px;">
|
|
6
6
|
<v-tree :opt="nextNode" />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-aside style="height:456px;width:65%;margin-right: 0px;margin-left: 0px;">
|
|
2
|
+
<el-container style="background: #e8ecf3">
|
|
3
|
+
<el-aside style="height:456px;width:65%;margin-right: 0px;margin-left: 0px;background-color: #e8ecf3">
|
|
4
4
|
<el-container>
|
|
5
5
|
<el-aside style="height:456px;width: 40%;max-width: 400px;padding-top:5px;margin:0px;border-radius: 0px;">
|
|
6
6
|
<v-tree :opt="nextNode" />
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:close-on-click-modal="false"
|
|
12
12
|
append-to-body
|
|
13
13
|
>
|
|
14
|
-
<el-tabs v-model="activeNodeName">
|
|
14
|
+
<el-tabs v-model="activeNodeName" style="padding: 0 20px 20px 20px!important">
|
|
15
15
|
<el-tab-pane v-for="nextNode in nextNodes" :label="nextNode.taskName" :name="nextNode.taskDeKey" :key="nextNode.taskDeKey">
|
|
16
16
|
<v-bpm-next-node :nextNode="nextNode"></v-bpm-next-node>
|
|
17
17
|
</el-tab-pane>
|
|
@@ -100,9 +100,4 @@ export default {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
|
-
</script>
|
|
104
|
-
<style>
|
|
105
|
-
/* .el-dialog__body {
|
|
106
|
-
padding: 0px 20px 30px 20px ;
|
|
107
|
-
} */
|
|
108
|
-
</style>
|
|
103
|
+
</script>
|
|
@@ -100,7 +100,6 @@ MeritBPM.open = function(that, params, callback) {
|
|
|
100
100
|
* callback : function(res){ 执行流程相关操作 }
|
|
101
101
|
*/
|
|
102
102
|
MeritBPM.runRuleEngine = function(that, bpmBtn, callback) {
|
|
103
|
-
console.log("runzhang"+that)
|
|
104
103
|
let bpmVars = that.getBpmVar(bpmBtn);
|
|
105
104
|
if (typeof bpmBtn == 'object') {
|
|
106
105
|
bpmVars.bpmOperName = bpmBtn.name || ''; //【流程内置变量名】
|
|
@@ -129,9 +128,9 @@ MeritBPM.runRuleEngine = function(that, bpmBtn, callback) {
|
|
|
129
128
|
.catch(function(err) {
|
|
130
129
|
that.$message.error(that.$t('base.operation.error') + err);
|
|
131
130
|
});
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
if (window.opener && window.opener.refreshBpmGrid) {
|
|
132
|
+
window.opener.refreshBpmGrid();
|
|
133
|
+
}
|
|
135
134
|
};
|
|
136
135
|
|
|
137
136
|
/**
|
|
@@ -158,6 +157,7 @@ MeritBPM.doSend = function(that, bpmBtn) {
|
|
|
158
157
|
if (
|
|
159
158
|
bpmBtn.isSave == '1' ||
|
|
160
159
|
(that.ruleEngine.procInstId != '' &&
|
|
160
|
+
that.ruleEngine.procInstId != undefined &&
|
|
161
161
|
that.ruleEngine.editStatus.type != '1')
|
|
162
162
|
) {
|
|
163
163
|
bpmBtn.isSave = '0';
|
|
@@ -272,6 +272,9 @@ MeritBPM.startProcess = function(that, bpmBtn, callback) {
|
|
|
272
272
|
bpmVars
|
|
273
273
|
)
|
|
274
274
|
.then(function(res) {
|
|
275
|
+
if (res.data == undefined || res.data == null) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
275
278
|
Object.assign(that.ruleEngine, res.data);
|
|
276
279
|
MeritBPM.runRuleEngine(that, bpmBtn, callback);
|
|
277
280
|
});
|