n20-common-lib 3.2.53 → 3.2.54

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.53",
3
+ "version": "3.2.54",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -162,39 +162,43 @@
162
162
  </div>
163
163
  <!-- 审批按钮 -->
164
164
  <div v-if="authList.includes('byAddTask') && !addTaskList.length" class="text-c">
165
- <el-button type="primary" @click="showAdvancePop">{{ btnsNames['approval'] }}</el-button>
166
- <el-button type="primary" @click="approvalToV = true">{{ btnsNames['approval'] }}{{ '至' | $lc }}</el-button>
167
- <el-button plain @click="rejectToB">{{ btnsNames['rejectTo'] }}</el-button>
168
- <el-button plain @click="rejectFn">{{ btnsNames['reject'] }}</el-button>
169
- <el-button type="danger" plain @click="discardFn">{{ btnsNames['discard'] }}</el-button>
165
+ <el-button type="primary" @click="showAdvancePop">{{ $lc(btnsNames['approval']) }}</el-button>
166
+ <el-button type="primary" @click="approvalToV = true">{{ $lc(btnsNames['approval']) }}{{ '至' | $lc }}</el-button>
167
+ <el-button plain @click="rejectToB">{{ $lc(btnsNames['rejectTo']) }}</el-button>
168
+ <el-button plain @click="rejectFn">{{ $lc(btnsNames['reject']) }}</el-button>
169
+ <el-button type="danger" plain @click="discardFn">{{ $lc(btnsNames['discard']) }}</el-button>
170
170
  <el-button plain @click="goFrom">{{ '返 回' | $lc }}</el-button>
171
171
  </div>
172
172
 
173
173
  <div v-else-if="!authList.includes('byAddTask')" class="text-c">
174
174
  <!-- 特殊会签按钮 START -->
175
175
  <el-button v-if="authList.includes('pass')" type="primary" @click="checkFlowFn">{{
176
- btnsNames['pass']
176
+ $lc(btnsNames['pass'])
177
177
  }}</el-button>
178
- <el-button v-if="authList.includes('refuse')" plain @click="rejectFn">{{ btnsNames['refuse'] }}</el-button>
179
- <el-button v-if="authList.includes('takeOff')" plain @click="qjFn">{{ btnsNames['takeOff'] }}</el-button>
178
+ <el-button v-if="authList.includes('refuse')" plain @click="rejectFn">{{
179
+ $lc(btnsNames['refuse'])
180
+ }}</el-button>
181
+ <el-button v-if="authList.includes('takeOff')" plain @click="qjFn">{{ $lc(btnsNames['takeOff']) }}</el-button>
180
182
  <!-- END -->
181
183
  <el-button v-if="authList.includes('approval')" type="primary" @click="showAdvancePop">{{
182
- btnsNames['approval']
184
+ $lc(btnsNames['approval'])
183
185
  }}</el-button>
184
186
  <el-button v-if="authList.includes('approval') && nextApproval && nextBtn" type="primary" @click="approvalNext">
185
- {{ btnsNames['approval'] }}{{ '并审批下一条' | $lc }}</el-button
187
+ {{ $lc(btnsNames['approval']) }}{{ '并审批下一条' | $lc }}</el-button
186
188
  >
187
189
  <el-button v-if="showApprovalTo && showApproveTo" type="primary" @click="approvalToV = true"
188
- >{{ btnsNames['approval'] }}{{ '至' | $lc }}</el-button
190
+ >{{ $lc(btnsNames['approval']) }}{{ '至' | $lc }}</el-button
189
191
  >
190
- <el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{ btnsNames['rejectTo'] }}</el-button>
191
- <el-button v-if="authList.includes('reject')" plain @click="rejectFn">{{ btnsNames['reject'] }}</el-button>
192
+ <el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{
193
+ $lc(btnsNames['rejectTo'])
194
+ }}</el-button>
195
+ <el-button v-if="authList.includes('reject')" plain @click="rejectFn">{{ $lc(btnsNames['reject']) }}</el-button>
192
196
  <el-button v-if="authList.includes('rejectPre')" plain @click="rejectPreFn">{{
193
- btnsNames['rejectPre']
197
+ $lc(btnsNames['rejectPre'])
194
198
  }}</el-button>
