n20-common-lib 3.2.39 → 3.2.42
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 +2 -2
- package/src/components/AIButton/index.vue +6 -5
- package/src/components/AdvancedFilter/index.vue +4 -3
- package/src/components/ApprovalButtons/index.vue +26 -22
- package/src/components/ApprovalButtons/indexApp.vue +19 -13
- package/src/components/ApprovalButtons/selectSpr.vue +1 -1
- package/src/components/ApprovalButtons/showAppOpi.vue +5 -5
- package/src/components/ApprovalButtons/showOtherAttr.vue +1 -1
- package/src/components/ApprovalButtons/showOtherAttrNew.vue +4 -4
- package/src/components/ApprovalCard/index.vue +7 -7
- package/src/components/ApprovalCard/indexApp.vue +2 -2
- package/src/components/ApprovalRecord/approvalImgPro/child.vue +3 -3
- package/src/components/ApprovalRecord/approvalImgPro/index.vue +3 -3
- package/src/components/AttachmentPass/index.vue +7 -7
- package/src/components/DateChoose/index.vue +33 -33
- package/src/components/DatePicker/index.vue +3 -1
- package/src/components/DateSelect/busiDate.vue +7 -4
- package/src/components/DateSelect/index.vue +8 -8
- package/src/components/DateSelect/quarterDatePicker.vue +11 -11
- package/src/components/DynamicField/DynamicField.vue +2 -2
- package/src/components/DynamicField/DynamicFieldOptions.vue +57 -57
- package/src/components/DynamicField/DynamicFormView.vue +13 -13
- package/src/components/DynamicField/DynamicTable.vue +4 -4
- package/src/components/DynamicField/contentPop.vue +6 -6
- package/src/components/DynamicField/tableList.vue +5 -5
- package/src/components/DynamicField/tableView.vue +20 -6
- package/src/components/ElectronicArchive/index.vue +20 -17
- package/src/components/FileExportAsync/index.vue +3 -3
- package/src/components/FileUploadTable/aiCheckDialog.vue +11 -11
- package/src/components/FileUploadTable/index.vue +98 -7
- package/src/components/HandlingAdvice/index.vue +3 -3
- package/src/components/Layout/HeaderWrap/changePwd.vue +2 -2
- package/src/components/Layout/HeaderWrap/index.vue +2 -2
- package/src/components/Layout/HeaderWrap/switchUser.vue +1 -1
- package/src/components/LoginSetting/setItem.vue +16 -16
- package/src/components/LoginTemporary/form.vue +2 -2
- package/src/components/LoginTemporary/indexN.vue +15 -15
- package/src/components/LoginTemporary/retrievePw.vue +4 -4
- package/src/components/MdmSelect/index.vue +3 -3
- package/src/components/Pivot/ConfigSidebar.vue +27 -25
- package/src/components/Pivot/MainToolbar.vue +9 -9
- package/src/components/Pivot/ReportSidebar.vue +4 -4
- package/src/components/Pivot/TableView.vue +8 -11
- package/src/components/Pivot/index.vue +26 -26
- package/src/components/ProFilterView/advancedQuery.vue +57 -63
- package/src/components/ProFilterView/index.vue +26 -26
- package/src/components/SelectDatePickerPro/busiDate.vue +5 -5
- package/src/components/SelectDatePickerPro/halfYearPicker.vue +2 -2
- package/src/components/SelectDatePickerPro/index.vue +24 -16
- package/src/components/SelectDatePickerPro/quarterDatePicker.vue +4 -4
- package/src/components/SelectTree/pro.vue +1 -1
- package/src/components/Statis/index.vue +1 -1
- package/src/components/Statis/statisItem.vue +1 -1
- package/src/components/Table/indexO.vue +1 -1
- package/src/components/TablePro/filterContent.vue +2 -2
- package/src/components/TablePro/filterContent_tree.vue +5 -5
- package/src/components/TablePro/index.js +1 -1
- package/src/components/TableTransfer/index.vue +1 -1
- package/src/components/Upload/index.vue +2 -2
- package/src/components/WornPagination/index.vue +1 -1
- package/src/components/operatingStatus/index.vue +7 -7
- package/src/components/v3/TablePro/filterContent.vue +2 -2
- package/src/components/v3/TablePro/filterContent_tree.vue +5 -5
- package/src/components/v3/TablePro/index.js +1 -1
- package/src/components/v3/UploadList/components/aiCheckDialog.vue +11 -11
- package/src/components/v3/UploadList/index.vue +10 -10
- package/src/i18n.json +8951 -715
- package/src/plugins/SetMenuTree/index.vue +1 -1
- package/src/plugins/SetMenuTree/setmenutree.vue +34 -34
- package/src/utils/amountInWords.js +6 -6
- package/src/utils/auth.js +1 -1
|
@@ -30,23 +30,19 @@
|
|
|
30
30
|
class="logic-option"
|
|
31
31
|
:class="{ active: group.conditionLogic === 'and' }"
|
|
32
32
|
@click="group.conditionLogic = 'and'"
|
|
33
|
-
>
|
|
34
|
-
且
|
|
35
|
-
</div>
|
|
33
|
+
>{{ $lc('且') }}</div>
|
|
36
34
|
<div
|
|
37
35
|
class="logic-option"
|
|
38
36
|
:class="{ active: group.conditionLogic === 'or' }"
|
|
39
37
|
@click="group.conditionLogic = 'or'"
|
|
40
|
-
>
|
|
41
|
-
或
|
|
42
|
-
</div>
|
|
38
|
+
>{{ $lc('或') }}</div>
|
|
43
39
|
</div>
|
|
44
40
|
</div>
|
|
45
41
|
<div>
|
|
46
42
|
<div v-for="(condition, condIndex) in group.conditions" :key="condIndex" class="condition-item">
|
|
47
43
|
<div class="condition-row">
|
|
48
44
|
<!-- 字段选择 -->
|
|
49
|
-
<el-select v-model="condition.field" class="field-select" placeholder="请选择字段" size="small">
|
|
45
|
+
<el-select v-model="condition.field" class="field-select" :placeholder="$lc('请选择字段')" size="small">
|
|
50
46
|
<el-option
|
|
51
47
|
v-for="field in canSetFilter"
|
|
52
48
|
:key="field.value"
|
|
@@ -56,7 +52,7 @@
|
|
|
56
52
|
/>
|
|
57
53
|
</el-select>
|
|
58
54
|
<!-- 操作符选择 -->
|
|
59
|
-
<el-select v-model="condition.operator" class="operator-select" placeholder="请选择操作符" size="small">
|
|
55
|
+
<el-select v-model="condition.operator" class="operator-select" :placeholder="$lc('请选择操作符')" size="small">
|
|
60
56
|
<el-option
|
|
61
57
|
v-for="opt in (dz[condition.advancedQueryType] && dz[condition.advancedQueryType].types) || []"
|
|
62
58
|
:key="opt.id"
|
|
@@ -82,7 +78,7 @@
|
|
|
82
78
|
v-else-if="condition.valueType === 'select' || condition.valueType === 'selectMultiple'"
|
|
83
79
|
v-model="condition.value"
|
|
84
80
|
class="input-w"
|
|
85
|
-
placeholder="请选择"
|
|
81
|
+
:placeholder="$lc('请选择')"
|
|
86
82
|
size="small"
|
|
87
83
|
:multiple="condition.valueType === 'selectMultiple'"
|
|
88
84
|
collapse-tags
|
|
@@ -97,7 +93,7 @@
|
|
|
97
93
|
v-model="condition.value"
|
|
98
94
|
type="date"
|
|
99
95
|
value-format="yyyy-MM-dd"
|
|
100
|
-
placeholder="请选择日期"
|
|
96
|
+
:placeholder="$lc('请选择日期')"
|
|
101
97
|
/>
|
|
102
98
|
|
|
103
99
|
<!-- 日期范围选择器 -->
|
|
@@ -115,7 +111,7 @@
|
|
|
115
111
|
v-model="condition.value"
|
|
116
112
|
:is-clearable="true"
|
|
117
113
|
:d-num="6"
|
|
118
|
-
placeholder="请输入"
|
|
114
|
+
:placeholder="$lc('请输入')"
|
|
119
115
|
/>
|
|
120
116
|
|
|
121
117
|
<!-- 金额范围 -->
|
|
@@ -130,7 +126,7 @@
|
|
|
130
126
|
<el-input
|
|
131
127
|
v-else-if="condition.valueType === 'input'"
|
|
132
128
|
v-model="condition.value"
|
|
133
|
-
placeholder="请输入"
|
|
129
|
+
:placeholder="$lc('请输入')"
|
|
134
130
|
size="small"
|
|
135
131
|
clearable
|
|
136
132
|
/>
|
|
@@ -142,7 +138,7 @@
|
|
|
142
138
|
)
|
|
143
139
|
"
|
|
144
140
|
v-model="condition.value"
|
|
145
|
-
placeholder="请输入"
|
|
141
|
+
:placeholder="$lc('请输入')"
|
|
146
142
|
size="small"
|
|
147
143
|
clearable
|
|
148
144
|
disabled
|
|
@@ -152,7 +148,7 @@
|
|
|
152
148
|
v-else-if="condition.valueType === 'findSearch'"
|
|
153
149
|
v-model="condition.value"
|
|
154
150
|
class="input-w"
|
|
155
|
-
placeholder="请输入"
|
|
151
|
+
:placeholder="$lc('请输入')"
|
|
156
152
|
clearable
|
|
157
153
|
@change="searchFn"
|
|
158
154
|
/>
|
|
@@ -176,11 +172,9 @@
|
|
|
176
172
|
<!-- 添加条件按钮 -->
|
|
177
173
|
<div class="group-actions">
|
|
178
174
|
<el-button v-if="value.length > 0" type="text" class="add-condition-btn" @click.stop="addCondition(0)">
|
|
179
|
-
<i class="v3-icon-add-fill"></i> 添加条件
|
|
180
|
-
</el-button>
|
|
175
|
+
<i class="v3-icon-add-fill"></i>{{ $lc('添加条件') }}</el-button>
|
|
181
176
|
<el-button type="text" class="add-group-btn" @click.stop="addConditionGroup()">
|
|
182
|
-
<i class="v3-icon-add-fill"></i> 添加条件组
|
|
183
|
-
</el-button>
|
|
177
|
+
<i class="v3-icon-add-fill"></i>{{ $lc('添加条件组') }}</el-button>
|
|
184
178
|
</div>
|
|
185
179
|
</div>
|
|
186
180
|
</template>
|
|
@@ -225,11 +219,11 @@ export default {
|
|
|
225
219
|
canSetFilter: [],
|
|
226
220
|
// 字段配置
|
|
227
221
|
fieldOptions: [
|
|
228
|
-
{ label:
|
|
229
|
-
{ label:
|
|
230
|
-
{ label:
|
|
231
|
-
{ label:
|
|
232
|
-
{ label:
|
|
222
|
+
{ label: $lc("分派账户所属机构"), value: 'accountOrg', type: 'select', options: [$lc("机构1"), $lc("机构2"), $lc("机构3")] },
|
|
223
|
+
{ label: $lc("状态"), value: 'status', type: 'select', options: [$lc("未开始"), $lc("进行中"), $lc("已完成"), $lc("异常")] },
|
|
224
|
+
{ label: $lc("金额"), value: 'amount', type: 'number' },
|
|
225
|
+
{ label: $lc("创建时间"), value: 'createTime', type: 'date' },
|
|
226
|
+
{ label: $lc("更新时间"), value: 'updateTime', type: 'daterange' }
|
|
233
227
|
],
|
|
234
228
|
// 字段对照
|
|
235
229
|
// 控制器
|
|
@@ -244,205 +238,205 @@ export default {
|
|
|
244
238
|
// 禁用 inputDisabled
|
|
245
239
|
dz: {
|
|
246
240
|
1: {
|
|
247
|
-
name:
|
|
241
|
+
name: $lc("文本型"),
|
|
248
242
|
code: 1,
|
|
249
243
|
types: [
|
|
250
244
|
{
|
|
251
|
-
name:
|
|
245
|
+
name: $lc("包含"),
|
|
252
246
|
value: 1,
|
|
253
247
|
type: 'input'
|
|
254
248
|
},
|
|
255
249
|
{
|
|
256
|
-
name:
|
|
250
|
+
name: $lc("不包含"),
|
|
257
251
|
value: 2,
|
|
258
252
|
type: 'input'
|
|
259
253
|
},
|
|
260
254
|
{
|
|
261
|
-
name:
|
|
255
|
+
name: $lc("等于"),
|
|
262
256
|
value: 3,
|
|
263
257
|
type: 'input'
|
|
264
258
|
},
|
|
265
259
|
{
|
|
266
|
-
name:
|
|
260
|
+
name: $lc("不等于"),
|
|
267
261
|
value: 4,
|
|
268
262
|
type: 'input'
|
|
269
263
|
},
|
|
270
264
|
{
|
|
271
|
-
name:
|
|
265
|
+
name: $lc("为空"),
|
|
272
266
|
value: 5,
|
|
273
267
|
type: 'inputDisabled'
|
|
274
268
|
},
|
|
275
269
|
{
|
|
276
|
-
name:
|
|
270
|
+
name: $lc("不为空"),
|
|
277
271
|
value: 6,
|
|
278
272
|
type: 'inputDisabled'
|
|
279
273
|
}
|
|
280
274
|
]
|
|
281
275
|
},
|
|
282
276
|
2: {
|
|
283
|
-
name:
|
|
277
|
+
name: $lc("数值型"),
|
|
284
278
|
code: 2,
|
|
285
279
|
types: [
|
|
286
280
|
{
|
|
287
|
-
name:
|
|
281
|
+
name: $lc("等于"),
|
|
288
282
|
value: 7,
|
|
289
283
|
type: 'inputNumber'
|
|
290
284
|
},
|
|
291
285
|
{
|
|
292
|
-
name:
|
|
286
|
+
name: $lc("不等于"),
|
|
293
287
|
value: 8,
|
|
294
288
|
type: 'inputNumber'
|
|
295
289
|
},
|
|
296
290
|
{
|
|
297
|
-
name:
|
|
291
|
+
name: $lc("大于"),
|
|
298
292
|
value: 9,
|
|
299
293
|
type: 'inputNumber'
|
|
300
294
|
},
|
|
301
295
|
{
|
|
302
|
-
name:
|
|
296
|
+
name: $lc("小于"),
|
|
303
297
|
value: 10,
|
|
304
298
|
type: 'inputNumber'
|
|
305
299
|
},
|
|
306
300
|
{
|
|
307
|
-
name:
|
|
301
|
+
name: $lc("大于等于"),
|
|
308
302
|
value: 11,
|
|
309
303
|
type: 'inputNumber'
|
|
310
304
|
},
|
|
311
305
|
{
|
|
312
|
-
name:
|
|
306
|
+
name: $lc("小于等于"),
|
|
313
307
|
value: 12,
|
|
314
308
|
type: 'inputNumber'
|
|
315
309
|
},
|
|
316
310
|
{
|
|
317
|
-
name:
|
|
311
|
+
name: $lc("区间"),
|
|
318
312
|
value: 13,
|
|
319
313
|
type: 'inputNumberRange'
|
|
320
314
|
},
|
|
321
315
|
{
|
|
322
|
-
name:
|
|
316
|
+
name: $lc("为空"),
|
|
323
317
|
value: 5,
|
|
324
318
|
type: 'inputNumberDisabled'
|
|
325
319
|
},
|
|
326
320
|
{
|
|
327
|
-
name:
|
|
321
|
+
name: $lc("不为空"),
|
|
328
322
|
value: 6,
|
|
329
323
|
type: 'inputNumberDisabled'
|
|
330
324
|
}
|
|
331
325
|
]
|
|
332
326
|
},
|
|
333
327
|
3: {
|
|
334
|
-
name:
|
|
328
|
+
name: $lc("日期/时间型"),
|
|
335
329
|
code: 3,
|
|
336
330
|
types: [
|
|
337
331
|
{
|
|
338
|
-
name:
|
|
332
|
+
name: $lc("等于"),
|
|
339
333
|
value: 3,
|
|
340
334
|
type: 'datePicker'
|
|
341
335
|
},
|
|
342
336
|
{
|
|
343
|
-
name:
|
|
337
|
+
name: $lc("介于"),
|
|
344
338
|
value: 14,
|
|
345
339
|
type: 'dateRangePicker'
|
|
346
340
|
},
|
|
347
341
|
{
|
|
348
|
-
name:
|
|
342
|
+
name: $lc("早于"),
|
|
349
343
|
value: 15,
|
|
350
344
|
type: 'datePicker'
|
|
351
345
|
},
|
|
352
346
|
{
|
|
353
|
-
name:
|
|
347
|
+
name: $lc("晚于"),
|
|
354
348
|
value: 16,
|
|
355
349
|
type: 'datePicker'
|
|
356
350
|
},
|
|
357
351
|
{
|
|
358
|
-
name:
|
|
352
|
+
name: $lc("为空"),
|
|
359
353
|
value: 5,
|
|
360
354
|
type: 'datePickerDisabled'
|
|
361
355
|
},
|
|
362
356
|
{
|
|
363
|
-
name:
|
|
357
|
+
name: $lc("不为空"),
|
|
364
358
|
value: 6,
|
|
365
359
|
type: 'datePickerDisabled'
|
|
366
360
|
}
|
|
367
361
|
]
|
|
368
362
|
},
|
|
369
363
|
4: {
|
|
370
|
-
name:
|
|
364
|
+
name: $lc("单选枚举型"),
|
|
371
365
|
code: 4,
|
|
372
366
|
types: [
|
|
373
367
|
{
|
|
374
|
-
name:
|
|
368
|
+
name: $lc("等于"),
|
|
375
369
|
value: 3,
|
|
376
370
|
type: 'select'
|
|
377
371
|
},
|
|
378
372
|
{
|
|
379
|
-
name:
|
|
373
|
+
name: $lc("不等于"),
|
|
380
374
|
value: 4,
|
|
381
375
|
type: 'select'
|
|
382
376
|
},
|
|
383
377
|
{
|
|
384
|
-
name:
|
|
378
|
+
name: $lc("属于"),
|
|
385
379
|
value: 17,
|
|
386
380
|
type: 'selectMultiple'
|
|
387
381
|
},
|
|
388
382
|
{
|
|
389
|
-
name:
|
|
383
|
+
name: $lc("不属于"),
|
|
390
384
|
value: 18,
|
|
391
385
|
type: 'selectMultiple'
|
|
392
386
|
},
|
|
393
387
|
{
|
|
394
|
-
name:
|
|
388
|
+
name: $lc("为空"),
|
|
395
389
|
value: 5,
|
|
396
390
|
type: 'selectDisabled'
|
|
397
391
|
},
|
|
398
392
|
{
|
|
399
|
-
name:
|
|
393
|
+
name: $lc("不为空"),
|
|
400
394
|
value: 6,
|
|
401
395
|
type: 'selectDisabled'
|
|
402
396
|
}
|
|
403
397
|
]
|
|
404
398
|
},
|
|
405
399
|
5: {
|
|
406
|
-
name:
|
|
400
|
+
name: $lc("人员/部门型"),
|
|
407
401
|
code: 5,
|
|
408
402
|
types: [
|
|
409
403
|
{
|
|
410
|
-
name:
|
|
404
|
+
name: $lc("包含"),
|
|
411
405
|
value: 1,
|
|
412
406
|
type: 'input'
|
|
413
407
|
},
|
|
414
408
|
{
|
|
415
|
-
name:
|
|
409
|
+
name: $lc("不包含"),
|
|
416
410
|
value: 2,
|
|
417
411
|
type: 'input'
|
|
418
412
|
},
|
|
419
413
|
{
|
|
420
|
-
name:
|
|
414
|
+
name: $lc("属于"),
|
|
421
415
|
value: 17,
|
|
422
416
|
type: 'findSearchMultiple'
|
|
423
417
|
},
|
|
424
418
|
{
|
|
425
|
-
name:
|
|
419
|
+
name: $lc("不属于"),
|
|
426
420
|
value: 18,
|
|
427
421
|
type: 'findSearchMultiple'
|
|
428
422
|
},
|
|
429
423
|
{
|
|
430
|
-
name:
|
|
424
|
+
name: $lc("等于"),
|
|
431
425
|
value: 3,
|
|
432
426
|
type: 'findSearch'
|
|
433
427
|
},
|
|
434
428
|
{
|
|
435
|
-
name:
|
|
429
|
+
name: $lc("不等于"),
|
|
436
430
|
value: 4,
|
|
437
431
|
type: 'findSearch'
|
|
438
432
|
},
|
|
439
433
|
{
|
|
440
|
-
name:
|
|
434
|
+
name: $lc("为空"),
|
|
441
435
|
value: 5,
|
|
442
436
|
type: 'inputDisabled'
|
|
443
437
|
},
|
|
444
438
|
{
|
|
445
|
-
name:
|
|
439
|
+
name: $lc("不为空"),
|
|
446
440
|
value: 6,
|
|
447
441
|
type: 'inputDisabled'
|
|
448
442
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
trigger="click"
|
|
12
12
|
class="m-r-s"
|
|
13
13
|
>
|
|
14
|
-
<el-button slot="reference" class="botton" :class="{ activiti: selectedItem !== '无视图' }">
|
|
14
|
+
<el-button slot="reference" class="botton" :class="{ activiti: selectedItem !== $lc('无视图') }">
|
|
15
15
|
<div class="flex-box flex-v m-r">
|
|
16
16
|
<i class="v3-icon-inbox"></i>
|
|
17
17
|
<div class="popover-title" style="margin: 0 8px" :title="selectedItem">{{ selectedItem }}</div>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
</el-button>
|
|
21
21
|
<div class="p-s">
|
|
22
|
-
<cl-input-search v-model="searchKeyword" class="w-100p" placeholder="请输入关键字" />
|
|
22
|
+
<cl-input-search v-model="searchKeyword" class="w-100p" :placeholder="$lc('请输入关键字')" />
|
|
23
23
|
<div style="color: var(--color-text-secondary); margin: 12px 0 8px 0">{{ $lc('自定义视图') }}</div>
|
|
24
24
|
<div class="filter-view-wrapper">
|
|
25
25
|
<cl-drag-list class="flex-item" :list="filteredList" :hide-delete="true" @change="handleDragSort">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}}</span>
|
|
31
31
|
<i v-if="selectedItem === item.viewName" class="el-icon-check selected-icon"></i>
|
|
32
32
|
<el-dropdown
|
|
33
|
-
v-if="selectedItem !== item.viewName && item.viewName !== '无视图'"
|
|
33
|
+
v-if="selectedItem !== item.viewName && item.viewName !== $lc('无视图')"
|
|
34
34
|
trigger="click"
|
|
35
35
|
class="proFilterView-list-item__more"
|
|
36
36
|
@command="(command) => handleCommand(command, item)"
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
<el-form-item
|
|
137
137
|
:label="$lc('视图名称')"
|
|
138
138
|
prop="viewName"
|
|
139
|
-
:rules="[{ required: true, message: '请输入', trigger: 'blur' }]"
|
|
139
|
+
:rules="[{ required: true, message: $lc('请输入'), trigger: 'blur' }]"
|
|
140
140
|
>
|
|
141
141
|
<el-input v-model="form.viewName" maxlength="30" show-word-limit />
|
|
142
142
|
</el-form-item>
|
|
@@ -286,8 +286,8 @@ export default {
|
|
|
286
286
|
return {
|
|
287
287
|
VIEW_TYPE,
|
|
288
288
|
searchKeyword: '',
|
|
289
|
-
list: ['无视图'],
|
|
290
|
-
selectedItem: '无视图', // 默认选中第一项
|
|
289
|
+
list: [$lc('无视图')],
|
|
290
|
+
selectedItem: $lc('无视图'), // 默认选中第一项
|
|
291
291
|
viewPopoverVisible: false,
|
|
292
292
|
visible: false,
|
|
293
293
|
isAdd: false,
|
|
@@ -514,10 +514,10 @@ export default {
|
|
|
514
514
|
item.type === 'daterange'
|
|
515
515
|
? [item.startDate, item.endDate]
|
|
516
516
|
: item.type === 'numberrange'
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
517
|
+
? [item.startValue, item.endValue]
|
|
518
|
+
: item.slotFields?.length
|
|
519
|
+
? item.slotFields
|
|
520
|
+
: [item.value]
|
|
521
521
|
|
|
522
522
|
keys.forEach((k) => allFilterKeys.add(k))
|
|
523
523
|
if (item.required) {
|
|
@@ -568,7 +568,7 @@ export default {
|
|
|
568
568
|
})
|
|
569
569
|
this.list = [
|
|
570
570
|
{
|
|
571
|
-
viewName: '无视图'
|
|
571
|
+
viewName: $lc('无视图')
|
|
572
572
|
},
|
|
573
573
|
...list
|
|
574
574
|
]
|
|
@@ -583,7 +583,7 @@ export default {
|
|
|
583
583
|
.catch((err) => {
|
|
584
584
|
this.list = [
|
|
585
585
|
{
|
|
586
|
-
viewName: '无视图'
|
|
586
|
+
viewName: $lc('无视图')
|
|
587
587
|
}
|
|
588
588
|
]
|
|
589
589
|
})
|
|
@@ -689,26 +689,26 @@ export default {
|
|
|
689
689
|
// 保存视图
|
|
690
690
|
saveSt() {
|
|
691
691
|
if (!this.bussId) {
|
|
692
|
-
this.$message.warning('缺少业务ID,无法保存视图')
|
|
692
|
+
this.$message.warning($lc('缺少业务ID,无法保存视图'))
|
|
693
693
|
return
|
|
694
694
|
}
|
|
695
695
|
|
|
696
696
|
this.$refs.form.validate(async (valid) => {
|
|
697
697
|
if (!valid) {
|
|
698
|
-
this.$message.error('请输入视图名称')
|
|
698
|
+
this.$message.error($lc('请输入视图名称'))
|
|
699
699
|
return
|
|
700
700
|
}
|
|
701
701
|
if (this.form.viewType === VIEW_TYPE.BASIC) {
|
|
702
702
|
this.syncDialogFilterKeyIds()
|
|
703
703
|
}
|
|
704
704
|
if (this.form.viewType === VIEW_TYPE.BASIC && !this.form.keyIds.length) {
|
|
705
|
-
this.$message.warning('至少添加一个条件')
|
|
705
|
+
this.$message.warning($lc('至少添加一个条件'))
|
|
706
706
|
return
|
|
707
707
|
}
|
|
708
708
|
if (this.form.viewType === VIEW_TYPE.ADVANCED) {
|
|
709
709
|
const hasEmptyValue = this.hasEmptyCondition()
|
|
710
710
|
if (!this.conditionGroups.length || hasEmptyValue) {
|
|
711
|
-
this.$message.warning('至少添加一个条件')
|
|
711
|
+
this.$message.warning($lc('至少添加一个条件'))
|
|
712
712
|
return
|
|
713
713
|
}
|
|
714
714
|
}
|
|
@@ -719,7 +719,7 @@ export default {
|
|
|
719
719
|
return false
|
|
720
720
|
}
|
|
721
721
|
this.visible = false
|
|
722
|
-
this.$message.success('保存成功')
|
|
722
|
+
this.$message.success($lc('保存成功'))
|
|
723
723
|
this.getFilterList(this.viewId)
|
|
724
724
|
})
|
|
725
725
|
})
|
|
@@ -727,15 +727,15 @@ export default {
|
|
|
727
727
|
// 删除
|
|
728
728
|
deleteOne(row) {
|
|
729
729
|
this.$msgboxPor({
|
|
730
|
-
title: '确认要删除吗?',
|
|
731
|
-
message: '内容从页面删除,将不可恢复',
|
|
730
|
+
title: $lc('确认要删除吗?'),
|
|
731
|
+
message: $lc('内容从页面删除,将不可恢复'),
|
|
732
732
|
type: 'error',
|
|
733
|
-
confirmButtonText: '确定',
|
|
734
|
-
cancelButtonText: '取消'
|
|
733
|
+
confirmButtonText: $lc('确定'),
|
|
734
|
+
cancelButtonText: $lc('取消')
|
|
735
735
|
}).then(async () => {
|
|
736
736
|
const { code } = await axios.post('/bems/query/viewColumn/deleteViewInfo', { viewId: row.viewId })
|
|
737
737
|
if (code !== 200) return
|
|
738
|
-
this.$message.success('删除成功')
|
|
738
|
+
this.$message.success($lc('删除成功'))
|
|
739
739
|
this.getFilterList()
|
|
740
740
|
})
|
|
741
741
|
},
|
|
@@ -744,7 +744,7 @@ export default {
|
|
|
744
744
|
this.viewPopoverVisible = false
|
|
745
745
|
this.selectItem = item
|
|
746
746
|
this.selectedItem = item.viewName
|
|
747
|
-
if (item.viewName === '无视图') {
|
|
747
|
+
if (item.viewName === $lc('无视图')) {
|
|
748
748
|
this.selectItem = ''
|
|
749
749
|
this.searchValue = { ...this.getInitialSearchValue, ...this.initialValue }
|
|
750
750
|
this.conditionGroups = []
|
|
@@ -761,7 +761,7 @@ export default {
|
|
|
761
761
|
},
|
|
762
762
|
// 拖动保存视图列表
|
|
763
763
|
handleDragSort(list) {
|
|
764
|
-
console.log('当前list:', list)
|
|
764
|
+
console.log($lc('当前list:'), list)
|
|
765
765
|
},
|
|
766
766
|
/**
|
|
767
767
|
* 查询类型切换(基础查询 <-> 高级查询)
|
|
@@ -799,7 +799,7 @@ export default {
|
|
|
799
799
|
*/
|
|
800
800
|
resetState() {
|
|
801
801
|
this.searchKeyword = ''
|
|
802
|
-
this.selectedItem = '无视图'
|
|
802
|
+
this.selectedItem = $lc('无视图')
|
|
803
803
|
this.selectItem = ''
|
|
804
804
|
this.searchValue = { ...this.getInitialSearchValue, ...this.initialValue }
|
|
805
805
|
this.searchForm = { ...this.getInitialSearchValue }
|
|
@@ -814,7 +814,7 @@ export default {
|
|
|
814
814
|
|
|
815
815
|
<style scoped>
|
|
816
816
|
.filter.is-hidden {
|
|
817
|
-
padding:0 !important;
|
|
817
|
+
padding: 0 !important;
|
|
818
818
|
border-bottom: none !important;
|
|
819
819
|
}
|
|
820
820
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flex-box flex-v">
|
|
3
3
|
<div class="n20-date-select-busi">
|
|
4
|
-
<el-select v-model="type" placeholder="请选择" style="width: 85px" @change="handleDate">
|
|
4
|
+
<el-select v-model="type" :placeholder="$lc('请选择')" style="width: 85px" @change="handleDate">
|
|
5
5
|
<el-option v-for="(item, index) in selectOptions" :key="index" :label="item.label" :value="item.value" />
|
|
6
6
|
</el-select>
|
|
7
7
|
<el-date-picker
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
format="yyyy-MM-dd"
|
|
10
10
|
value-format="yyyy-MM-dd"
|
|
11
11
|
type="date"
|
|
12
|
-
:placeholder="'选择日' | $lc"
|
|
12
|
+
:placeholder="$lc('选择日') | $lc"
|
|
13
13
|
@change="changeDate"
|
|
14
14
|
/>
|
|
15
15
|
</div>
|
|
@@ -62,9 +62,9 @@ export default {
|
|
|
62
62
|
type: Array,
|
|
63
63
|
default: () => {
|
|
64
64
|
return [
|
|
65
|
-
{ label:
|
|
66
|
-
{ label:
|
|
67
|
-
{ label:
|
|
65
|
+
{ label: $lc("期望日"), value: 1 },
|
|
66
|
+
{ label: $lc("提交日"), value: 2 },
|
|
67
|
+
{ label: $lc("发起日"), value: 3 }
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
const [, year, startMonth] = startDateMatch
|
|
104
104
|
this.year = year
|
|
105
105
|
this.halfYear = startMonth === '01' ? 1 : 2
|
|
106
|
-
this.showValue = `${year} 年 ${startMonth === '01' ?
|
|
106
|
+
this.showValue = `${year} 年 ${startMonth === '01' ? $lc("上半年") : $lc("下半年")}`
|
|
107
107
|
} else {
|
|
108
108
|
this.showValue = ''
|
|
109
109
|
}
|
|
@@ -132,7 +132,7 @@ export default {
|
|
|
132
132
|
this.halfYear = i + 1
|
|
133
133
|
let arr = [`${this.year}-${i === 0 ? '01' : '07'}`, `${this.year}-${i === 0 ? '06' : '12'}`]
|
|
134
134
|
this.showHalfYear = false
|
|
135
|
-
this.showValue = `${this.year} 年 ${i === 0 ?
|
|
135
|
+
this.showValue = `${this.year} 年 ${i === 0 ? $lc("上半年") : $lc("下半年")}`
|
|
136
136
|
// 6月最后一天是30 12月最后一天是31
|
|
137
137
|
this.$emit('input', { startDate: arr[0] + '-01', endDate: i === 0 ? arr[1] + '-30' : arr[1] + '-31' })
|
|
138
138
|
this.$emit('change', { startDate: arr[0] + '-01', endDate: i === 0 ? arr[1] + '-30' : arr[1] + '-31' })
|