n20-common-lib 1.1.98 → 1.2.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.
@@ -1,13 +0,0 @@
1
- <template>
2
-
3
- </template>
4
-
5
- <script>
6
- export default {
7
- name: "NstcApprove"
8
- }
9
- </script>
10
-
11
- <style scoped>
12
-
13
- </style>
@@ -1,134 +0,0 @@
1
- <template>
2
- <div class="nstc-approvel-examination">
3
- <div slot="title">
4
- <div
5
- style="
6
- height: 36px;
7
- display: flex;
8
- justify-content: flex-end;
9
- align-items: center;
10
- position: absolute;
11
- top: 0;
12
- right: 100px;
13
- z-index: 999;
14
- "
15
- >
16
- </div>
17
- </div>
18
- <div>
19
- <div style="margin: auto">
20
- <div v-for="(item, index) in approvalTable" :key="index">
21
- <div style="display: flex; align-items: center;">
22
- <div style="width: 200px; color: #bec8d2">{{ item.endTime }}</div>
23
- <div
24
- style="
25
- width: 19px;
26
- height: 19px;
27
- line-height: 17px;
28
- background: #fff;
29
- border-radius: 10px;
30
- color: #ccc;
31
- text-align: center;
32
- border: 1px solid #ccc;
33
- font-size: 8px;
34
- "
35
- :style="item.endTime ? 'background:#1677FF' : ''"
36
- ></div>
37
- <img
38
- src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAACa0lEQVQ4T5WTW0hTcRzHv7+/O25RMYUk6AIGXQyUeeqEwo7Fwh3p4oNQIvWUD0bPUURUUAlFbz2F0EvRSyuigpTtmAN3ll1Wm7pQEV+6QUlkkbLbOb/Yyphr6vo//n7f3+f/uxIWeQOhuMsU6YvM2A3AAjBggzi/V3VNFAuhYsZ+Y7jJgvWQQN3pdOKeZFslgMwRhnUSgryaW44VxhUBMfmN2JgAXfCq9b78AP1ZrJMt7tJUuXFZkD40up3NjK6p8oZCsc/nK6tYv/ULVjjqtB01n/L9/2SkG68bGeKGpspysbID4egkQ7S1uF3xpUGRiJMTtg/CVra5ubHuc764LxitLpMwmnSYa1sVZW5JUNYZCMWuA9gmZWyHPJ7an1mbHplycuLHY4J44VVdp5ftUVbQ2ztpl5yzt8DYw8x9IAgA+wkIVDrMY4qipEsCZUXByMSaTDJx2GKrhQCLCH1kSz1obmj4WtIe9YeHOxjmKbDYAvB7BlK5QIKdmDYyeEyQuNbsdt0v2qN4PF7+cSZ1myBqhcCZqfKM/3hBCb54vLxyJnmQSVwlxsv8Mv+OXw9He5ipOvkt09baunAihaUYxvjqWcw9IYi3mlp/4nfCAPxDww1k8iNpJdd4ZHlmsfvLtw8OvqlKCBonWAe86s7nOVDAiN0E8E5T6y+VApnX+EPRbgLWaU1y5x9QNATgiqbKvf8DemqM7Muwea6lSXbnQHo4dhlgGXbzqFdRvpcCC0ajFelZ3AEwoqny2RwoGAw6UlJFDxF1gFkqBQSi7FLelVLOLo9nU2LB0Wavu6pqV0mg6elX6fb2dnP+01+5XvET5hOqAQAAAABJRU5ErkJggg=="
39
- style="
40
- vertical-align: bottom;
41
- width: 18px;
42
- height: 18px;
43
- margin-right: 10px;
44
- "
45
- />
46
- <span
47
- style="margin-left: 10px; max-width: 300px; color: #434f5c"
48
- :title="item.more"
49
- >
50
- {{ item.assignee }}
51
- </span>
52
- <span
53
- style="margin-left: 10px; color: #434f5c"
54
- v-if="item.optResult"
55
- >{{ item.optResult }}</span
56
- >
57
- <el-tooltip
58
- v-if="item.suggestion && item.suggestion.length > 40"
59
- effect="dark"
60
- :content="item.suggestion"
61
- placement="top"
62
- >
63
- <span
64
- style="margin-left: 10px; color: #434f5c"
65
- :class="(item.suggestion && item.suggestion.length > 40 ) ? 'hidden': ''"
66
- v-if="item.suggestion"
67
- >审批意见:{{ item.suggestion }}</span
68
- >
69
- </el-tooltip>
70
-
71
-
72
- </div>
73
- <div
74
- v-if="approvalTable.length !== index + 1"
75
- style="
76
- width: 2px;
77
- height: 20px;
78
- background: #ccc;
79
- margin: 2px 9px;
80
- margin-left: 209px;
81
- "
82
- :style="item.endTime ? 'background:#1677FF' : ''"
83
- ></div>
84
- </div>
85
- </div>
86
- </div>
87
- <el-dialog title="查看流程" :visible.sync="dialogVisible" width="1200px">
88
- <div v-html="svgHtml"></div>
89
- </el-dialog>
90
- </div>
91
- </template>
92
-
93
- <script>
94
- import axios from '../../../utils/axios'
95
- export default {
96
- name: "progress",
97
- mounted() {
98
- this.bizFlowId =
99
- this.$route.query.processInstanceId || this.$route.params.processInstanceId || "0cf3ec79c7b048c9add24dd03c95332a";
100
- this.intData(this.bizFlowId);
101
- },
102
- methods: {
103
- intData(bizFlowId) {
104
- axios.get(`/bems/activiti/sample/Q003`,{procInstId:bizFlowId}).then((res) => {
105
- if (res) {
106
- this.approvalTable = res.map((item) => {
107
- item.more = item.assignee;
108
- if (item.assignee && item.assignee.length > 20) {
109
- item.assignee = item.assignee.substring(1, 20) + "...";
110
- }
111
- return item;
112
- });
113
- }
114
- });
115
- axios.get(`/bems/activiti/sample/Q004`,{procInstId:bizFlowId}).then((res) => {
116
- if (res) {
117
- this.svgHtml = res;
118
- }
119
- });
120
- },
121
- },
122
- watch: {
123
- bizFlowId() {
124
- if (this.bizFlowId.length > 0) {
125
- this.intData(this.bizFlowId);
126
- }
127
- },
128
- },
129
- }
130
- </script>
131
-
132
- <style scoped>
133
-
134
- </style>