n20-common-lib 2.5.1 → 2.5.2
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* 审批记录 */
|
|
2
2
|
<template>
|
|
3
|
-
<div>
|
|
3
|
+
<div v-if="buttonMode">
|
|
4
4
|
<expandableWrap :title="'审批记录' | $lc" :show-expand="false" :icon="false">
|
|
5
5
|
<template slot="tips">
|
|
6
6
|
<el-button plain size="mini" :disabled="false" @click="cardV = true">{{ '审批进度查看' | $lc }}</el-button>
|
|
@@ -30,12 +30,24 @@
|
|
|
30
30
|
<approvalImg class="text-c p-a" :proc-inst-id="procInstIdC" style="height: 70vh; overflow: auto" />
|
|
31
31
|
</el-dialog>
|
|
32
32
|
</div>
|
|
33
|
+
<div v-else>
|
|
34
|
+
<expandableWrap title="审批记录">
|
|
35
|
+
<template slot="tips">
|
|
36
|
+
<el-button size="mini" plain @click="imgV = true">流程图查看</el-button>
|
|
37
|
+
</template>
|
|
38
|
+
<approvalCard :procInstId="procInstIdC" />
|
|
39
|
+
<el-dialog v-drag title="查看流程" :visible.sync="imgV" width="65%" class="p-a-0" append-to-body top="10vh">
|
|
40
|
+
<approvalImg class="text-c p-a" style="height: 70vh; overflow: auto" />
|
|
41
|
+
</el-dialog>
|
|
42
|
+
</expandableWrap>
|
|
43
|
+
</div>
|
|
33
44
|
</template>
|
|
34
45
|
|
|
35
46
|
<script>
|
|
36
47
|
import expandableWrap from '../Expandable/main.vue'
|
|
37
48
|
import approvalCard from '../ApprovalCard/index.vue'
|
|
38
49
|
import approvalImg from './approvalImg.vue'
|
|
50
|
+
|
|
39
51
|
export default {
|
|
40
52
|
name: 'ApprovalRecord',
|
|
41
53
|
components: {
|
|
@@ -47,6 +59,10 @@ export default {
|
|
|
47
59
|
procInstId: {
|
|
48
60
|
type: String,
|
|
49
61
|
default: undefined
|
|
62
|
+
},
|
|
63
|
+
buttonMode: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: true
|
|
50
66
|
}
|
|
51
67
|
},
|
|
52
68
|
data() {
|