n20-common-lib 3.2.36 → 3.2.38

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
  "name": "n20-common-lib",
3
- "version": "3.2.36",
3
+ "version": "3.2.38",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -11,6 +11,7 @@
11
11
  height: 27px;
12
12
  line-height: 26px;
13
13
  padding: 0 10px;
14
+
14
15
  &.is-active {
15
16
  font-weight: 500;
16
17
  &::after {
@@ -6,17 +6,23 @@
6
6
  background: $--color-white;
7
7
  justify-content: space-between;
8
8
 
9
+ .n20-page-footer-left,
10
+ .n20-page-footer-center,
11
+ .n20-page-footer-right {
12
+ flex: 1 1 auto;
13
+ min-width: 0;
14
+ display: flex;
15
+ }
16
+
9
17
  .n20-page-footer-left {
10
- flex: 1;
18
+ justify-content: flex-start;
11
19
  }
12
20
 
13
21
  .n20-page-footer-center {
22
+ justify-content: center;
14
23
  }
15
24
 
16
25
  .n20-page-footer-right {
17
- flex: 1;
18
- width: 0;
19
- display: flex;
20
26
  justify-content: flex-end;
21
27
  }
22
28
  }
@@ -20,11 +20,11 @@
20
20
  }
21
21
  .el-tabs__item {
22
22
  font-weight: 400;
23
+ color: $--color-text-regular;
23
24
  // height: 27px;
24
25
  font-family: 'PingFang SC';
25
26
  font-size: 14px;
26
27
  font-style: normal;
27
- font-weight: 500;
28
28
  line-height: 26px;
29
29
  padding: 9px 16px;
30
30
 
@@ -35,7 +35,7 @@
35
35
  height: 2px;
36
36
  background-color: $--color-primary;
37
37
  display: block;
38
- margin-top: 4px;
38
+ margin-top: 2px;
39
39
  }
40
40
  }
41
41
  &.is-disabled {
@@ -104,7 +104,9 @@
104
104
  line-height: 22px !important;
105
105
  padding: 8px 12px !important;
106
106
  border-radius: 4px !important;
107
- box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
107
+ box-shadow:
108
+ 0 6px 16px -8px rgba(0, 0, 0, 0.08),
109
+ 0 9px 28px 0 rgba(0, 0, 0, 0.05),
108
110
  0 12px 48px 16px rgba(0, 0, 0, 0.03) !important;
109
111
  border: none !important;
110
112
 
@@ -133,6 +133,7 @@
133
133
  <script>
134
134
  import { $lc } from '../../../utils/i18n/index'
135
135
  import importG from '../../../utils/importGlobal.js'
136
+
136
137
  export default {
137
138
  filters: {
138
139
  zoomFormat(val) {
@@ -218,6 +219,20 @@ export default {
218
219
  }
219
220
  }
220
221
  })
222
+ for (let k in currAssMap) {
223
+ let submitter = currAssMap[k]
224
+ if (
225
+ !currentActivityIdList.includes(k) &&
226
+ !k.includes('@addTaskType') &&
227
+ typeof submitter === 'string' &&
228
+ submitter.trim()
229
+ ) {
230
+ let taskK = this.svgW.querySelector(`[data-element-id="${k}"]`)
231
+ if (taskK) {
232
+ this.addEvent(taskK, { assignee: `${$lc('发起人')}:${submitter.trim()}` }, 'pending')
233
+ }
234
+ }
235
+ }
221
236
  for (let k in taskDefIdMap) {
222
237
  if (!currentActivityIdList.includes(k)) {
223
238
  let taskK = this.svgW.querySelector(`[data-element-id="${k}"]`)
@@ -161,10 +161,12 @@
161
161
  </template>
162
162
 
163
163
  <script>
164
+ import child from './child.vue'
165
+
164
166
  import axios from '../../../utils/axios.js'
165
167
  import { $lc } from '../../../utils/i18n/index'
166
168
  import importG from '../../../utils/importGlobal.js'
167
- import child from './child.vue'
169
+
168
170
  export default {
169
171
  components: {
170
172
  child
@@ -256,6 +258,20 @@ export default {
256
258
  }
257
259
  }
258
260
  })
261
+ for (let k in currAssMap) {
262
+ let submitter = currAssMap[k]
263
+ if (
264
+ !currentActivityIdList.includes(k) &&
265
+ !k.includes('@addTaskType') &&
266
+ typeof submitter === 'string' &&
267
+ submitter.trim()
268
+ ) {
269
+ let taskK = this.svgW.querySelector(`[data-element-id="${k}"]`)
270
+ if (taskK) {
271
+ this.addEvent(taskK, { assignee: `${$lc('发起人')}:${submitter.trim()}` }, 'pending')
272
+ }
273
+ }
274
+ }
259
275
  for (let k in taskDefIdMap) {
260
276
  if (!currentActivityIdList.includes(k)) {
261
277
  let taskK = this.svgW.querySelector(`[data-element-id="${k}"]`)
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <div class="n20-page-footer-v3" :style="showTopDivider ? 'border-top: 1px solid #E5E6EB;' : undefined">
3
- <div :class="`n20-page-footer-left ${leftExtraClass}`">
3
+ <div v-if="$slots.leftExtra || $scopedSlots.leftExtra" :class="`n20-page-footer-left ${leftExtraClass}`">
4
4
  <slot name="leftExtra"></slot>
5
5
  </div>
6
- <div :class="`n20-page-footer-center ${centerClass}`">
6
+ <div v-if="$slots.default || $scopedSlots.default" :class="`n20-page-footer-center ${centerClass}`">
7
7
  <slot></slot>
8
8
  </div>
9
- <div :class="`n20-page-footer-right ${rightExtraClass}`">
9
+ <div v-if="$slots.rightExtra || $scopedSlots.rightExtra" :class="`n20-page-footer-right ${rightExtraClass}`">
10
10
  <slot name="rightExtra"></slot>
11
11
  </div>
12
12
  </div>