@kyfe/hroa-ui 1.0.5 → 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 +2927 -2545
- package/dist/hroa-ui.css +1 -1
- package/dist/hroa-ui.umd.js +2927 -2545
- package/dist/hroa-ui.umd.min.js +2 -2
- package/dist/img/header.7e31b1d5.png +0 -0
- 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.css +1 -0
- package/lib/hr-checkbox/index.js +1 -0
- package/lib/hr-checkbox-group/index.css +1 -0
- package/lib/hr-checkbox-group/index.js +1 -0
- 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 -0
- package/lib/hr-date-filter/index.js +1 -0
- 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.css +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.css +1 -0
- package/lib/hr-notification-dialog/index.js +1 -0
- package/lib/hr-open-ks/index.js +1 -1
- package/lib/hr-pager/index.css +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.css +1 -0
- package/lib/hr-radiobox/index.js +1 -0
- package/lib/hr-radiobox-group/index.css +1 -0
- package/lib/hr-radiobox-group/index.js +1 -0
- 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.css +1 -0
- package/lib/hr-search-tips/index.js +9 -0
- 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.css +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.css +1 -0
- package/lib/hr-time-picker/index.js +1 -0
- package/lib/hr-view-item/index.js +1 -1
- package/lib/hr-virtual-list/index.css +1 -0
- package/lib/hr-virtual-list/index.js +1 -0
- package/lib/img/header.7e31b1d5.png +0 -0
- package/lib/index/index.css +1 -1
- package/lib/index/index.js +2 -2
- package/lib/utils/index.js +1 -1
- package/package.json +17 -10
- 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-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-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 -225
- 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-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 -96
- 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-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-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 -196
- 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 -381
- 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-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/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,61 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'HrElasticityBoxItem',
|
|
4
|
-
inject: ['margin', 'lineNumber', 'marginBottom'],
|
|
5
|
-
props: {
|
|
6
|
-
index: {
|
|
7
|
-
type: Number,
|
|
8
|
-
default () {
|
|
9
|
-
return 0
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
data () {
|
|
14
|
-
return {}
|
|
15
|
-
},
|
|
16
|
-
created () {
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
computed: {
|
|
20
|
-
itemMargin () {
|
|
21
|
-
return (this.index + 1) % this.lineNumber === 0 ? 0 : this.margin
|
|
22
|
-
},
|
|
23
|
-
itemWidth () {
|
|
24
|
-
return `calc((100% - ${(this.lineNumber - 1) * this.margin}px) / ${this.lineNumber})`
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
methods: {
|
|
28
|
-
},
|
|
29
|
-
render () {
|
|
30
|
-
return <div class="hr-elasticity-box-item"
|
|
31
|
-
style={
|
|
32
|
-
{
|
|
33
|
-
width: this.itemWidth,
|
|
34
|
-
paddingBottom: this.itemWidth,
|
|
35
|
-
marginRight: `${this.itemMargin}px`,
|
|
36
|
-
marginBottom: `${this.marginBottom || this.margin}px`
|
|
37
|
-
}
|
|
38
|
-
}>
|
|
39
|
-
<div class="item-position">
|
|
40
|
-
{
|
|
41
|
-
this.$slots.default || ''
|
|
42
|
-
}
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<style scoped lang="less">
|
|
50
|
-
.hr-elasticity-box-item {
|
|
51
|
-
height: 0;
|
|
52
|
-
position: relative;
|
|
53
|
-
.item-position {
|
|
54
|
-
position: absolute;
|
|
55
|
-
left: 0;
|
|
56
|
-
top: 0;
|
|
57
|
-
width: 100%;
|
|
58
|
-
height: 100%;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
</style>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'HrElasticityBox',
|
|
4
|
-
provide () {
|
|
5
|
-
return {
|
|
6
|
-
margin: this.margin,
|
|
7
|
-
lineNumber: this.lineNumber,
|
|
8
|
-
marginBottom: this.marginBottom,
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
props: {
|
|
12
|
-
margin: {
|
|
13
|
-
type: Number,
|
|
14
|
-
default () {
|
|
15
|
-
return 10
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
lineNumber: {
|
|
19
|
-
type: Number,
|
|
20
|
-
default () {
|
|
21
|
-
return 4
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
marginBottom: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default () {
|
|
27
|
-
return 0
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
data () {
|
|
32
|
-
return {}
|
|
33
|
-
},
|
|
34
|
-
methods: {
|
|
35
|
-
},
|
|
36
|
-
render (h) {
|
|
37
|
-
return <div class="hr-elasticity-box">
|
|
38
|
-
{
|
|
39
|
-
this.$slots.default || ''
|
|
40
|
-
}
|
|
41
|
-
</div>
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
</script>
|
|
45
|
-
|
|
46
|
-
<style scoped lang="less">
|
|
47
|
-
.hr-elasticity-box {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-wrap: wrap;
|
|
50
|
-
width: 100%;
|
|
51
|
-
}
|
|
52
|
-
</style>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
const baseUrl = 'https://erphostjs.kye-erp.com/hr-oa-kts/ks-app/common/emotion/'
|
|
3
|
-
export default {
|
|
4
|
-
name: 'HrEmotionalPicture',
|
|
5
|
-
props: {
|
|
6
|
-
type: {
|
|
7
|
-
type: String,
|
|
8
|
-
default () {
|
|
9
|
-
return 'evaluate'
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
text: {
|
|
13
|
-
type: String,
|
|
14
|
-
default () {
|
|
15
|
-
return '暂无数据'
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
data () {
|
|
20
|
-
return {
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
render () {
|
|
24
|
-
const { text, type } = this
|
|
25
|
-
|
|
26
|
-
return <div class="hr-emotional-picture">
|
|
27
|
-
<div class="picture-content">
|
|
28
|
-
<img class="content-icon" src={`${baseUrl}${type}.png`} />
|
|
29
|
-
<div class="content-text">{text}</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<style scoped lang="less">
|
|
37
|
-
.hr-emotional-picture {
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: 100%;
|
|
40
|
-
.picture-content {
|
|
41
|
-
position: absolute;
|
|
42
|
-
left: 50%;
|
|
43
|
-
top: 50%;
|
|
44
|
-
width: 100%;
|
|
45
|
-
transform: translate(-50%, -50%);
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
.content-icon {
|
|
49
|
-
width: 140px;
|
|
50
|
-
height: 140px;
|
|
51
|
-
text-align: center;
|
|
52
|
-
margin-left: 50%;
|
|
53
|
-
transform: translateX(-50%);
|
|
54
|
-
}
|
|
55
|
-
.content-text {
|
|
56
|
-
font-size: 16px;
|
|
57
|
-
font-weight: 700;
|
|
58
|
-
line-height: 22px;
|
|
59
|
-
text-align: center;
|
|
60
|
-
color: #03050d;
|
|
61
|
-
margin-top: 12px;
|
|
62
|
-
display: block;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
</style>
|
|
File without changes
|
|
Binary file
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'HrEmployeeChoose',
|
|
4
|
-
props: {
|
|
5
|
-
title: {
|
|
6
|
-
type: String,
|
|
7
|
-
default () {
|
|
8
|
-
return '请选择'
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
multiple: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default () {
|
|
14
|
-
return false
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
menuId: {
|
|
18
|
-
type: String,
|
|
19
|
-
default () {
|
|
20
|
-
return '151596034994370809'
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
container: {
|
|
24
|
-
type: String,
|
|
25
|
-
default () {
|
|
26
|
-
return '#app'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
position: {
|
|
30
|
-
type: String,
|
|
31
|
-
default () {
|
|
32
|
-
return 'right'
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
data () {
|
|
37
|
-
return {
|
|
38
|
-
isShowKsEmployeePopup: false,
|
|
39
|
-
employeeList: []
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
methods: {
|
|
43
|
-
confirmEmployee (list) {
|
|
44
|
-
this.employeeList = list
|
|
45
|
-
this.isShowKsEmployeePopup = false
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
render () {
|
|
49
|
-
const { employeeName } = this.employeeList[0] || {}
|
|
50
|
-
return <div class="employee-choose">
|
|
51
|
-
{this.title && <div class="choose-title">{this.title}</div>}
|
|
52
|
-
<div class="choose-input" onClick={() => {
|
|
53
|
-
this.isShowKsEmployeePopup = true
|
|
54
|
-
}}>
|
|
55
|
-
<span class={["input-text", employeeName && 'black']}>{employeeName || '请选择'}</span>
|
|
56
|
-
<img class="input-image" src={require('./image/arrow-right.png')} />
|
|
57
|
-
</div>
|
|
58
|
-
<div class="choose-popup">
|
|
59
|
-
<ks-employee-popup
|
|
60
|
-
style={{ height: '100%', width: '330px' }}
|
|
61
|
-
placeholder="输入员工姓名/工号"
|
|
62
|
-
value={this.isShowKsEmployeePopup}
|
|
63
|
-
onInput={(value) => { this.isShowKsEmployeePopup = value }}
|
|
64
|
-
multiple={this.multiple}
|
|
65
|
-
menuId={this.menuId}
|
|
66
|
-
popAttr={{ position: this.position, getContainer: this.container }}
|
|
67
|
-
onConfirm={this.confirmEmployee}></ks-employee-popup>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
</script>
|
|
73
|
-
|
|
74
|
-
<style scoped lang="less">
|
|
75
|
-
.employee-choose {
|
|
76
|
-
.choose-title {
|
|
77
|
-
line-height: 20px;
|
|
78
|
-
margin-bottom: 12px;
|
|
79
|
-
text-align: left;
|
|
80
|
-
font-size: 14px;
|
|
81
|
-
font-weight: 600;
|
|
82
|
-
color: #03050d;
|
|
83
|
-
.title-black {
|
|
84
|
-
font-size: 14px;
|
|
85
|
-
font-weight: normal;
|
|
86
|
-
color: #6e6d72;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
.choose-input {
|
|
90
|
-
height: 32px;
|
|
91
|
-
border-radius: 8px;
|
|
92
|
-
background: #f7f8fa;
|
|
93
|
-
display: flex;
|
|
94
|
-
padding: 0 17px 0 12px;
|
|
95
|
-
line-height: 32px;
|
|
96
|
-
.input-text {
|
|
97
|
-
font-size: 14px;
|
|
98
|
-
color: #b0b3bf;
|
|
99
|
-
}
|
|
100
|
-
.input-text.black {
|
|
101
|
-
color: #03050d;
|
|
102
|
-
}
|
|
103
|
-
.input-image {
|
|
104
|
-
margin: 12px 0 0 auto;
|
|
105
|
-
width: 4px;
|
|
106
|
-
height: 8px;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
.choose-popup {
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
.van-popup {
|
|
113
|
-
height: 100%;
|
|
114
|
-
.popup-employee {
|
|
115
|
-
width: 330px;
|
|
116
|
-
height: 100%;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
</style>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { defaultIcon, noFormatIcon, FILE_FORMAT_DATA } from '../utils/enum.js'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
props: {
|
|
6
|
-
fileData: {
|
|
7
|
-
type: Object,
|
|
8
|
-
default: () => ({})
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
render () {
|
|
12
|
-
const { url } = this.fileData
|
|
13
|
-
const fileIcon = this.getFileIcon(this.fileData)
|
|
14
|
-
return (url && <div class="hr-file-list-other">
|
|
15
|
-
<img src={fileIcon} />
|
|
16
|
-
</div>)
|
|
17
|
-
},
|
|
18
|
-
methods: {
|
|
19
|
-
getFileIcon (fileData) {
|
|
20
|
-
const { extendName } = fileData || {}
|
|
21
|
-
if (!extendName) return noFormatIcon
|
|
22
|
-
const { formatIcon } = (FILE_FORMAT_DATA || []).find(i => i.format && i.format.includes(extendName.toLowerCase())) || {}
|
|
23
|
-
return formatIcon || defaultIcon
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<style lang="less" scoped>
|
|
30
|
-
.hr-file-list-other {
|
|
31
|
-
position: relative;
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 100%;
|
|
34
|
-
background: #f7f8fa;
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
align-items: center;
|
|
38
|
-
border-radius: 8px;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
img {
|
|
41
|
-
width: 36px;
|
|
42
|
-
height: 36px;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
props: {
|
|
4
|
-
fileData: {
|
|
5
|
-
type: Object,
|
|
6
|
-
default: () => ({})
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
data () {
|
|
10
|
-
return {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
render () {
|
|
15
|
-
const { url } = this.fileData
|
|
16
|
-
return (url && <div class="hr-file-list-img">
|
|
17
|
-
<img src={url} />
|
|
18
|
-
</div>)
|
|
19
|
-
},
|
|
20
|
-
methods: {
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<style lang="less" scoped>
|
|
27
|
-
.hr-file-list-img {
|
|
28
|
-
position: relative;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 100%;
|
|
31
|
-
border-radius: 8px;
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
img {
|
|
34
|
-
width: 100%;
|
|
35
|
-
height: 100%;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
</style>
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { videoIcon } from '../utils/enum.js'
|
|
3
|
-
|
|
4
|
-
const playBtnIcon = 'https://erphostjs.kye-erp.com/hr-oa-kts/ks-app/hr-fe-together-build/play-btn.svg'
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
props: {
|
|
8
|
-
fileData: {
|
|
9
|
-
type: Object,
|
|
10
|
-
default: () => ({})
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
render () {
|
|
14
|
-
const { url, coverUrl } = this.fileData
|
|
15
|
-
return (url && <div class="hr-file-list-video">
|
|
16
|
-
<img src={coverUrl ? coverUrl : videoIcon}
|
|
17
|
-
class={coverUrl && 'cover-img'} />
|
|
18
|
-
{
|
|
19
|
-
coverUrl && <div class="play-btn">
|
|
20
|
-
<img src={playBtnIcon} />
|
|
21
|
-
</div>
|
|
22
|
-
}
|
|
23
|
-
</div>)
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<style lang="less" scoped>
|
|
29
|
-
.hr-file-list-video {
|
|
30
|
-
position: relative;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
background: #f7f8fa;
|
|
34
|
-
display: flex;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
align-items: center;
|
|
37
|
-
border-radius: 8px;
|
|
38
|
-
overflow: hidden;
|
|
39
|
-
img {
|
|
40
|
-
width: 36px;
|
|
41
|
-
height: 36px;
|
|
42
|
-
}
|
|
43
|
-
.cover-img {
|
|
44
|
-
width: 100%;
|
|
45
|
-
height: 100%;
|
|
46
|
-
}
|
|
47
|
-
.play-btn {
|
|
48
|
-
position: absolute;
|
|
49
|
-
width: 100%;
|
|
50
|
-
height: 100%;
|
|
51
|
-
display: flex;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
align-items: center;
|
|
54
|
-
img {
|
|
55
|
-
width: 24px;
|
|
56
|
-
height: 24px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
</style>
|