@kyfe/hroa-ui 1.0.6 → 1.0.7
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/dist/hroa-ui.common.js +133 -2576
- package/dist/hroa-ui.css +1 -1
- package/dist/hroa-ui.umd.js +133 -2576
- package/dist/hroa-ui.umd.min.js +2 -2
- package/lib/hr-add-list/index.js +1 -1
- package/lib/hr-bottom-button/index.js +1 -1
- package/lib/hr-breadcrumb/index.js +1 -1
- package/lib/hr-button/index.js +1 -1
- package/lib/hr-checkbox/index.js +1 -1
- package/lib/hr-checkbox-group/index.js +1 -1
- package/lib/hr-clipboard/index.js +1 -1
- package/lib/hr-collapse-card/index.js +1 -1
- package/lib/hr-condition-filtrate/index.js +1 -1
- package/lib/hr-condition-filtrate-popup/index.js +1 -1
- package/lib/hr-date-filter/index.css +1 -1
- package/lib/hr-date-filter/index.js +1 -1
- package/lib/hr-dropdown-date/index.css +1 -1
- package/lib/hr-dropdown-date/index.js +1 -1
- package/lib/hr-elasticity-box/index.js +1 -1
- package/lib/hr-elasticity-box-item/index.js +1 -1
- package/lib/hr-emotional-picture/index.js +1 -1
- package/lib/hr-employee-choose/index.js +1 -1
- package/lib/hr-file-list/index.js +1 -1
- package/lib/hr-full-screen/index.js +1 -1
- package/lib/hr-img-list/index.css +1 -1
- package/lib/hr-img-list/index.js +1 -1
- package/lib/hr-info-card/index.js +1 -1
- package/lib/hr-information/index.js +1 -1
- package/lib/hr-license-plate-number/index.js +1 -1
- package/lib/hr-module-card/index.js +1 -1
- package/lib/hr-multiterm-choose/index.css +1 -1
- package/lib/hr-multiterm-choose/index.js +1 -1
- package/lib/hr-no-data/index.js +1 -1
- package/lib/hr-notice-bar/index.js +1 -1
- package/lib/hr-notification-dialog/index.js +1 -1
- package/lib/hr-open-ks/index.js +1 -1
- package/lib/hr-pager/index.js +1 -1
- package/lib/hr-popup/index.js +1 -1
- package/lib/hr-preview-file/index.js +1 -1
- package/lib/hr-radiobox/index.js +1 -1
- package/lib/hr-radiobox-group/index.js +1 -1
- package/lib/hr-rate/index.js +1 -1
- package/lib/hr-reason-textarea/index.js +1 -1
- package/lib/hr-search-input/index.js +1 -1
- package/lib/hr-search-tips/index.js +1 -1
- package/lib/hr-select/index.js +1 -1
- package/lib/hr-select-list/index.js +1 -1
- package/lib/hr-single-choose/index.css +1 -1
- package/lib/hr-single-choose/index.js +1 -1
- package/lib/hr-slide-pager/index.js +1 -1
- package/lib/hr-sort/index.js +1 -1
- package/lib/hr-stack-image/index.js +1 -1
- package/lib/hr-tab-nav/index.js +1 -1
- package/lib/hr-time-picker/index.js +1 -1
- package/lib/hr-view-item/index.js +1 -1
- package/lib/hr-virtual-list/index.js +1 -1
- package/lib/index/index.css +1 -1
- package/lib/index/index.js +2 -2
- package/lib/utils/index.js +1 -1
- package/package.json +12 -9
- package/lib/getJsModule/index.css +0 -1
- package/lib/getJsModule/index.js +0 -9
- package/packages/getJsModule.js +0 -11
- package/packages/hr-add-list/image/add.svg +0 -1
- package/packages/hr-add-list/image/close.svg +0 -1
- package/packages/hr-add-list/index.js +0 -7
- package/packages/hr-add-list/src/index.vue +0 -125
- package/packages/hr-add-list//346/226/260/345/242/236/345/244/232/347/254/224/346/225/260/346/215/256.md +0 -0
- package/packages/hr-bottom-button/index.js +0 -7
- package/packages/hr-bottom-button/src/index.vue +0 -128
- package/packages/hr-breadcrumb/index.js +0 -3
- package/packages/hr-breadcrumb/src/index.vue +0 -87
- package/packages/hr-breadcrumb//351/235/242/345/214/205/345/261/221.md +0 -0
- package/packages/hr-button/index.js +0 -13
- package/packages/hr-button/src/hr-button.vue +0 -39
- package/packages/hr-checkbox/index.js +0 -8
- package/packages/hr-checkbox/src/active-icon.png +0 -0
- package/packages/hr-checkbox/src/checkbox-group.vue +0 -74
- package/packages/hr-checkbox/src/checkbox.vue +0 -226
- package/packages/hr-checkbox/src/data.js +0 -46
- package/packages/hr-checkbox//345/244/215/351/200/211/346/241/206-/345/215/225/351/200/211/346/241/206.md +0 -0
- package/packages/hr-checkbox-group/index.js +0 -8
- package/packages/hr-clipboard/index.js +0 -8
- package/packages/hr-clipboard/src/index.vue +0 -46
- package/packages/hr-clipboard/src/util.js +0 -9
- package/packages/hr-collapse-card/index.js +0 -3
- package/packages/hr-collapse-card/src/images/icon_up.png +0 -0
- package/packages/hr-collapse-card/src/index.vue +0 -151
- package/packages/hr-collapse-card//346/212/230/345/217/240/345/215/241/347/211/207.md +0 -0
- package/packages/hr-condition-filtrate/enum/index.js +0 -11
- package/packages/hr-condition-filtrate/image/arrow-right.png +0 -0
- package/packages/hr-condition-filtrate/index.js +0 -7
- package/packages/hr-condition-filtrate/src/employee-choose/index.vue +0 -101
- package/packages/hr-condition-filtrate/src/index.vue +0 -246
- package/packages/hr-condition-filtrate/src/multiterm-choose/index.vue +0 -167
- package/packages/hr-condition-filtrate/src/org-tree-choose/index.vue +0 -102
- package/packages/hr-condition-filtrate/src/single-choose/index.vue +0 -144
- package/packages/hr-condition-filtrate/src/text-input/index.vue +0 -60
- package/packages/hr-condition-filtrate/src/time-selector/date-range-select.vue +0 -154
- package/packages/hr-condition-filtrate/src/time-selector/images/date-icon.png +0 -0
- package/packages/hr-condition-filtrate/src/time-selector/index.vue +0 -380
- package/packages/hr-condition-filtrate/src/time-selector/utils/constant.js +0 -30
- package/packages/hr-condition-filtrate/src/time-selector/utils/tools.js +0 -213
- package/packages/hr-condition-filtrate-popup/index.js +0 -7
- package/packages/hr-condition-filtrate-popup/src/index.vue +0 -236
- package/packages/hr-date-filter/index.js +0 -7
- package/packages/hr-date-filter/src/date-select.vue +0 -153
- package/packages/hr-date-filter/src/index.vue +0 -243
- package/packages/hr-date-filter/src/style.less +0 -130
- package/packages/hr-date-filter/src/utils.js +0 -109
- package/packages/hr-dropdown-date/index.js +0 -7
- package/packages/hr-dropdown-date/src/calendar/calendar.js +0 -128
- package/packages/hr-dropdown-date/src/calendar/calendar.vue +0 -485
- package/packages/hr-dropdown-date/src/calendar/images/arrow@3x.png +0 -0
- package/packages/hr-dropdown-date/src/calendar/index.js +0 -5
- package/packages/hr-dropdown-date/src/date-picker/date-range-select.vue +0 -92
- package/packages/hr-dropdown-date/src/date-picker/month-range-select.vue +0 -128
- package/packages/hr-dropdown-date/src/date-picker/month-select.vue +0 -98
- package/packages/hr-dropdown-date/src/date-picker/style.less +0 -120
- package/packages/hr-dropdown-date/src/date-picker/utils.js +0 -109
- package/packages/hr-dropdown-date/src/index.vue +0 -482
- package/packages/hr-dropdown-date/src/week.js +0 -194
- package/packages/hr-elasticity-box/index.js +0 -7
- package/packages/hr-elasticity-box/src/elasticity-box-item.vue +0 -61
- package/packages/hr-elasticity-box/src/index.vue +0 -52
- package/packages/hr-elasticity-box-item/index.js +0 -7
- package/packages/hr-emotional-picture/index.js +0 -7
- package/packages/hr-emotional-picture/src/index.vue +0 -66
- package/packages/hr-emotional-picture//346/203/205/346/204/237/345/233/276/347/273/204/344/273/266.md +0 -0
- package/packages/hr-employee-choose/index.js +0 -7
- package/packages/hr-employee-choose/src/image/arrow-right.png +0 -0
- package/packages/hr-employee-choose/src/index.vue +0 -119
- package/packages/hr-file-list/index.js +0 -3
- package/packages/hr-file-list/src/file-type/other.vue +0 -45
- package/packages/hr-file-list/src/file-type/picture.vue +0 -38
- package/packages/hr-file-list/src/file-type/video.vue +0 -60
- package/packages/hr-file-list/src/index.vue +0 -246
- package/packages/hr-file-list/src/utils/enum.js +0 -95
- package/packages/hr-file-list/src/utils/fun.js +0 -16
- package/packages/hr-file-list//346/226/207/344/273/266/345/210/227/350/241/250.md +0 -0
- package/packages/hr-full-screen/index.js +0 -7
- package/packages/hr-full-screen/src/index.vue +0 -117
- package/packages/hr-img-list/index.js +0 -3
- package/packages/hr-img-list/src/index.vue +0 -144
- package/packages/hr-img-list//345/244/232/345/233/276/345/210/227/350/241/250.md +0 -0
- package/packages/hr-info-card/index.js +0 -7
- package/packages/hr-info-card/src/index.vue +0 -67
- package/packages/hr-information/index.js +0 -7
- package/packages/hr-information/src/index.vue +0 -72
- package/packages/hr-license-plate-number/index.js +0 -8
- package/packages/hr-license-plate-number/src/enum.js +0 -44
- package/packages/hr-license-plate-number/src/index.vue +0 -164
- package/packages/hr-license-plate-number/src/vnp-keyboard.vue +0 -182
- package/packages/hr-license-plate-number//350/275/246/347/211/214/345/217/267/345/274/271/347/252/227.md +0 -0
- package/packages/hr-module-card/index.js +0 -13
- package/packages/hr-module-card/src/index.vue +0 -132
- package/packages/hr-module-card//346/250/241/345/235/227/345/215/241/347/211/207/347/273/204/344/273/266.md +0 -29
- package/packages/hr-multiterm-choose/index.js +0 -8
- package/packages/hr-multiterm-choose/src/active-icon.png +0 -0
- package/packages/hr-multiterm-choose/src/index.vue +0 -224
- package/packages/hr-multiterm-choose//345/244/232/351/200/211/346/241/206.md +0 -0
- package/packages/hr-no-data/index.js +0 -7
- package/packages/hr-no-data/src/index.vue +0 -48
- package/packages/hr-notice-bar/index.js +0 -7
- package/packages/hr-notice-bar/src/bem.js +0 -38
- package/packages/hr-notice-bar/src/index.js +0 -52
- package/packages/hr-notice-bar//351/200/232/347/237/245/346/240/217/347/273/204/344/273/266.md +0 -3
- package/packages/hr-notification-dialog/images/header.png +0 -0
- package/packages/hr-notification-dialog/index.js +0 -7
- package/packages/hr-notification-dialog/src/index.vue +0 -293
- package/packages/hr-notification-dialog//345/274/271/347/252/227/346/217/220/347/244/272/347/273/204/344/273/266.md +0 -0
- package/packages/hr-open-ks/index.js +0 -7
- package/packages/hr-open-ks/src/icon.png +0 -0
- package/packages/hr-open-ks/src/index.vue +0 -97
- package/packages/hr-open-ks/src/util.js +0 -31
- package/packages/hr-pager/images/next-page.png +0 -0
- package/packages/hr-pager/images/prev-page.png +0 -0
- package/packages/hr-pager/index.js +0 -7
- package/packages/hr-pager/src/index.vue +0 -120
- package/packages/hr-pager//346/214/211/351/222/256/347/277/273/351/241/265/347/273/204/344/273/266.md +0 -0
- package/packages/hr-popup/index.js +0 -3
- package/packages/hr-popup/src/index.vue +0 -64
- package/packages/hr-popup//345/274/271/345/207/272/345/261/202.md +0 -0
- package/packages/hr-preview-file/index.js +0 -7
- package/packages/hr-preview-file/src/index.vue +0 -58
- package/packages/hr-preview-file/src/util.js +0 -50
- package/packages/hr-radiobox/index.js +0 -8
- package/packages/hr-radiobox/src/data.js +0 -46
- package/packages/hr-radiobox/src/radiobox-group.vue +0 -64
- package/packages/hr-radiobox/src/radiobox.vue +0 -191
- package/packages/hr-radiobox-group/index.js +0 -8
- package/packages/hr-rate/index.js +0 -7
- package/packages/hr-rate/src/index.vue +0 -42
- package/packages/hr-rate//350/257/204/345/210/206/347/273/204/344/273/266/357/274/210/345/270/246/346/226/207/346/241/210/357/274/211.md +0 -0
- package/packages/hr-reason-textarea/index.js +0 -7
- package/packages/hr-reason-textarea/src/index.vue +0 -128
- package/packages/hr-search-input/image/input-close-icon.png +0 -0
- package/packages/hr-search-input/image/search-icon.png +0 -0
- package/packages/hr-search-input/index.js +0 -8
- package/packages/hr-search-input/src/index.vue +0 -144
- package/packages/hr-search-tips/index.js +0 -3
- package/packages/hr-search-tips/src/index.vue +0 -213
- package/packages/hr-search-tips//350/277/234/347/250/213/346/250/241/347/263/212/346/220/234/347/264/242.md +0 -0
- package/packages/hr-select/index.js +0 -7
- package/packages/hr-select/src/index.vue +0 -41
- package/packages/hr-select-list/index.js +0 -3
- package/packages/hr-select-list/src/index.vue +0 -214
- package/packages/hr-select-list//344/270/213/346/213/211/351/200/211/346/213/251(/351/273/230/350/256/244/345/244/232/351/200/211).md +0 -0
- package/packages/hr-single-choose/index.js +0 -8
- package/packages/hr-single-choose/src/index.vue +0 -195
- package/packages/hr-single-choose//345/215/225/351/200/211/346/241/206.md +0 -0
- package/packages/hr-slide-pager/guide/image/turn-left.png +0 -0
- package/packages/hr-slide-pager/guide/image/turn-right.png +0 -0
- package/packages/hr-slide-pager/guide/index.vue +0 -59
- package/packages/hr-slide-pager/guide//346/226/260/346/211/213/346/214/207/345/274/225.md +0 -0
- package/packages/hr-slide-pager/index.js +0 -7
- package/packages/hr-slide-pager/src/index.vue +0 -374
- package/packages/hr-slide-pager//346/273/221/345/212/250/347/277/273/351/241/265/347/273/204/344/273/266.md +0 -0
- package/packages/hr-sort/index.js +0 -3
- package/packages/hr-sort/src/main.vue +0 -133
- package/packages/hr-sort//346/216/222/345/272/217.md +0 -0
- package/packages/hr-stack-image/index.js +0 -3
- package/packages/hr-stack-image/src/main.vue +0 -77
- package/packages/hr-stack-image//345/261/202/345/217/240/345/233/276/347/211/207/347/273/204/344/273/266.md +0 -0
- package/packages/hr-tab-nav/index.js +0 -8
- package/packages/hr-tab-nav/src/index.vue +0 -190
- package/packages/hr-time-picker/index.js +0 -3
- package/packages/hr-time-picker/src/index.vue +0 -85
- package/packages/hr-time-picker//346/227/266/351/227/264/351/200/211/346/213/251/345/231/250.md +0 -0
- package/packages/hr-view-item/index.js +0 -13
- package/packages/hr-view-item/src/index.vue +0 -89
- package/packages/hr-view-item//350/241/250/345/215/225/351/241/271item/345/261/225/347/244/272.md +0 -0
- package/packages/hr-virtual-list/index.js +0 -7
- package/packages/hr-virtual-list/src/cc-item.vue +0 -105
- package/packages/hr-virtual-list/src/index.vue +0 -227
- package/packages/hr-virtual-list//350/231/232/346/213/237/345/210/227/350/241/250.md +0 -0
- package/packages/index.js +0 -23
- package/packages/utils/directive/common.js +0 -0
- package/packages/utils/directive/index.js +0 -2
- package/packages/utils/directive/specific.js +0 -54
- package/packages/utils/index.js +0 -7
- package/packages/utils/tool/common.js +0 -65
- package/packages/utils/tool/index.js +0 -2
- package/packages/utils/tool/specific.js +0 -0
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ks-popup v-model="popupShow"
|
|
3
|
-
@click-overlay="onMaskClose"
|
|
4
|
-
:close-on-click-overlay="this.confirmCountDown > 0 ? false : closeOnClickOverlay"
|
|
5
|
-
:get-container="getContainer"
|
|
6
|
-
:overlay="overlay"
|
|
7
|
-
class="popup">
|
|
8
|
-
<transition name="van-fade">
|
|
9
|
-
<div v-show="show"
|
|
10
|
-
class="notification-popup"
|
|
11
|
-
@click.stop>
|
|
12
|
-
<!-- 顶部图片 -->
|
|
13
|
-
<div class="notification-popup-header"
|
|
14
|
-
v-if="showHeader">
|
|
15
|
-
<!-- 插槽内容 -->
|
|
16
|
-
<template v-if="$slots.top">
|
|
17
|
-
<slot name="top"></slot>
|
|
18
|
-
</template>
|
|
19
|
-
<img v-else
|
|
20
|
-
:src="headerImg"
|
|
21
|
-
alt="img">
|
|
22
|
-
</div>
|
|
23
|
-
<!-- 中间内容 -->
|
|
24
|
-
<div :class="['notification-popup-content', {'showRadio': !showConfirmBtn && !showCancelBtn && !$slots.btn && showHeader, 'showRadio-t': !showHeader, 'showBorder': !$slots.default}]">
|
|
25
|
-
<!-- 插槽内容 -->
|
|
26
|
-
<template v-if="$slots.default">
|
|
27
|
-
<slot></slot>
|
|
28
|
-
</template>
|
|
29
|
-
<!-- 默认样式内容 -->
|
|
30
|
-
<template v-else>
|
|
31
|
-
<div v-if="contentHeader"
|
|
32
|
-
class="notification-popup-content-header">{{contentHeader}}</div>
|
|
33
|
-
<div v-if="contentText"
|
|
34
|
-
class="notification-popup-content-content"
|
|
35
|
-
:style="{textIndent: textIndent}">{{contentText}}</div>
|
|
36
|
-
</template>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="notification-popup-bottom"
|
|
39
|
-
v-if="showConfirmBtn || showCancelBtn || $slots.btn">
|
|
40
|
-
<!-- 按钮插槽内容 -->
|
|
41
|
-
<template v-if="$slots.btn">
|
|
42
|
-
<slot name="btn"></slot>
|
|
43
|
-
</template>
|
|
44
|
-
<!-- 按钮默认样式 -->
|
|
45
|
-
<template v-else>
|
|
46
|
-
<ks-button v-if="showCancelBtn"
|
|
47
|
-
type="default"
|
|
48
|
-
size="large"
|
|
49
|
-
@click="onCancel"
|
|
50
|
-
:disabled="cancelCountDown > 0"
|
|
51
|
-
block>{{cancelText}}</ks-button>
|
|
52
|
-
<ks-button v-if="showConfirmBtn"
|
|
53
|
-
:class="{'margin-left': showCancelBtn}"
|
|
54
|
-
type="primary"
|
|
55
|
-
size="large"
|
|
56
|
-
@click="onConfirm"
|
|
57
|
-
:disabled="confirmCountDown > 0"
|
|
58
|
-
block>{{confirmText}}</ks-button>
|
|
59
|
-
</template>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
</transition>
|
|
63
|
-
</ks-popup>
|
|
64
|
-
</template>
|
|
65
|
-
|
|
66
|
-
<script>
|
|
67
|
-
export default {
|
|
68
|
-
name: 'HrNotificationDialog',
|
|
69
|
-
model: {
|
|
70
|
-
prop: 'show',
|
|
71
|
-
event: 'onUpdate'
|
|
72
|
-
},
|
|
73
|
-
props: {
|
|
74
|
-
// 判断是否显示
|
|
75
|
-
show: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: false
|
|
78
|
-
},
|
|
79
|
-
// 判断是否显示顶部区域
|
|
80
|
-
showHeader: {
|
|
81
|
-
type: Boolean,
|
|
82
|
-
default: true
|
|
83
|
-
},
|
|
84
|
-
// 顶部图片
|
|
85
|
-
headerImg: {
|
|
86
|
-
type: String,
|
|
87
|
-
default: require('../images/header.png')
|
|
88
|
-
},
|
|
89
|
-
// 内容标题
|
|
90
|
-
contentHeader: {
|
|
91
|
-
type: String
|
|
92
|
-
},
|
|
93
|
-
// 内容
|
|
94
|
-
contentText: {
|
|
95
|
-
type: String
|
|
96
|
-
},
|
|
97
|
-
// 判断是否显示确认弹窗
|
|
98
|
-
showConfirmBtn: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: true
|
|
101
|
-
},
|
|
102
|
-
// 判断是否显示取消弹窗
|
|
103
|
-
showCancelBtn: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
default: true
|
|
106
|
-
},
|
|
107
|
-
// 确定按钮默认文案
|
|
108
|
-
confirmBtnText: {
|
|
109
|
-
type: String,
|
|
110
|
-
default: '确认'
|
|
111
|
-
},
|
|
112
|
-
// 取消按钮默认文案
|
|
113
|
-
cancelBtnText: {
|
|
114
|
-
type: String,
|
|
115
|
-
default: '取消'
|
|
116
|
-
},
|
|
117
|
-
// 判断是否显示确认按钮的倒计时
|
|
118
|
-
showConfirmCountDown: {
|
|
119
|
-
type: Number,
|
|
120
|
-
default: 0
|
|
121
|
-
},
|
|
122
|
-
// 判断是否显示取消按钮的倒计时
|
|
123
|
-
showCancelCountDown: {
|
|
124
|
-
type: Number,
|
|
125
|
-
default: 0
|
|
126
|
-
},
|
|
127
|
-
// 内容首行缩进
|
|
128
|
-
textIndent: {
|
|
129
|
-
type: String,
|
|
130
|
-
default: '1em'
|
|
131
|
-
},
|
|
132
|
-
// 点击遮罩层关闭
|
|
133
|
-
closeOnClickOverlay: {
|
|
134
|
-
type: Boolean,
|
|
135
|
-
default: true
|
|
136
|
-
},
|
|
137
|
-
// 挂载元素位置
|
|
138
|
-
getContainer: {
|
|
139
|
-
type: [String, Function],
|
|
140
|
-
},
|
|
141
|
-
// 判断是否显示遮罩层
|
|
142
|
-
overlay: {
|
|
143
|
-
type: Boolean,
|
|
144
|
-
default: true
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
data () {
|
|
148
|
-
return {
|
|
149
|
-
popupShow: false, // 弹窗是否显示
|
|
150
|
-
confirmCountDown: 0, // 确认按钮倒计时
|
|
151
|
-
cancelCountDown: 0, // 取消按钮倒计时
|
|
152
|
-
timer: null, // 定时器
|
|
153
|
-
boxWidth: '' // 容器宽度
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
computed: {
|
|
157
|
-
// 确认按钮
|
|
158
|
-
confirmText () {
|
|
159
|
-
return this.confirmCountDown > 0 ? `${this.confirmBtnText}(${this.confirmCountDown})` : this.confirmBtnText
|
|
160
|
-
},
|
|
161
|
-
// 取消按钮
|
|
162
|
-
cancelText () {
|
|
163
|
-
return this.cancelCountDown > 0 ? `${this.cancelBtnText}(${this.cancelCountDown})` : this.cancelBtnText
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
watch: {
|
|
167
|
-
show: {
|
|
168
|
-
handler (val) {
|
|
169
|
-
if (val) {
|
|
170
|
-
if (this.showCancelCountDown && this.showCancelCountDown > 0) {
|
|
171
|
-
this.cancelCountDown = this.showCancelCountDown
|
|
172
|
-
// 启动定时器
|
|
173
|
-
this.startCountDown('cancelCountDown')
|
|
174
|
-
}
|
|
175
|
-
if (this.showConfirmCountDown && this.showConfirmCountDown > 0) {
|
|
176
|
-
this.confirmCountDown = this.showConfirmCountDown
|
|
177
|
-
// 启动定时器
|
|
178
|
-
this.startCountDown('confirmCountDown')
|
|
179
|
-
}
|
|
180
|
-
} else {
|
|
181
|
-
if (this.timer) {
|
|
182
|
-
this.clearTimer()
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
this.popupShow = val;
|
|
186
|
-
},
|
|
187
|
-
immediate: true
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
methods: {
|
|
191
|
-
/**
|
|
192
|
-
* 清除定时器
|
|
193
|
-
*/
|
|
194
|
-
clearTimer () {
|
|
195
|
-
clearInterval(this.timer)
|
|
196
|
-
this.timer = null
|
|
197
|
-
},
|
|
198
|
-
/**
|
|
199
|
-
* 启动定时器
|
|
200
|
-
*/
|
|
201
|
-
startCountDown (name) {
|
|
202
|
-
this.timer = setInterval(() => {
|
|
203
|
-
this[name]--
|
|
204
|
-
if (this[name] <= 0) {
|
|
205
|
-
this.clearTimer()
|
|
206
|
-
}
|
|
207
|
-
}, 1000)
|
|
208
|
-
},
|
|
209
|
-
/**
|
|
210
|
-
* 确认
|
|
211
|
-
*/
|
|
212
|
-
onConfirm () {
|
|
213
|
-
this.$emit('onConfirm')
|
|
214
|
-
},
|
|
215
|
-
/**
|
|
216
|
-
* 取消
|
|
217
|
-
*/
|
|
218
|
-
onCancel () {
|
|
219
|
-
this.$emit('onCancel')
|
|
220
|
-
},
|
|
221
|
-
/**
|
|
222
|
-
* 点击幕布取消
|
|
223
|
-
*/
|
|
224
|
-
onMaskClose () {
|
|
225
|
-
// 如果还在倒计时 则不关闭
|
|
226
|
-
if (this.confirmCountDown > 0) return
|
|
227
|
-
this.$emit('onMask')
|
|
228
|
-
if (this.closeOnClickOverlay) {
|
|
229
|
-
this.$emit('onUpdate', false)
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
</script>
|
|
235
|
-
|
|
236
|
-
<style lang="less" scoped>
|
|
237
|
-
@radiusSize: 12px;
|
|
238
|
-
@radius: 0 0 @radiusSize @radiusSize;
|
|
239
|
-
.popup {
|
|
240
|
-
background-color: transparent;
|
|
241
|
-
top: 45%;
|
|
242
|
-
width: calc(100% - 80px);
|
|
243
|
-
}
|
|
244
|
-
.notification-popup {
|
|
245
|
-
box-sizing: border-box;
|
|
246
|
-
&-header {
|
|
247
|
-
height: 88px;
|
|
248
|
-
img {
|
|
249
|
-
width: 100%;
|
|
250
|
-
height: 100%;
|
|
251
|
-
// vertical-align: middle;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
&-content {
|
|
255
|
-
padding: 20px;
|
|
256
|
-
background: #ffffff;
|
|
257
|
-
line-height: 22px;
|
|
258
|
-
&.showRadio {
|
|
259
|
-
border-radius: @radius;
|
|
260
|
-
}
|
|
261
|
-
&.showRadio-t {
|
|
262
|
-
border-radius: @radiusSize @radiusSize 0 0;
|
|
263
|
-
}
|
|
264
|
-
// 不加这个内容content区域上下会有未知的横线
|
|
265
|
-
&.showBorder {
|
|
266
|
-
border-top: 1px solid transparent;
|
|
267
|
-
}
|
|
268
|
-
&-header {
|
|
269
|
-
text-align: center;
|
|
270
|
-
font-size: 18px;
|
|
271
|
-
color: #1b2240;
|
|
272
|
-
margin-bottom: 12px;
|
|
273
|
-
font-weight: 500;
|
|
274
|
-
}
|
|
275
|
-
&-content {
|
|
276
|
-
font-size: 16px;
|
|
277
|
-
color: #1a2242;
|
|
278
|
-
font-size: 16px;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
&-bottom {
|
|
282
|
-
// 不加这个内容content区域上下会有未知的横线
|
|
283
|
-
border-top: 1px solid transparent;
|
|
284
|
-
padding: 0 20px 20px;
|
|
285
|
-
border-radius: @radius;
|
|
286
|
-
background: #ffffff;
|
|
287
|
-
display: flex;
|
|
288
|
-
.margin-left {
|
|
289
|
-
margin-left: 15px;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
</style>
|
|
File without changes
|
|
Binary file
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import icon from './icon.png'
|
|
3
|
-
import {
|
|
4
|
-
openSession,
|
|
5
|
-
openProfile
|
|
6
|
-
} from './util.js'
|
|
7
|
-
export default {
|
|
8
|
-
name: 'HrOpenKS',
|
|
9
|
-
props: {
|
|
10
|
-
name: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: ''
|
|
13
|
-
},
|
|
14
|
-
num: {
|
|
15
|
-
type: [String, Number],
|
|
16
|
-
default: ''
|
|
17
|
-
},
|
|
18
|
-
color: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: 'inherit'
|
|
21
|
-
},
|
|
22
|
-
size: {
|
|
23
|
-
type: [String, Number],
|
|
24
|
-
default: '12'
|
|
25
|
-
},
|
|
26
|
-
imgSize: {
|
|
27
|
-
type: [String, Number],
|
|
28
|
-
default: '14'
|
|
29
|
-
},
|
|
30
|
-
// 模块形式导入
|
|
31
|
-
icon: {
|
|
32
|
-
default: icon
|
|
33
|
-
},
|
|
34
|
-
// chat聊天窗 / profile信息卡
|
|
35
|
-
type: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: 'chat'
|
|
38
|
-
},
|
|
39
|
-
marginLeft: {
|
|
40
|
-
type: [String, Number],
|
|
41
|
-
default: '4'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
open () {
|
|
46
|
-
if (!this.num) return window.vant.Toast('无效的工号')
|
|
47
|
-
|
|
48
|
-
const map = {
|
|
49
|
-
'chat': openSession,
|
|
50
|
-
'profile': openProfile
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const fn = map[this.type]
|
|
54
|
-
|
|
55
|
-
if (fn === void 0) return window.vant.Toast('请传入正确的打开方式 chat/profile')
|
|
56
|
-
|
|
57
|
-
fn(this.num)
|
|
58
|
-
|
|
59
|
-
this.$emit('click', {
|
|
60
|
-
name: this.name,
|
|
61
|
-
num: this.num,
|
|
62
|
-
})
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
render () {
|
|
66
|
-
const defaultDom = () => {
|
|
67
|
-
return (
|
|
68
|
-
<div class="default-class">
|
|
69
|
-
<div style={{ fontSize: `${this.size}px`, color: this.color }}>{this.name}</div>
|
|
70
|
-
<div style={{ width: `${this.imgSize}px`, height: `${this.imgSize}px`, marginLeft: `${this.marginLeft}px` }} class="openks-img">
|
|
71
|
-
<img width={this.imgSize}
|
|
72
|
-
height={this.imgSize}
|
|
73
|
-
src={this.icon} />
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
)
|
|
77
|
-
}
|
|
78
|
-
return (<div onClick={this.open.bind(this)} class="openks">
|
|
79
|
-
|
|
80
|
-
{this.$slots.default ? this.$slots.default : defaultDom()}
|
|
81
|
-
|
|
82
|
-
</div>)
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
<style lang="less" scoped>
|
|
87
|
-
.openks {
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
.default-class {
|
|
90
|
-
display: flex;
|
|
91
|
-
align-items: center;
|
|
92
|
-
.openks-img {
|
|
93
|
-
font-size: 0;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
</style>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description: 打开用户信息聊天
|
|
3
|
-
* @param {String} num 工号
|
|
4
|
-
*/
|
|
5
|
-
export async function openSession (num) {
|
|
6
|
-
try {
|
|
7
|
-
const res = await window.ksui.http('iaa.user.getOpenId', 10184, { employeeNumberList: [num] })
|
|
8
|
-
window.ks.callFunc({
|
|
9
|
-
method: 'openSession',
|
|
10
|
-
params: { sessionId: res[num] }
|
|
11
|
-
})
|
|
12
|
-
} catch (err) {
|
|
13
|
-
console.log(`🚀 ~ openSession ~ err:`, err)
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @description: 打开用户详情页面
|
|
19
|
-
* @param {String} num 工号
|
|
20
|
-
*/
|
|
21
|
-
export async function openProfile (num) {
|
|
22
|
-
try {
|
|
23
|
-
const res = await window.ksui.http('iaa.user.getOpenId', 10184, { employeeNumberList: [num] })
|
|
24
|
-
window.ks.callFunc({
|
|
25
|
-
method: 'openProfile',
|
|
26
|
-
params: { userId: res[num] }
|
|
27
|
-
})
|
|
28
|
-
} catch (err) {
|
|
29
|
-
console.log(`🚀 ~ openProfile ~ err:`, err)
|
|
30
|
-
}
|
|
31
|
-
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="hr-pager"
|
|
3
|
-
v-if="ids && ids.length">
|
|
4
|
-
<img @click="prevPage"
|
|
5
|
-
class="prev"
|
|
6
|
-
v-if="!prevDisabled"
|
|
7
|
-
src="../images/prev-page.png">
|
|
8
|
-
<img @click="nextPage"
|
|
9
|
-
class="next"
|
|
10
|
-
v-if="!nextDisabled"
|
|
11
|
-
src="../images/next-page.png">
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: 'hr-pager', // 按钮分页组件
|
|
18
|
-
props: {
|
|
19
|
-
currentId: {
|
|
20
|
-
type: [String, Number],
|
|
21
|
-
default: ''
|
|
22
|
-
},
|
|
23
|
-
ids: {
|
|
24
|
-
type: [Array],
|
|
25
|
-
default: () => []
|
|
26
|
-
},
|
|
27
|
-
// 切换上下周周报时是否冻结分页器,用于保留当前分页id
|
|
28
|
-
isFreeze: {
|
|
29
|
-
default: false
|
|
30
|
-
},
|
|
31
|
-
// 是否可以切换分页的钩子,为true可切换,为false不可切换
|
|
32
|
-
canTurnPageFn: {
|
|
33
|
-
type: Function,
|
|
34
|
-
default () {
|
|
35
|
-
return () => true
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
data () {
|
|
40
|
-
return {
|
|
41
|
-
currentIndex: 0,
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
watch: {
|
|
45
|
-
currentId: {
|
|
46
|
-
handler () {
|
|
47
|
-
// 切换上下周周报时,冻结分页器后不响应id变化处理
|
|
48
|
-
if (this.ids.length && !this.isFreeze) {
|
|
49
|
-
this.currentIndex = this.ids.findIndex(v => +v === +this.currentId)
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
immediate: true
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
computed: {
|
|
56
|
-
prevDisabled () {
|
|
57
|
-
return this.currentIndex <= 0
|
|
58
|
-
},
|
|
59
|
-
nextDisabled () {
|
|
60
|
-
return this.currentIndex >= this.ids.length - 1
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
methods: {
|
|
64
|
-
/**
|
|
65
|
-
* @description 校验是否可切换分页钩子
|
|
66
|
-
* @returns {Boolean} true-禁止切换 false-可切换
|
|
67
|
-
*/
|
|
68
|
-
async isLimitSwitchPage () {
|
|
69
|
-
// 钩子存在,并且不可切换分页
|
|
70
|
-
if (this.canTurnPageFn && typeof this.canTurnPageFn === 'function') {
|
|
71
|
-
let canSwitchPage = await this.canTurnPageFn()
|
|
72
|
-
if (!canSwitchPage) {
|
|
73
|
-
return true
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
async nextPage () {
|
|
78
|
-
// 校验切分页钩子,判断是否可切换分页
|
|
79
|
-
let isLimitSwitch = await this.isLimitSwitchPage()
|
|
80
|
-
if (isLimitSwitch || this.nextDisabled) {
|
|
81
|
-
return
|
|
82
|
-
}
|
|
83
|
-
this.currentIndex++
|
|
84
|
-
this.$emit('turnPage', this.ids[this.currentIndex])
|
|
85
|
-
},
|
|
86
|
-
async prevPage () {
|
|
87
|
-
// 校验切分页钩子,判断是否可切换分页
|
|
88
|
-
let isLimitSwitch = await this.isLimitSwitchPage()
|
|
89
|
-
if (isLimitSwitch || this.prevDisabled) {
|
|
90
|
-
return
|
|
91
|
-
}
|
|
92
|
-
this.currentIndex--
|
|
93
|
-
this.$emit('turnPage', this.ids[this.currentIndex])
|
|
94
|
-
},
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
</script>
|
|
98
|
-
|
|
99
|
-
<style lang="less" scoped>
|
|
100
|
-
.hr-pager {
|
|
101
|
-
user-select: none;
|
|
102
|
-
position: fixed;
|
|
103
|
-
top: 45%;
|
|
104
|
-
left: 0;
|
|
105
|
-
width: 100%;
|
|
106
|
-
box-sizing: border-box;
|
|
107
|
-
padding: 0 30px;
|
|
108
|
-
> img {
|
|
109
|
-
position: absolute;
|
|
110
|
-
width: 48px;
|
|
111
|
-
height: 48px;
|
|
112
|
-
}
|
|
113
|
-
.prev {
|
|
114
|
-
left: 14px;
|
|
115
|
-
}
|
|
116
|
-
.next {
|
|
117
|
-
right: 14px;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
</style>
|
|
File without changes
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="hr-popup">
|
|
3
|
-
<ks-popup v-model="showPopup"
|
|
4
|
-
v-bind="$attrs"
|
|
5
|
-
class="hr-fe-together-build-hr-popup"
|
|
6
|
-
:style="popupStyle"
|
|
7
|
-
@close="close">
|
|
8
|
-
<div class="title"
|
|
9
|
-
v-if="title">
|
|
10
|
-
{{title}}
|
|
11
|
-
</div>
|
|
12
|
-
<slot></slot>
|
|
13
|
-
</ks-popup>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
export default {
|
|
20
|
-
name: 'HrPopup',
|
|
21
|
-
props: {
|
|
22
|
-
show: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false
|
|
25
|
-
},
|
|
26
|
-
title: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: ''
|
|
29
|
-
},
|
|
30
|
-
popupStyle: {
|
|
31
|
-
type: [String, Object],
|
|
32
|
-
default: 'border-radius: 10px 10px 0 0'
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
data () {
|
|
36
|
-
return {
|
|
37
|
-
showPopup: false
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
watch: {
|
|
41
|
-
show (val) {
|
|
42
|
-
this.showPopup = val
|
|
43
|
-
},
|
|
44
|
-
immediate: true
|
|
45
|
-
},
|
|
46
|
-
methods: {
|
|
47
|
-
close () {
|
|
48
|
-
this.$emit('close')
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
</script>
|
|
53
|
-
<style lang="less">
|
|
54
|
-
.hr-fe-together-build-hr-popup {
|
|
55
|
-
.title {
|
|
56
|
-
line-height: 16px;
|
|
57
|
-
padding: 16px;
|
|
58
|
-
color: #03050d;
|
|
59
|
-
font-size: 16px;
|
|
60
|
-
font-weight: bold;
|
|
61
|
-
border-bottom: 0.5px solid #ebedf5;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
</style>
|
|
File without changes
|