@kyfe/hroa-ui 1.0.5 → 1.0.6
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 +3104 -279
- package/dist/hroa-ui.css +1 -1
- package/dist/hroa-ui.umd.js +3104 -279
- package/dist/hroa-ui.umd.min.js +2 -2
- package/dist/img/header.7e31b1d5.png +0 -0
- package/lib/getJsModule/index.css +1 -1
- package/lib/getJsModule/index.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.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.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.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 +6 -2
- package/packages/hr-checkbox/index.js +8 -0
- package/packages/hr-checkbox/src/active-icon.png +0 -0
- package/packages/hr-checkbox/src/checkbox-group.vue +74 -0
- package/packages/hr-checkbox/src/checkbox.vue +226 -0
- package/packages/hr-checkbox/src/data.js +46 -0
- 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 +8 -0
- package/packages/hr-date-filter/index.js +7 -0
- package/packages/hr-date-filter/src/date-select.vue +153 -0
- package/packages/hr-date-filter/src/index.vue +243 -0
- package/packages/hr-date-filter/src/style.less +130 -0
- package/packages/hr-date-filter/src/utils.js +109 -0
- package/packages/hr-file-list/src/index.vue +2 -2
- package/packages/hr-multiterm-choose/src/index.vue +4 -5
- package/packages/hr-notification-dialog/images/header.png +0 -0
- package/packages/hr-notification-dialog/index.js +7 -0
- package/packages/hr-notification-dialog/src/index.vue +293 -0
- 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-pager/src/index.vue +28 -4
- package/packages/hr-radiobox/index.js +8 -0
- package/packages/hr-radiobox/src/data.js +46 -0
- package/packages/hr-radiobox/src/radiobox-group.vue +64 -0
- package/packages/hr-radiobox/src/radiobox.vue +191 -0
- package/packages/hr-radiobox-group/index.js +8 -0
- package/packages/hr-search-tips/index.js +3 -0
- package/packages/hr-search-tips/src/index.vue +213 -0
- 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-single-choose/src/index.vue +4 -5
- package/packages/hr-slide-pager/src/index.vue +3 -10
- package/packages/hr-time-picker/index.js +3 -0
- package/packages/hr-time-picker/src/index.vue +85 -0
- 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-virtual-list/index.js +7 -0
- package/packages/hr-virtual-list/src/cc-item.vue +105 -0
- package/packages/hr-virtual-list/src/index.vue +227 -0
- package/packages/hr-virtual-list//350/231/232/346/213/237/345/210/227/350/241/250.md +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { debounce } from 'lodash'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: 'HrSearchTips',
|
|
6
|
+
props: {
|
|
7
|
+
value: {
|
|
8
|
+
type: [Number, String],
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
url: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
appKey: {
|
|
16
|
+
type: [String, Number],
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
searchParams: {
|
|
20
|
+
type: Function,
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
searchResult: {
|
|
24
|
+
type: Function
|
|
25
|
+
},
|
|
26
|
+
keys: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default: () => ([])
|
|
29
|
+
},
|
|
30
|
+
label: String,
|
|
31
|
+
labelWidth: {
|
|
32
|
+
type: [String, Number],
|
|
33
|
+
default: '80px'
|
|
34
|
+
},
|
|
35
|
+
labelAlign: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: 'left'
|
|
38
|
+
},
|
|
39
|
+
inputAlign: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: 'left'
|
|
42
|
+
},
|
|
43
|
+
required: Boolean,
|
|
44
|
+
rules: {
|
|
45
|
+
type: Array,
|
|
46
|
+
default: () => ([])
|
|
47
|
+
},
|
|
48
|
+
placeholder: String,
|
|
49
|
+
inputLength: {
|
|
50
|
+
type: Number,
|
|
51
|
+
default: 2
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
data () {
|
|
55
|
+
return {
|
|
56
|
+
loading: false,
|
|
57
|
+
showTips: false,
|
|
58
|
+
// 真实值
|
|
59
|
+
searchVal: '',
|
|
60
|
+
// 临时值
|
|
61
|
+
curInputVal: '',
|
|
62
|
+
tipListData: []
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
computed: {
|
|
66
|
+
debounceGetListFn () {
|
|
67
|
+
return debounce(this.getList, 200)
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
watch: {
|
|
71
|
+
value (val) {
|
|
72
|
+
this.searchVal = val
|
|
73
|
+
this.curInputVal = val
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
render () {
|
|
77
|
+
const { label, labelWidth, labelAlign, inputAlign, required, rules, placeholder } = this.$props
|
|
78
|
+
|
|
79
|
+
const inputDom = () => {
|
|
80
|
+
return <van-field
|
|
81
|
+
value={this.curInputVal}
|
|
82
|
+
label={label}
|
|
83
|
+
label-width={labelWidth}
|
|
84
|
+
label-align={labelAlign}
|
|
85
|
+
input-align={inputAlign}
|
|
86
|
+
error-message-align={inputAlign}
|
|
87
|
+
required={required}
|
|
88
|
+
rules={rules}
|
|
89
|
+
placeholder={placeholder}
|
|
90
|
+
onInput={val => {
|
|
91
|
+
this.curInputVal = val
|
|
92
|
+
// this.$emit('input', val)
|
|
93
|
+
this.debounceGetListFn(val)
|
|
94
|
+
}}
|
|
95
|
+
onBlur={this.searchBlur}></van-field>
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const tipsDom = () => {
|
|
99
|
+
return (
|
|
100
|
+
<div class="tips-list">
|
|
101
|
+
{this.loading ? <van-loading size="24px" class="loading-cls" /> : ''}
|
|
102
|
+
{
|
|
103
|
+
this.tipListData.map(item => {
|
|
104
|
+
return <div class="tips-item"
|
|
105
|
+
onClick={() => this.itemClick(item)}>
|
|
106
|
+
{
|
|
107
|
+
this.keys.map((key, keyIndex) => {
|
|
108
|
+
return <span>{item[key]}{keyIndex !== (this.keys.length - 1) ? ',' : ''}</span>
|
|
109
|
+
})
|
|
110
|
+
}
|
|
111
|
+
</div>
|
|
112
|
+
})
|
|
113
|
+
}
|
|
114
|
+
</div >
|
|
115
|
+
)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return (
|
|
119
|
+
<div class="hr-fe-together-build-hr-search-tips">
|
|
120
|
+
{inputDom()}
|
|
121
|
+
{this.showTips ? tipsDom() : ''}
|
|
122
|
+
</div >
|
|
123
|
+
)
|
|
124
|
+
},
|
|
125
|
+
methods: {
|
|
126
|
+
// 获取列表(临时值输入后触发)
|
|
127
|
+
async getList (value) {
|
|
128
|
+
try {
|
|
129
|
+
// 获取前先清空真实值,真实值需要选择后重新赋值,如不选,则清空
|
|
130
|
+
this.searchVal = ''
|
|
131
|
+
this.tipListData = []
|
|
132
|
+
if (value.length < this.inputLength) {
|
|
133
|
+
this.showTips = false
|
|
134
|
+
return
|
|
135
|
+
}
|
|
136
|
+
this.showTips = true
|
|
137
|
+
this.loading = true
|
|
138
|
+
let res = await ksui.http(this.url, this.appKey, this.searchParams(value))
|
|
139
|
+
if (this.formatResult) {
|
|
140
|
+
res = this.formatResult(res)
|
|
141
|
+
}
|
|
142
|
+
this.tipListData = res || []
|
|
143
|
+
if (!this.tipListData.length) {
|
|
144
|
+
this.showTips = false
|
|
145
|
+
this.searchVal = ''
|
|
146
|
+
this.$toast('搜索结果为空')
|
|
147
|
+
}
|
|
148
|
+
} catch (error) {
|
|
149
|
+
this.showTips = false
|
|
150
|
+
} finally {
|
|
151
|
+
this.loading = false
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
// 选项点击事件
|
|
155
|
+
itemClick (item) {
|
|
156
|
+
this.showTips = false
|
|
157
|
+
this.$emit('select', item)
|
|
158
|
+
},
|
|
159
|
+
searchBlur () {
|
|
160
|
+
// 失焦后,临时值更新成最新的值,搜索结果清空并隐藏
|
|
161
|
+
setTimeout(() => {
|
|
162
|
+
this.curInputVal = this.searchVal
|
|
163
|
+
this.tipListData = []
|
|
164
|
+
this.showTips = false
|
|
165
|
+
}, 200)
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
</script>
|
|
170
|
+
|
|
171
|
+
<style lang="less" scoped>
|
|
172
|
+
.hr-fe-together-build-hr-search-tips {
|
|
173
|
+
position: relative;
|
|
174
|
+
.van-cell:after {
|
|
175
|
+
display: none;
|
|
176
|
+
}
|
|
177
|
+
.tips-list {
|
|
178
|
+
position: absolute;
|
|
179
|
+
top: 54px;
|
|
180
|
+
right: 10px;
|
|
181
|
+
width: 90%;
|
|
182
|
+
max-height: 220px;
|
|
183
|
+
font-size: 14px;
|
|
184
|
+
color: #999;
|
|
185
|
+
background-color: #fff;
|
|
186
|
+
box-shadow: 1px 1px 8px #dfdede;
|
|
187
|
+
border: 1px solid #ededed;
|
|
188
|
+
overflow: auto;
|
|
189
|
+
z-index: 999;
|
|
190
|
+
.loading-cls {
|
|
191
|
+
width: 100%;
|
|
192
|
+
height: 40px;
|
|
193
|
+
display: flex;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
align-items: center;
|
|
196
|
+
}
|
|
197
|
+
.tips-item {
|
|
198
|
+
padding-right: 15px;
|
|
199
|
+
box-sizing: border-box;
|
|
200
|
+
width: 100%;
|
|
201
|
+
height: 40px;
|
|
202
|
+
border-bottom: 0.5px solid #ededed;
|
|
203
|
+
font-size: 15px;
|
|
204
|
+
line-height: 40px;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
span {
|
|
207
|
+
display: inline-flex;
|
|
208
|
+
padding-left: 8px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
</style>
|
|
File without changes
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
checkValue: {
|
|
65
|
-
type: String
|
|
65
|
+
type: [String, Number],
|
|
66
66
|
default () {
|
|
67
67
|
return -1
|
|
68
68
|
}
|
|
@@ -105,16 +105,15 @@
|
|
|
105
105
|
},
|
|
106
106
|
render () {
|
|
107
107
|
const width = this.selfAdaption ? null : `calc((100% - ${this.margin * (this.divideeQually - 1)}px) / ${this.divideeQually})`
|
|
108
|
-
const marginBottom =
|
|
109
|
-
const gap = this.selfAdaption ? `${this.margin}px` : null
|
|
108
|
+
const marginBottom = `${this.marginBottom}px`
|
|
110
109
|
return <div class="single-choose">
|
|
111
110
|
{
|
|
112
111
|
this.title && <div class="choose-title">{this.title}</div>
|
|
113
112
|
}
|
|
114
|
-
<div class="choose-condition"
|
|
113
|
+
<div class="choose-condition">
|
|
115
114
|
{
|
|
116
115
|
this.filterList.map((item, index) => {
|
|
117
|
-
const marginRight = this.selfAdaption ?
|
|
116
|
+
const marginRight = this.selfAdaption ? `${this.margin}px` : `${(this.index + 1) % this.divideeQually === 0 ? 0 : this.margin}px`
|
|
118
117
|
const { value, label } = item
|
|
119
118
|
return <div
|
|
120
119
|
onClick={this.select.bind(this, value, index)}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
// 监听触摸的容器
|
|
69
69
|
container: {
|
|
70
70
|
type: String,
|
|
71
|
-
default: 'hr-slide-pager'
|
|
71
|
+
default: '.hr-slide-pager'
|
|
72
72
|
},
|
|
73
73
|
// 分页器单位名称 【页|篇...】
|
|
74
74
|
unitName: {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
*/
|
|
137
137
|
addEventForContainer () {
|
|
138
138
|
this.$nextTick(() => {
|
|
139
|
-
let containerDom = document.querySelector(
|
|
139
|
+
let containerDom = document.querySelector(`${this.container}`)
|
|
140
140
|
containerDom.addEventListener('touchstart', this.handleTouchStart)
|
|
141
141
|
containerDom.addEventListener('touchmove', this.handleTouchMove)
|
|
142
142
|
containerDom.addEventListener('touchend', this.handleTouchEnd)
|
|
@@ -318,20 +318,13 @@
|
|
|
318
318
|
<style lang="less">
|
|
319
319
|
.hr-slide-pager {
|
|
320
320
|
transform: translate3d(0, 0, 1);
|
|
321
|
-
|
|
322
|
-
top: 0;
|
|
323
|
-
left: 0;
|
|
324
|
-
width: 100%;
|
|
325
|
-
height: 100%;
|
|
326
|
-
z-index: 9;
|
|
321
|
+
z-index: 999;
|
|
327
322
|
overflow: hidden;
|
|
328
|
-
pointer-events: none;
|
|
329
323
|
|
|
330
324
|
.shadow {
|
|
331
325
|
position: absolute;
|
|
332
326
|
top: 44px;
|
|
333
327
|
height: 100%;
|
|
334
|
-
pointer-events: none;
|
|
335
328
|
z-index: 9;
|
|
336
329
|
display: flex;
|
|
337
330
|
align-items: center;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import HrPopup from '../../hr-popup'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: 'HrTimePicker',
|
|
6
|
+
components: {
|
|
7
|
+
HrPopup
|
|
8
|
+
},
|
|
9
|
+
props: {
|
|
10
|
+
show: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: false
|
|
13
|
+
},
|
|
14
|
+
// 挂载位置
|
|
15
|
+
getContainer: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'body'
|
|
18
|
+
},
|
|
19
|
+
value: {
|
|
20
|
+
type: String | Date
|
|
21
|
+
},
|
|
22
|
+
// 标题
|
|
23
|
+
title: String,
|
|
24
|
+
// 时间类型,可选值为 datetime date time year-month
|
|
25
|
+
type: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: 'datetime'
|
|
28
|
+
},
|
|
29
|
+
minDate: {
|
|
30
|
+
type: Date
|
|
31
|
+
},
|
|
32
|
+
maxDate: {
|
|
33
|
+
type: Date
|
|
34
|
+
},
|
|
35
|
+
formatter: {
|
|
36
|
+
type: Function
|
|
37
|
+
},
|
|
38
|
+
filter: {
|
|
39
|
+
type: Function
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
data () {
|
|
43
|
+
return {
|
|
44
|
+
isShowPopup: false,
|
|
45
|
+
timeValue: ''
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
watch: {
|
|
49
|
+
show: {
|
|
50
|
+
handler (val) {
|
|
51
|
+
this.isShowPopup = val
|
|
52
|
+
if (val) {
|
|
53
|
+
this.timeValue = this.value || ''
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
immediate: true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
render () {
|
|
60
|
+
const { type, title, minDate, maxDate, formatter, filter } = this.$props
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<HrPopup show={this.isShowPopup}
|
|
64
|
+
get-container={this.getContainer}
|
|
65
|
+
position="bottom"
|
|
66
|
+
safe-area-inset-bottom
|
|
67
|
+
onClose={() => this.$emit('cancel')}>
|
|
68
|
+
<div class="hr-fe-together-build-hr-time-picker">
|
|
69
|
+
<van-datetime-picker
|
|
70
|
+
value={this.timeValue}
|
|
71
|
+
type={type}
|
|
72
|
+
title={title}
|
|
73
|
+
min-date={minDate}
|
|
74
|
+
max-date={maxDate}
|
|
75
|
+
formatter={formatter}
|
|
76
|
+
filter={filter}
|
|
77
|
+
onChange={(instance) => this.$emit('change', instance)}
|
|
78
|
+
onConfirm={(val) => this.$emit('confirm', val)}
|
|
79
|
+
onCancel={() => this.$emit('cancel')}></van-datetime-picker>
|
|
80
|
+
</div>
|
|
81
|
+
</HrPopup>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</script>
|
package/packages/hr-time-picker//346/227/266/351/227/264/351/200/211/346/213/251/345/231/250.md
ADDED
|
File without changes
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="user-item-box">
|
|
3
|
+
<div class="user-item">
|
|
4
|
+
<img class="user-img"
|
|
5
|
+
:src="item.employeePhotoUrl" />
|
|
6
|
+
<div class="right-part">
|
|
7
|
+
<div class="name-box">
|
|
8
|
+
<div class="name">{{(item.name || item.employeeName) + '-' + item.duty}}</div>
|
|
9
|
+
<slot name="ccType"></slot>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="dept-duty">
|
|
12
|
+
<span :class="{'department': item.haveRead}">{{item.department || item.departmentName}}</span>
|
|
13
|
+
<span v-if="item.haveRead">{{item.readTime | minute}}</span>
|
|
14
|
+
<div v-if="isShowCountBar"
|
|
15
|
+
class="count-item">
|
|
16
|
+
<span class="label">阅读时长:</span>
|
|
17
|
+
<span class="value">{{item.stayDurationConvert}}</span>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
export default {
|
|
28
|
+
name: 'cc-item', // 抄送人组件
|
|
29
|
+
props: {
|
|
30
|
+
item: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default: () => ({})
|
|
33
|
+
},
|
|
34
|
+
// 是否展示统计栏
|
|
35
|
+
isShowCountBar: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style lang="less" scoped>
|
|
44
|
+
.user-item-box {
|
|
45
|
+
padding: 12px;
|
|
46
|
+
border-bottom: 1px solid #eaebf0;
|
|
47
|
+
}
|
|
48
|
+
.user-item {
|
|
49
|
+
display: flex;
|
|
50
|
+
.user-img {
|
|
51
|
+
width: 40px;
|
|
52
|
+
height: 40px;
|
|
53
|
+
border-radius: 8px;
|
|
54
|
+
margin-right: 10px;
|
|
55
|
+
&.hide {
|
|
56
|
+
visibility: hidden;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.right-part {
|
|
60
|
+
flex-grow: 1;
|
|
61
|
+
.name-box {
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: flex-start;
|
|
64
|
+
align-items: center;
|
|
65
|
+
margin-top: 2px;
|
|
66
|
+
.name {
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
color: #000000;
|
|
69
|
+
}
|
|
70
|
+
.visi-count {
|
|
71
|
+
font-size: 16px;
|
|
72
|
+
color: #7653d6;
|
|
73
|
+
}
|
|
74
|
+
.visi-dura {
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
color: #000000;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.dept-duty {
|
|
80
|
+
font-size: 12px;
|
|
81
|
+
color: #999999;
|
|
82
|
+
margin-top: 4px;
|
|
83
|
+
display: flex;
|
|
84
|
+
justify-content: space-between;
|
|
85
|
+
.department {
|
|
86
|
+
max-width: 140px;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
}
|
|
91
|
+
.count-item {
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
color: #999999;
|
|
94
|
+
margin-left: 12px;
|
|
95
|
+
.label {
|
|
96
|
+
color: #999999;
|
|
97
|
+
}
|
|
98
|
+
.value {
|
|
99
|
+
color: #03050d;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
</style>
|