cnhis-design-vue 2.1.50 → 2.1.52
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/CHANGELOG.md +28 -8
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +23 -23
- package/es/button/index.js +44 -59
- package/es/button/style.css +1 -1
- package/es/captcha/index.js +3 -3
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/fabric-chart/index.js +9 -9
- package/es/form-table/index.js +17 -17
- package/es/index/index.js +391 -335
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +24 -24
- package/es/multi-chat-client/index.js +18 -18
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +20 -20
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-view/index.js +24 -24
- package/es/select/index.js +45 -32
- package/es/select/style.css +1 -1
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +39 -24
- package/es/select-person/style.css +1 -1
- package/es/shortcut-setter/index.js +2 -2
- package/es/table-filter/index.js +168 -140
- package/es/table-filter/style.css +1 -1
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +518 -462
- package/lib/cui.umd.js +518 -462
- package/lib/cui.umd.min.js +30 -30
- package/package.json +1 -1
- package/packages/button/src/ButtonPrint/index.vue +48 -59
- package/packages/select/src/TableSelect/index.vue +27 -10
- package/packages/select-person/select-person.vue +12 -0
- package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +1 -5
- package/packages/table-filter/src/components/search-condition/SearchCondition.vue +47 -10
- package/packages/table-filter/src/quick-search/QuickSearch.vue +2 -2
package/package.json
CHANGED
|
@@ -148,16 +148,16 @@ export default create({
|
|
|
148
148
|
default: '0'
|
|
149
149
|
},
|
|
150
150
|
// 没有模板提示
|
|
151
|
-
noformatTips:{
|
|
151
|
+
noformatTips: {
|
|
152
152
|
type: String,
|
|
153
153
|
default: ''
|
|
154
154
|
},
|
|
155
155
|
|
|
156
|
-
getOnceParamsAfter:{
|
|
156
|
+
getOnceParamsAfter: {
|
|
157
157
|
type: Function
|
|
158
158
|
},
|
|
159
159
|
|
|
160
|
-
getPrintParamsAfter:{
|
|
160
|
+
getPrintParamsAfter: {
|
|
161
161
|
type: Function
|
|
162
162
|
}
|
|
163
163
|
},
|
|
@@ -170,8 +170,14 @@ export default create({
|
|
|
170
170
|
formatTitle() {
|
|
171
171
|
return this.currentFormatItem?.name || '格式选择';
|
|
172
172
|
},
|
|
173
|
-
printExtraParams(){
|
|
174
|
-
|
|
173
|
+
printExtraParams() {
|
|
174
|
+
return this?.printConfig?.printExtraParams || {};
|
|
175
|
+
},
|
|
176
|
+
queryParams() {
|
|
177
|
+
return {
|
|
178
|
+
formatId: this.currentFormatId,
|
|
179
|
+
templateId: this.getTemplateIdByFormatId(this.currentFormatId)
|
|
180
|
+
};
|
|
175
181
|
}
|
|
176
182
|
},
|
|
177
183
|
data() {
|
|
@@ -278,7 +284,7 @@ export default create({
|
|
|
278
284
|
this.currentFormatId = this.getDefaultFormatId(this.formatList, 'defaultFlag');
|
|
279
285
|
|
|
280
286
|
if (!this.currentFormatId) {
|
|
281
|
-
this.$message.error(this.noformatTips ||'获取打印格式失败,请联系管理员!');
|
|
287
|
+
this.$message.error(this.noformatTips || '获取打印格式失败,请联系管理员!');
|
|
282
288
|
return this.requestError();
|
|
283
289
|
}
|
|
284
290
|
if (!this.currentFormatId) {
|
|
@@ -384,8 +390,8 @@ export default create({
|
|
|
384
390
|
if (i.type === 'DATETIME') {
|
|
385
391
|
tVal = tableVal ? moment(tableVal).format('YYYY-MM-DD HH:mm:ss') : '';
|
|
386
392
|
}
|
|
387
|
-
if(i.type === 'TEXT'){
|
|
388
|
-
tVal = String(tableVal) || ''
|
|
393
|
+
if (i.type === 'TEXT') {
|
|
394
|
+
tVal = String(tableVal) || '';
|
|
389
395
|
}
|
|
390
396
|
|
|
391
397
|
return val ? val : tVal;
|
|
@@ -446,8 +452,8 @@ export default create({
|
|
|
446
452
|
...(params || {}),
|
|
447
453
|
...(this.token ? { token: this.token } : {}),
|
|
448
454
|
...extraParams
|
|
449
|
-
}
|
|
450
|
-
if(typeof this.getPrintParamsAfter === 'function'){
|
|
455
|
+
};
|
|
456
|
+
if (typeof this.getPrintParamsAfter === 'function') {
|
|
451
457
|
let t = this.getPrintParamsAfter(res);
|
|
452
458
|
return t || res;
|
|
453
459
|
}
|
|
@@ -461,7 +467,7 @@ export default create({
|
|
|
461
467
|
// 聚合一条
|
|
462
468
|
let params = {};
|
|
463
469
|
let obj = {};
|
|
464
|
-
let cur = this.printParams?.[0] || {}
|
|
470
|
+
let cur = this.printParams?.[0] || {};
|
|
465
471
|
if (this.templateParams?.customizeDataset?.length) {
|
|
466
472
|
// 有模板数据
|
|
467
473
|
const key = Object.keys(cur?.datasetData || {})?.[0] || '';
|
|
@@ -481,8 +487,8 @@ export default create({
|
|
|
481
487
|
});
|
|
482
488
|
}
|
|
483
489
|
params = Object.assign({}, JSON.parse(this.getPrintParams(0)), obj);
|
|
484
|
-
if(typeof this.getOnceParamsAfter === 'function'){
|
|
485
|
-
let res = this.getOnceParamsAfter(params,obj);
|
|
490
|
+
if (typeof this.getOnceParamsAfter === 'function') {
|
|
491
|
+
let res = this.getOnceParamsAfter(params, obj);
|
|
486
492
|
return res || params;
|
|
487
493
|
}
|
|
488
494
|
return JSON.stringify(params);
|
|
@@ -530,27 +536,30 @@ export default create({
|
|
|
530
536
|
});
|
|
531
537
|
}
|
|
532
538
|
} else {
|
|
539
|
+
const queryParams = {
|
|
540
|
+
...this.queryParams,
|
|
541
|
+
printdlgshow: this.printdlgshow
|
|
542
|
+
};
|
|
533
543
|
if (this.strategy === 'MULTI') {
|
|
534
544
|
// 循环多条
|
|
535
545
|
for (let i = 0; i < this.printParams.length; i++) {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
546
|
+
if (i > 0) queryParams.printdlgshow = '0';
|
|
547
|
+
printInstance.printDirect(
|
|
548
|
+
{
|
|
549
|
+
...queryParams,
|
|
550
|
+
params: this.getPrintParams(i)
|
|
551
|
+
},
|
|
552
|
+
callLocalServicesSuccessCb,
|
|
553
|
+
this.callLocalServicesErrorCb
|
|
554
|
+
);
|
|
543
555
|
}
|
|
544
556
|
} else {
|
|
545
557
|
// 聚合一条
|
|
546
|
-
const queryParams = {
|
|
547
|
-
formatId: this.currentFormatId,
|
|
548
|
-
templateId: this.getTemplateIdByFormatId(this.currentFormatId),
|
|
549
|
-
params: this.getOnceParams(),
|
|
550
|
-
printdlgshow: this.printdlgshow
|
|
551
|
-
};
|
|
552
558
|
printInstance.printDirect(
|
|
553
|
-
|
|
559
|
+
{
|
|
560
|
+
...queryParams,
|
|
561
|
+
params: this.getOnceParams()
|
|
562
|
+
},
|
|
554
563
|
res => {
|
|
555
564
|
this.callLocalServicesSuccessCb(res, 'print');
|
|
556
565
|
},
|
|
@@ -614,36 +623,17 @@ export default create({
|
|
|
614
623
|
});
|
|
615
624
|
} else {
|
|
616
625
|
const IS_MULTI = this.strategy === 'MULTI';
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
this.callLocalServicesSuccessCb(res, 'preview');
|
|
629
|
-
},
|
|
630
|
-
this.callLocalServicesErrorCb
|
|
631
|
-
);
|
|
632
|
-
}
|
|
633
|
-
} else {
|
|
634
|
-
const queryParams = {
|
|
635
|
-
formatId: this.currentFormatId,
|
|
636
|
-
templateId: this.getTemplateIdByFormatId(this.currentFormatId),
|
|
637
|
-
params: this.getOnceParams()
|
|
638
|
-
};
|
|
639
|
-
printInstance.preview(
|
|
640
|
-
queryParams,
|
|
641
|
-
res => {
|
|
642
|
-
this.callLocalServicesSuccessCb(res, 'preview');
|
|
643
|
-
},
|
|
644
|
-
this.callLocalServicesErrorCb
|
|
645
|
-
);
|
|
646
|
-
}
|
|
626
|
+
|
|
627
|
+
printInstance.preview(
|
|
628
|
+
{
|
|
629
|
+
...this.queryParams,
|
|
630
|
+
params: IS_MULTI ? this.getPrintParams() : this.getOnceParams()
|
|
631
|
+
},
|
|
632
|
+
res => {
|
|
633
|
+
this.callLocalServicesSuccessCb(res, 'preview');
|
|
634
|
+
},
|
|
635
|
+
this.callLocalServicesErrorCb
|
|
636
|
+
);
|
|
647
637
|
}
|
|
648
638
|
})
|
|
649
639
|
.finally(() => {
|
|
@@ -681,8 +671,7 @@ export default create({
|
|
|
681
671
|
this.identityVerification.visible = false;
|
|
682
672
|
|
|
683
673
|
const queryParams = {
|
|
684
|
-
|
|
685
|
-
templateId: this.getTemplateIdByFormatId(this.currentFormatId),
|
|
674
|
+
...this.queryParams,
|
|
686
675
|
params: this.getPrintParams(),
|
|
687
676
|
token
|
|
688
677
|
};
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
@search="value => cellSearch(value, scope.row, item.field)"
|
|
77
77
|
>
|
|
78
78
|
<a-select-option :key="option.value" :value="option.value" v-for="option in item.editRender.options">
|
|
79
|
-
{{option.label}}
|
|
79
|
+
{{ option.label }}
|
|
80
80
|
</a-select-option>
|
|
81
81
|
</a-select>
|
|
82
82
|
</template>
|
|
@@ -89,7 +89,17 @@
|
|
|
89
89
|
</template>
|
|
90
90
|
</c-grid>
|
|
91
91
|
<div class="bottom-box">
|
|
92
|
-
<a-pagination
|
|
92
|
+
<a-pagination
|
|
93
|
+
v-if="type === 'noEdit'"
|
|
94
|
+
:total="total"
|
|
95
|
+
show-size-changer
|
|
96
|
+
show-quick-jumper
|
|
97
|
+
@change="change"
|
|
98
|
+
:current="page"
|
|
99
|
+
@showSizeChange="showSizeChange"
|
|
100
|
+
:page-size.sync="pageSize"
|
|
101
|
+
size="small"
|
|
102
|
+
/>
|
|
93
103
|
<template v-else>
|
|
94
104
|
<a-button type="primary" style="margin-right: auto" @click="addRow">新增</a-button>
|
|
95
105
|
<span v-show="!isOk" class="tips">请完善表格信息</span>
|
|
@@ -154,10 +164,14 @@ export default create({
|
|
|
154
164
|
},
|
|
155
165
|
colSelectList() {
|
|
156
166
|
return this.columns.filter(v => v.slots?.edit);
|
|
157
|
-
}
|
|
167
|
+
}
|
|
158
168
|
},
|
|
159
169
|
beforeCreate() {
|
|
160
|
-
Vue.use(Select)
|
|
170
|
+
Vue.use(Select)
|
|
171
|
+
.use(Icon)
|
|
172
|
+
.use(Spin)
|
|
173
|
+
.use(Pagination)
|
|
174
|
+
.use(Button);
|
|
161
175
|
},
|
|
162
176
|
components: {
|
|
163
177
|
VNodes: {
|
|
@@ -179,7 +193,8 @@ export default create({
|
|
|
179
193
|
isRepeat: false,
|
|
180
194
|
page: 1, // 配置page是因为,使用时分页触发page没有同步
|
|
181
195
|
isSearch: true,
|
|
182
|
-
rules: {}
|
|
196
|
+
rules: {},
|
|
197
|
+
pageSize: 10
|
|
183
198
|
};
|
|
184
199
|
},
|
|
185
200
|
watch: {
|
|
@@ -194,7 +209,7 @@ export default create({
|
|
|
194
209
|
this.defaultSelecteRow = this.tableData.find(v => v[this.selectAttr] === defaultValue).id;
|
|
195
210
|
this.setDefaultValue = false;
|
|
196
211
|
}
|
|
197
|
-
|
|
212
|
+
|
|
198
213
|
if (this.type === 'edit' && this.tableData.length) {
|
|
199
214
|
this.setValues(this.tableData);
|
|
200
215
|
}
|
|
@@ -274,12 +289,14 @@ export default create({
|
|
|
274
289
|
}
|
|
275
290
|
},
|
|
276
291
|
change(page, pageSize) {
|
|
292
|
+
this.pageSize = pageSize;
|
|
277
293
|
this.$emit('update:fetching', true);
|
|
278
294
|
this.page = page;
|
|
279
295
|
this.$emit('paginationchange', { page, pageSize });
|
|
280
296
|
this.isSearch = true; // 防止mousedown和focus方法都没有触发isSearch为true
|
|
281
297
|
},
|
|
282
298
|
showSizeChange(current, size) {
|
|
299
|
+
this.pageSize = size;
|
|
283
300
|
this.$emit('update:fetching', true);
|
|
284
301
|
this.page = current;
|
|
285
302
|
this.$emit('paginationchange', { page: current, pageSize: size });
|
|
@@ -333,7 +350,7 @@ export default create({
|
|
|
333
350
|
// 校验已经填入数据的行全部值不能为空
|
|
334
351
|
// const effectiveTableData = tableData.filter(v => Object.keys(v).some(k => k !== 'id' && (v[k] !== '' || v[k].length)));
|
|
335
352
|
// const invalidTableData = tableData.filter(v => Object.keys(v).every(k => k !== 'id' && (!v[k]?.length))); // 失效的数据,即新增全部为空的
|
|
336
|
-
|
|
353
|
+
|
|
337
354
|
const effectiveTableData = tableData.filter(v => {
|
|
338
355
|
return Object.keys(v).some(k => {
|
|
339
356
|
if (k == 'id') {
|
|
@@ -341,7 +358,7 @@ export default create({
|
|
|
341
358
|
} else {
|
|
342
359
|
return v[k] || v[k]?.length;
|
|
343
360
|
}
|
|
344
|
-
})
|
|
361
|
+
});
|
|
345
362
|
});
|
|
346
363
|
const invalidTableData = tableData.filter(v => {
|
|
347
364
|
return Object.keys(v).every(k => {
|
|
@@ -350,7 +367,7 @@ export default create({
|
|
|
350
367
|
} else {
|
|
351
368
|
return !v[k]?.length;
|
|
352
369
|
}
|
|
353
|
-
})
|
|
370
|
+
});
|
|
354
371
|
});
|
|
355
372
|
|
|
356
373
|
let isOk = false;
|
|
@@ -426,7 +443,7 @@ export default create({
|
|
|
426
443
|
});
|
|
427
444
|
</script>
|
|
428
445
|
<style lang="less" scoped>
|
|
429
|
-
@deep
|
|
446
|
+
@deep: ~'>>>';
|
|
430
447
|
.nodata-box {
|
|
431
448
|
display: flex;
|
|
432
449
|
justify-content: center;
|
|
@@ -221,6 +221,10 @@ export default create({
|
|
|
221
221
|
type: Boolean,
|
|
222
222
|
default: false
|
|
223
223
|
},
|
|
224
|
+
titleAddCode: {
|
|
225
|
+
type: Boolean,
|
|
226
|
+
default: true // 标题是否加上code
|
|
227
|
+
},
|
|
224
228
|
queryMainTreeData: Function, // 主树请求
|
|
225
229
|
queryLoadChildData: Function, // 懒加载请求
|
|
226
230
|
queryTreeSearch: Function // 检索请求
|
|
@@ -417,6 +421,7 @@ export default create({
|
|
|
417
421
|
data: {
|
|
418
422
|
immediate: true,
|
|
419
423
|
handler() {
|
|
424
|
+
this.handleData();
|
|
420
425
|
this.staticDataInit();
|
|
421
426
|
this.staticDeptAndRoleDataInit();
|
|
422
427
|
const key = { person: 'main', dept: 'dept', role: 'role', multiple: 'main' }[this.selectType];
|
|
@@ -1490,6 +1495,13 @@ export default create({
|
|
|
1490
1495
|
};
|
|
1491
1496
|
return filterHandle(copyData);
|
|
1492
1497
|
}
|
|
1498
|
+
},
|
|
1499
|
+
handleData() {
|
|
1500
|
+
vexutils.searchTree(this.data, item => {
|
|
1501
|
+
if (this.titleAddCode) {
|
|
1502
|
+
item.title = `${item.title}(${item.code})`;
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1493
1505
|
}
|
|
1494
1506
|
}
|
|
1495
1507
|
});
|
|
@@ -166,11 +166,7 @@ export default {
|
|
|
166
166
|
return function(item) {
|
|
167
167
|
if (!item.showTime) return false;
|
|
168
168
|
return {
|
|
169
|
-
defaultValue: [
|
|
170
|
-
format: 'HH:mm:ss'
|
|
171
|
-
}, {
|
|
172
|
-
format: 'HH:mm:ss'
|
|
173
|
-
}]
|
|
169
|
+
defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')]
|
|
174
170
|
};
|
|
175
171
|
};
|
|
176
172
|
}
|
|
@@ -138,21 +138,27 @@
|
|
|
138
138
|
|
|
139
139
|
<div class="date-item val-date-wrap" v-if="item.showDate">
|
|
140
140
|
<a-date-picker
|
|
141
|
-
:disabledDate="
|
|
142
|
-
format="YYYY-MM-DD"
|
|
141
|
+
:disabledDate="current => disabledDatePicker(current, item, 'start')"
|
|
142
|
+
format="YYYY-MM-DD HH:mm:ss"
|
|
143
143
|
v-model="item.start_val"
|
|
144
|
+
:show-time="{
|
|
145
|
+
defaultValue: $moment('00:00:00', 'HH:mm:ss')
|
|
146
|
+
}"
|
|
144
147
|
:placeholder="'请选择'"
|
|
145
148
|
@openChange="handleStartOpenChange($event, item)"
|
|
146
|
-
style="width: 120px"
|
|
149
|
+
style="width: 120px; minWidth: 170px"
|
|
147
150
|
/>
|
|
148
151
|
<a-date-picker
|
|
149
|
-
:disabledDate="
|
|
150
|
-
format="YYYY-MM-DD"
|
|
152
|
+
:disabledDate="current => disabledDatePicker(current, item, 'end')"
|
|
153
|
+
format="YYYY-MM-DD HH:mm:ss"
|
|
151
154
|
:placeholder="'请选择'"
|
|
152
155
|
v-model="item.end_val"
|
|
153
156
|
:open="item.endOpen"
|
|
157
|
+
:show-time="{
|
|
158
|
+
defaultValue: $moment('23:59:59', 'HH:mm:ss')
|
|
159
|
+
}"
|
|
154
160
|
@openChange="handleEndOpenChange($event, item)"
|
|
155
|
-
style="width: 120px"
|
|
161
|
+
style="width: 120px; minWidth: 170px"
|
|
156
162
|
/>
|
|
157
163
|
</div>
|
|
158
164
|
<!-- 生日 -->
|
|
@@ -409,6 +415,9 @@ export default create({
|
|
|
409
415
|
return item.alias || item[useKey];
|
|
410
416
|
};
|
|
411
417
|
},
|
|
418
|
+
$moment() {
|
|
419
|
+
return moment;
|
|
420
|
+
},
|
|
412
421
|
|
|
413
422
|
is_search_professional() {
|
|
414
423
|
return this.source == 'search-professional';
|
|
@@ -621,8 +630,13 @@ export default create({
|
|
|
621
630
|
// searchChildList
|
|
622
631
|
// 大于(BIG),小于 LESS,大于等于BIGEQ,小于等于LESSEQ,等于(IN)
|
|
623
632
|
} else {
|
|
624
|
-
|
|
625
|
-
|
|
633
|
+
let curEnd = item.end_val;
|
|
634
|
+
// 只有YYYY-MM-DD 手动添加HH:mm:ss
|
|
635
|
+
if (curEnd && typeof curEnd === "string" && curEnd.length < 11 && !curEnd.includes(":")) {
|
|
636
|
+
curEnd += " 23:59:59";
|
|
637
|
+
}
|
|
638
|
+
start_val = item.start_val ? moment(item.start_val, 'YYYY-MM-DD HH:mm:ss') : '';
|
|
639
|
+
end_val = item.end_val ? moment(curEnd, 'YYYY-MM-DD HH:mm:ss') : '';
|
|
626
640
|
item.curlimit_date = '';
|
|
627
641
|
}
|
|
628
642
|
|
|
@@ -795,8 +809,8 @@ export default create({
|
|
|
795
809
|
end_val = item.end_val;
|
|
796
810
|
value = item.value;
|
|
797
811
|
} else {
|
|
798
|
-
start_val = item.start_val ? item.start_val.format('YYYY-MM-DD') : '';
|
|
799
|
-
end_val = item.end_val ? item.end_val.format('YYYY-MM-DD') : '';
|
|
812
|
+
start_val = item.start_val ? item.start_val.format('YYYY-MM-DD HH:mm:ss') : '';
|
|
813
|
+
end_val = item.end_val ? item.end_val.format('YYYY-MM-DD HH:mm:ss') : '';
|
|
800
814
|
}
|
|
801
815
|
|
|
802
816
|
let is_custom = this.showCompareField ? item.compare_field == '_custom__input_' : false;
|
|
@@ -1314,6 +1328,29 @@ export default create({
|
|
|
1314
1328
|
// this.$set(item, 'value', '');
|
|
1315
1329
|
reset && this.$set(item, 'value', '');
|
|
1316
1330
|
},
|
|
1331
|
+
disabledDatePicker(current, item, t){
|
|
1332
|
+
if(item.isIllegalField) return true
|
|
1333
|
+
let f = false;
|
|
1334
|
+
if(t=== 'start'){
|
|
1335
|
+
const end_val = item?.end_val;
|
|
1336
|
+
f = end_val && current.valueOf() > end_val.valueOf();
|
|
1337
|
+
} else if(t=== 'end') {
|
|
1338
|
+
const start_val = item?.start_val;
|
|
1339
|
+
f = start_val && current.valueOf() <= start_val.valueOf();
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* 2 过去时间
|
|
1343
|
+
* 3 未来时间
|
|
1344
|
+
*/
|
|
1345
|
+
let type = String(item?.advanceOptionSetting);
|
|
1346
|
+
if(!['2','3'].includes(type)) return f;
|
|
1347
|
+
if(type === '2'){
|
|
1348
|
+
return current >= moment().endOf('day') || f;
|
|
1349
|
+
} else if(type==='3'){
|
|
1350
|
+
return current && current < moment().startOf('day') || f;
|
|
1351
|
+
}
|
|
1352
|
+
return f
|
|
1353
|
+
},
|
|
1317
1354
|
disabledStartDate(start_val) {
|
|
1318
1355
|
const end_val = this.end_val;
|
|
1319
1356
|
if (!start_val || !end_val) {
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
format="YYYY-MM-DD HH:mm:ss"
|
|
241
241
|
v-model="item.DATE.start_val"
|
|
242
242
|
:show-time="{
|
|
243
|
-
|
|
243
|
+
defaultValue: $moment('00:00:00', 'HH:mm:ss')
|
|
244
244
|
}"
|
|
245
245
|
:placeholder="getI18nText('1.1.4.53', '开始时间')"
|
|
246
246
|
style="width: 120px"
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
<a-date-picker
|
|
252
252
|
format="YYYY-MM-DD HH:mm:ss"
|
|
253
253
|
:show-time="{
|
|
254
|
-
|
|
254
|
+
defaultValue: $moment('23:59:59', 'HH:mm:ss')
|
|
255
255
|
}"
|
|
256
256
|
:placeholder="getI18nText('1.9.147', '结束时间')"
|
|
257
257
|
v-model="item.DATE.end_val"
|