195
199
 
196
200
  <el-button v-if="authList.includes('discard')" type="danger" plain @click="discardFn">{{
197
- btnsNames['discard']
201
+ $lc(btnsNames['discard'])
198
202
  }}</el-button>
199
203
  <el-button plain @click="goFrom">{{ '返 回' | $lc }}</el-button>
200
204
  </div>
@@ -517,14 +521,14 @@ export default {
517
521
  checkSum: 0,
518
522
  mustUploadWidget: false,
519
523
  btnsNames: {
520
- pass: $lc('通过'),
521
- refuse: $lc('拒绝'),
522
- takeOff: $lc('请假'),
523
- reject: $lc('驳回至申请人'),
524
- rejectPre: $lc('驳回至上一节点'),
525
- approval: $lc('批 准'),
526
- discard: $lc('作 废'),
527
- rejectTo: $lc('驳回至')
524
+ pass: '通过',
525
+ refuse: '拒绝',
526
+ takeOff: '请假',
527
+ reject: '驳回至申请人',
528
+ rejectPre: '驳回至上一节点',
529
+ approval: '批 准',
530
+ discard: '作 废',
531
+ rejectTo: '驳回至'
528
532
  }
529
533
  }
530
534
  },
@@ -711,7 +715,7 @@ export default {
711
715
  // 自定义按钮
712
716
  if (data.customBtnName && data.customBtnName.length > 0) {
713
717
  data.customBtnName.forEach((item) => {
714
- this.btnsNames[item.key] = item.optionName
718
+ this.$set(this.btnsNames, item.key, item.optionName)
715
719
  })
716
720
  }
717
721
  let { taskDefKey, menuAuthority } = data
@@ -140,11 +140,11 @@
140
140
  </div>
141
141
  <!-- 审批按钮 -->
142
142
  <div v-if="authList.includes('byAddTask') && !addTaskList.length" class="text-c">
143
- <el-button type="primary" @click="showAdvancePop">{{ btnsNames['approval'] }}</el-button>
144
- <!-- <el-button type="primary" @click="approvalToV = true">{{ btnsNames['approval'] }}{{ '至' | $lc }}</el-button>
145
- <el-button plain @click="rejectToB">{{ btnsNames['rejectTo'] }}</el-button> -->
146
- <el-button plain @click="rejectFn">{{ btnsNames['reject'] }}</el-button>
147
- <!-- <el-button type="danger" plain @click="discardFn">{{ btnsNames['discard'] }}</el-button>
143
+ <el-button type="primary" @click="showAdvancePop">{{ $lc(btnsNames['approval']) }}</el-button>
144
+ <!-- <el-button type="primary" @click="approvalToV = true">{{ $lc(btnsNames['approval']) }}{{ '至' | $lc }}</el-button>
145
+ <el-button plain @click="rejectToB">{{ $lc(btnsNames['rejectTo']) }}</el-button> -->
146
+ <el-button plain @click="rejectFn">{{ $lc(btnsNames['reject']) }}</el-button>
147
+ <!-- <el-button type="danger" plain @click="discardFn">{{ $lc(btnsNames['discard']) }}</el-button>
148
148
  <el-button plain @click="goFrom">{{ '返 回' | $lc }}</el-button> -->
149
149
  </div>
150
150
 
@@ -154,31 +154,29 @@
154
154
  </div>
155
155
  <!-- 特殊会签按钮 START -->
156
156
  <el-button v-if="authList.includes('pass')" type="primary" @click="checkFlowFn">{{
157
- btnsNames['pass']
157
+ $lc(btnsNames['pass'])
158
158
  }}</el-button>
159
- <el-button v-if="authList.includes('refuse')" plain @click="rejectFn">{{ btnsNames['refuse'] }}</el-button>
160
- <el-button v-if="authList.includes('takeOff')" plain @click="qjFn">{{ btnsNames['takeOff'] }}</el-button>
159
+ <el-button v-if="authList.includes('refuse')" plain @click="rejectFn">{{
160
+ $lc(btnsNames['refuse'])
161
+ }}</el-button>
162
+ <el-button v-if="authList.includes('takeOff')" plain @click="qjFn">{{ $lc(btnsNames['takeOff']) }}</el-button>
161
163
  <!-- END -->
162
164
  <el-button v-if="authList.includes('approval') && approveBtns" type="primary" @click="showAdvancePop">{{
163
- btnsNames['approval']
165
+ $lc(btnsNames['approval'])
164
166
  }}</el-button>
165
167
  <!-- <el-button v-if="authList.includes('approval') && nextApproval && nextBtn" type="primary" @click="approvalNext">
166
- {{ btnsNames['approval'] }}{{ '并审批下一条' | $lc }}</el-button
168
+ {{ $lc(btnsNames['approval']) }}{{ '并审批下一条' | $lc }}</el-button
167
169
  >
168
170
  <el-button v-if="showApprovalTo" type="primary" @click="approvalToV = true"
169
- >{{ btnsNames['approval'] }}{{ '至' | $lc }}</el-button
171
+ >{{ $lc(btnsNames['approval']) }}{{ '至' | $lc }}</el-button
170
172
  >
171
- <el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{ btnsNames['rejectTo'] }}</el-button> -->
173
+ <el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{ $lc(btnsNames['rejectTo']) }}</el-button> -->
172
174
  <el-button v-if="authList.includes('reject') && approveBtns" plain @click="rejectFn">{{
173
- btnsNames['reject']
174
- }}</el-button>
175
- <!-- <el-button v-if="authList.includes('rejectPre')" plain @click="rejectPreFn">{{
176
- btnsNames['rejectPre']
175
+ $lc(btnsNames['reject'])
177
176
  }}</el-button>
