n20-common-lib 2.2.23 → 2.2.24
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/package.json
CHANGED
|
@@ -121,6 +121,10 @@ export default {
|
|
|
121
121
|
procInstId: {
|
|
122
122
|
type: String,
|
|
123
123
|
default: undefined
|
|
124
|
+
},
|
|
125
|
+
hideLoading: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default: false
|
|
124
128
|
}
|
|
125
129
|
},
|
|
126
130
|
data() {
|
|
@@ -132,9 +136,13 @@ export default {
|
|
|
132
136
|
created() {
|
|
133
137
|
if (this.procInstId) {
|
|
134
138
|
axios
|
|
135
|
-
.get(
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
.get(
|
|
140
|
+
`/bems/activiti/sample/Q003?r=${Math.random()}`,
|
|
141
|
+
{
|
|
142
|
+
procInstId: this.procInstId
|
|
143
|
+
},
|
|
144
|
+
{ loading: !this.hideLoading }
|
|
145
|
+
)
|
|
138
146
|
.then(({ data = [] }) => {
|
|
139
147
|
let approvalData = []
|
|
140
148
|
data.forEach((item) => {
|
|
@@ -20,6 +20,10 @@ export default {
|
|
|
20
20
|
procInstId: {
|
|
21
21
|
type: String,
|
|
22
22
|
default: ''
|
|
23
|
+
},
|
|
24
|
+
hideLoading: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
23
27
|
}
|
|
24
28
|
},
|
|
25
29
|
data() {
|
|
@@ -34,9 +38,13 @@ export default {
|
|
|
34
38
|
methods: {
|
|
35
39
|
getSvg() {
|
|
36
40
|
axios
|
|
37
|
-
.get(
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
.get(
|
|
42
|
+
'/bems/activiti/sample/Q004',
|
|
43
|
+
{
|
|
44
|
+
procInstId: this.procInstId || this.$route.query.processInstanceId
|
|
45
|
+
},
|
|
46
|
+
{ loading: !this.hideLoading }
|
|
47
|
+
)
|
|
40
48
|
.then(({ data }) => {
|
|
41
49
|
if (data) {
|
|
42
50
|
let file = new File([data], '流程图.svg', {
|
|
@@ -53,7 +61,7 @@ export default {
|
|
|
53
61
|
{
|
|
54
62
|
procInstId: this.procInstId || this.$route.query.processInstanceId
|
|
55
63
|
},
|
|
56
|
-
{ noMsg: true }
|
|
64
|
+
{ noMsg: true, loading: !this.hideLoading }
|
|
57
65
|
)
|
|
58
66
|
.then((res) => {
|
|
59
67
|
this.dataPro = res.data
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<el-button plain size="mini" :disabled="false" @click="imgV = true">{{ '流程图查看' | $lc }}</el-button>
|
|
4
4
|
<el-dialog :title="'查看流程' | $lc" :visible.sync="imgV" width="65%" class="p-a-0" append-to-body top="10vh">
|
|
5
|
-
<approvalImg
|
|
5
|
+
<approvalImg
|
|
6
|
+
:proc-inst-id="procInstId"
|
|
7
|
+
:hide-loading="hideLoading"
|
|
8
|
+
class="text-c p-a"
|
|
9
|
+
style="height: 70vh; overflow: auto"
|
|
10
|
+
/>
|
|
6
11
|
</el-dialog>
|
|
7
12
|
</div>
|
|
8
13
|
</template>
|
|
@@ -18,6 +23,10 @@ export default {
|
|
|
18
23
|
procInstId: {
|
|
19
24
|
type: String,
|
|
20
25
|
default: ''
|
|
26
|
+
},
|
|
27
|
+
hideLoading: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
21
30
|
}
|
|
22
31
|
},
|
|
23
32
|
data() {
|