@lambo-design/workflow-approve 1.0.0-beta.19 → 1.0.0-beta.20

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.
@@ -38,12 +38,13 @@
38
38
  max-width: 130px; /* 限制文本宽度 */
39
39
  }
40
40
 
41
- .portrait-lambo-indicator-card{
41
+ .portrait-lambo-indicator-card {
42
42
  height: 100%;
43
43
  position: relative;
44
44
  overflow-y: auto;
45
45
  margin-bottom: -10px;
46
46
  }
47
+
47
48
  .portrait-lambo-indicator-card::-webkit-scrollbar {
48
49
  width: 5px;
49
50
  height: 5px;
@@ -53,6 +54,7 @@
53
54
  background: linear-gradient(to bottom right, #bbbbbb 0%, #bbbbbb 100%);
54
55
  border-radius: 5px;
55
56
  }
57
+
56
58
  .header-text {
57
59
  display: flex;
58
60
  font-size: 18px;
@@ -90,6 +92,7 @@
90
92
  .draw-enter, .draw-leave-to {
91
93
  height: 0;
92
94
  }
95
+
93
96
  .attach-name-style {
94
97
  margin-bottom: -5px;
95
98
  white-space: nowrap;
@@ -115,21 +118,25 @@
115
118
  top: 50%;
116
119
  transform: translateX(0)
117
120
  }
118
- .icon-class{
121
+
122
+ .icon-class {
119
123
  margin-top: 18px;
120
124
  }
121
- .attach-card{
122
- border:solid;
125
+
126
+ .attach-card {
127
+ border: solid;
123
128
  border-width: thin;
124
129
  border-color: #f1f1f1;
125
130
  width: auto;
126
131
  border-radius: 10px;
127
132
  margin: 10px 0 10px 10px
128
133
  }
129
- .attach-avatar{
134
+
135
+ .attach-avatar {
130
136
  margin-right: 5px;
131
137
  zoom: 150%
132
138
  }
139
+
133
140
  .arrow {
134
141
  display: flex;
135
142
  justify-content: center;
@@ -144,7 +151,7 @@
144
151
  margin: 0 1vh 0 -2vh;
145
152
  }
146
153
 
147
- .cicle{
154
+ .cicle {
148
155
  margin-left: 12px;
149
156
  width: 15px;
150
157
  height: 15px;
@@ -211,21 +218,66 @@
211
218
  zoom: 150%
212
219
  }
213
220
 
214
- .urging{
221
+ .urging {
215
222
  margin-top: -3px;
216
223
  font-size: small;
217
224
  }
218
225
 
219
- .attach{
226
+ .attach {
220
227
  margin-top: -3px;
221
228
  font-size: small;
222
229
  margin-left: 130px
223
230
  }
224
231
 
225
- .portrait-audit-date-style{
232
+ .portrait-audit-date-style {
226
233
  white-space: nowrap;
227
234
  max-width: 100px;
228
235
  margin-top: 5px;
229
236
  font-size: 12px;
230
237
  color: #808695;
231
238
  }
239
+
240
+ .notes-div {
241
+ text-align: right;
242
+ }
243
+
244
+ .notes-done-task {
245
+ display: inline-block;
246
+ width: 70px;
247
+ height: 25px;
248
+ font-size: 12px;
249
+ text-align: center;
250
+ padding-top: 3px;
251
+ border: 1px solid black;
252
+ border-radius: 5px;
253
+ margin-left: 10px;
254
+ margin-right: 10px;
255
+ background-color: rgb(218, 246, 209);
256
+ }
257
+
258
+ .notes-todo-task {
259
+ display: inline-block;
260
+ width: 70px;
261
+ height: 25px;
262
+ font-size: 12px;
263
+ text-align: center;
264
+ padding-top: 3px;
265
+ border: 1px solid black;
266
+ border-radius: 5px;
267
+ margin-left: 10px;
268
+ margin-right: 10px;
269
+ background-color: rgb(258, 227, 180);
270
+ }
271
+
272
+ .notes-none-task {
273
+ display: inline-block;
274
+ width: 70px;
275
+ height: 25px;
276
+ font-size: 12px;
277
+ text-align: center;
278
+ padding-top: 3px;
279
+ border: 1px solid black;
280
+ border-radius: 5px;
281
+ margin-left: 10px;
282
+ margin-right: 10px;
283
+ }
@@ -5,6 +5,11 @@
5
5
  <Panel name="0">
6
6
  流程跟踪图
7
7
  <div slot="content">
8
+ <div class="notes-div">
9
+ <span class="notes-done-task">已办结点</span>
10
+ <span class="notes-todo-task">当前结点</span>
11
+ <span class="notes-none-task">未办结点</span>
12
+ </div>
8
13
  <div class="containers" :style="'height: '+canvasHeight+ 'px'">
9
14
  <div class="canvas" ref="canvas"></div>
10
15
  </div>
@@ -49,12 +54,12 @@
49
54
  <i-col span="12" offset="0">
50
55
  <FormItem label="审批结果:">
51
56
  <Tag color="success" v-if="item.auditResult == '30'">通过</Tag>
52
- <Tag color="error" v-else-if="item.auditResult == '40'">驳回到上一节点</Tag>
57
+ <Tag color="error" v-else-if="item.auditResult == '40'">驳回上一节点</Tag>
53
58
  <Tag color="error" v-else-if="item.auditResult=='50'">驳回到原点</Tag>
54
59
  <Tag color="error" v-else-if="item.auditResult=='51'">流程终止</Tag>
55
60
  <Tag color="error" v-else-if="item.auditResult == '60'">撤回</Tag>
56
- <Tag color="success" v-else-if="item.auditResult == '80'">跳转到指定节点</Tag>
57
- <Tag color="success" v-else-if="item.auditResult == '90'">驳回到指定节点</Tag>
61
+ <Tag color="success" v-else-if="item.auditResult == '80'">跳转指定节点</Tag>
62
+ <Tag color="error" v-else-if="item.auditResult == '90'">驳回指定节点</Tag>
58
63
  <Tag color="success" v-else>待审核</Tag>
59
64
  </FormItem>
60
65
  </i-col>
@@ -268,16 +273,20 @@ export default {
268
273
  canvas.zoom("fit-viewport", "auto");
269
274
  var eventBus = this.bpmnViewer.get("eventBus");
270
275
  var dones = this.tableData;
271
- eventBus.on('element.click', function (evt) {
276
+ // eventBus.on('element.click', function (evt) {
277
+ eventBus.on('element.hover', function (evt) {
272
278
  self.detailDones = [];
273
279
  for (var item of dones) {
274
280
  if (item.taskNode == evt.element.id) {
275
281
  self.detailDones.push(item);
276
- self.showDetail = true;
277
- self.$emit("showTaskNode", item);
278
- break;
282
+ // self.showDetail = true;
283
+ // self.$emit("showTaskNode", item);
284
+ // break;
279
285
  }
280
286
  }
287
+ if(self.detailDones.length > 0) {
288
+ self.showDetail = true;
289
+ }
281
290
  });
282
291
 
283
292
  for (var k in doneLightSet) {