177
+ <!-- <el-button v-if="authList.includes('rejectPre')" plain @click="rejectPreFn">{{ $lc(btnsNames['rejectPre']) }}</el-button>
178
178
 
179
- <el-button v-if="authList.includes('discard')" type="danger" plain @click="discardFn">{{
180
- btnsNames['discard']
181
- }}</el-button>
179
+ <el-button v-if="authList.includes('discard')" type="danger" plain @click="discardFn">{{ $lc(btnsNames['discard']) }}</el-button>
182
180
  <el-button plain @click="goFrom">{{ '返 回' | $lc }}</el-button> -->
183
181
  </div>
184
182
  <!-- 设置抄送用户 -->
@@ -496,14 +494,14 @@ export default {
496
494
  checkSum: 0,
497
495
  mustUploadWidget: false,
498
496
  btnsNames: {
499
- pass: $lc('通过'),
500
- refuse: $lc('拒绝'),
501
- takeOff: $lc('请假'),
502
- reject: $lc('驳回'),
503
- rejectPre: $lc('驳回至上一节点'),
504
- approval: $lc('批 准'),
505
- discard: $lc('作 废'),
506
- rejectTo: $lc('驳回至')
497
+ pass: '通过',
498
+ refuse: '拒绝',
499
+ takeOff: '请假',
500
+ reject: '驳回',
501
+ rejectPre: '驳回至上一节点',
502
+ approval: '批 准',
503
+ discard: '作 废',
504
+ rejectTo: '驳回至'
507
505
  },
508
506
  approveBtns: true
509
507
  }
@@ -645,7 +643,7 @@ export default {
645
643
  // 自定义按钮
646
644
  if (data.customBtnName && data.customBtnName.length > 0) {
647
645
  data.customBtnName.forEach((item) => {
648
- this.btnsNames[item.key] = item.optionName
646
+ this.$set(this.btnsNames, item.key, item.optionName)
649
647
  })
650
648
  }
651
649
  let { taskDefKey, menuAuthority } = data
@@ -11,8 +11,8 @@
11
11
  trigger="click"
12
12
  class="m-r-s"
13
13
  >
14
- <el-button slot="reference" class="botton" :class="{ activiti: selectedItem !== $lc('无视图') }">
15
- <div class="flex-box flex-v m-r">
14
+ <el-button slot="reference" class="botton view-button" :class="{ activiti: selectedItem !== $lc('无视图') }">
15
+ <div class="flex-box flex-v">
16
16
  <i class="v3-icon-inbox"></i>
17
17
  <div class="popover-title" style="margin: 0 8px" :title="selectedItem">{{ selectedItem }}</div>
18
18
  <i class="n20-icon-xiala-moren"></i>
@@ -70,7 +70,10 @@
70
70
  <el-button
71
71
  v-if="isFilter"
72
72
  icon="v3-icon-filter"
73
- class="m-r-s botton"
73
+ class="m-r-s botton filter-button"
74
+ :class="{ 'is-filter-expanded': filterExpanded }"
75
+ tabindex="-1"
76
+ @mousedown.native.prevent
74
77
  @click="filterExpanded = !filterExpanded"
75
78
  >{{ '筛选' | $lc }}</el-button
76
79
  >
@@ -219,10 +222,10 @@
219
222
  </template>
220
223
 
221
224
  <script>
222
- import { $lc } from '../../utils/i18n/index'
223
225
  import advancedQuery from './advancedQuery.vue'
224
226
 
225
227
  import axios from '../../utils/axios.js'
228
+ import { $lc } from '../../utils/i18n/index'
226
229
  import ClAdvancedFilter from '../AdvancedFilter/index.vue'
227
230
  import ClDialog from '../Dialog/index.vue'
228
231
  import ClDragList from '../DragList/index.vue'
@@ -515,10 +518,10 @@ export default {
515
518
  item.type === 'daterange'
516
519
  ? [item.startDate, item.endDate]
517
520
  : item.type === 'numberrange'
518
- ? [item.startValue, item.endValue]
519
- : item.slotFields?.length
520
- ? item.slotFields
521
- : [item.value]
521
+ ? [item.startValue, item.endValue]
522
+ : item.slotFields?.length
523
+ ? item.slotFields
524
+ : [item.value]
522
525
 
523
526
  keys.forEach((k) => allFilterKeys.add(k))
524
527
  if (item.required) {
@@ -818,4 +821,21 @@ export default {
818
821
  padding: 0 !important;
819
822
  border-bottom: none !important;
820
823
  }
824
+
825
+ .filter-button,
826
+ .view-button {
827
+ padding: 8px 12px !important;
828
+ height: 32px;
829
+ }
830
+
831
+ .filter-button {
832
+ display: inline-flex;
833
+ align-items: center;
834
+ justify-content: center;
835
+ }
836
+
837
+ .filter-button.is-filter-expanded {
838
+ color: var(--color-blue-6, #007aff);
839
+ background: var(--color-blue-1, #e8f7ff);
840
+ }
821
841
  </style>
package/src/i18n.json CHANGED
@@ -11821,5 +11821,12 @@
11821
11821
  "vi": "Quay lại bước trước",
11822
11822
  "ja": "前のステップに戻る",
11823
11823
  "zh-hk": "撤回至上一步"
11824
+ },
11825
+ "未知": {
11826
+ "en": "Unknown",
11827
+ "th": "ไม่ทราบ",
11828
+ "vi": "Không xác định",
11829
+ "ja": "不明",
11830
+ "zh-hk": "未知"
11824
11831
  }
11825
- }
11832
+ }