@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,246 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import SingleChoose from './single-choose/index.vue'
|
|
3
|
-
import MultitermChoose from './multiterm-choose/index.vue'
|
|
4
|
-
import TimeSelector from './time-selector/index.vue'
|
|
5
|
-
import Textinput from './text-input/index.vue'
|
|
6
|
-
import EmployeeChoose from './employee-choose/index.vue'
|
|
7
|
-
import OrgTreeChoose from './org-tree-choose/index.vue'
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
name: 'HrConditionFiltrate',
|
|
11
|
-
components: {
|
|
12
|
-
SingleChoose,
|
|
13
|
-
MultitermChoose,
|
|
14
|
-
Textinput,
|
|
15
|
-
EmployeeChoose,
|
|
16
|
-
OrgTreeChoose
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
value: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default () {
|
|
22
|
-
return false
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
data () { },
|
|
27
|
-
methods: {
|
|
28
|
-
operationCondition () {
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
setisShowFiltrate (flag) {
|
|
32
|
-
this.$emit('input', flag)
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
render () {
|
|
36
|
-
// 单项选择卡片
|
|
37
|
-
const renderSingleChoose = (title) => <SingleChoose divideeQually={3} title={title} />
|
|
38
|
-
// 多项选择卡片
|
|
39
|
-
const renderMultitermChoose = (title) => <MultitermChoose title={title} />
|
|
40
|
-
// 时间选择器
|
|
41
|
-
const renderTimeSelector = (title) => <TimeSelector title={title} ref='TimeSelector' />
|
|
42
|
-
// 文本框
|
|
43
|
-
const renderTextInput = (title) => <Textinput title={title} />
|
|
44
|
-
// 渲染选择人员框
|
|
45
|
-
const renderEmployeeChoose = (title) => <EmployeeChoose title={title} />
|
|
46
|
-
// 渲染选择组织树
|
|
47
|
-
const renderOrgTreeChoose = (title) => <OrgTreeChoose title={title} />
|
|
48
|
-
// 主要内容
|
|
49
|
-
const renderFiltrateContent = () => {
|
|
50
|
-
return <div class="filtrate-content" id="hr-filtrate-content">
|
|
51
|
-
<header class="ksui-header">
|
|
52
|
-
<div class="ksui-nav">
|
|
53
|
-
<ks-nav-bar title="筛选"
|
|
54
|
-
left-arrow={true}
|
|
55
|
-
onClick-left={() => { this.setisShowFiltrate(false) }}>
|
|
56
|
-
</ks-nav-bar>
|
|
57
|
-
</div>
|
|
58
|
-
</header>
|
|
59
|
-
<div class="content-main ksui-body">
|
|
60
|
-
{renderSingleChoose('培训类')}
|
|
61
|
-
{renderMultitermChoose('排序')}
|
|
62
|
-
{renderTimeSelector('排序')}
|
|
63
|
-
{renderTextInput('录单人')}
|
|
64
|
-
{renderEmployeeChoose('扣款人')}
|
|
65
|
-
{renderOrgTreeChoose('选择组织')}
|
|
66
|
-
</div>
|
|
67
|
-
<div class="content-footer">
|
|
68
|
-
<span class="footer-button reset" onClick={this.operationCondition.bind(this, 0)}>重置</span>
|
|
69
|
-
<span class="footer-button" onClick={this.operationCondition.bind(this, 1)}>确定</span>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
return <div class="hr-condition-filtrate">
|
|
75
|
-
<ks-popup
|
|
76
|
-
value={this.value}
|
|
77
|
-
onInput={(value) => { this.setisShowFiltrate(value) }}
|
|
78
|
-
get-container="#app"
|
|
79
|
-
position="right">
|
|
80
|
-
{renderFiltrateContent()}
|
|
81
|
-
</ks-popup>
|
|
82
|
-
</div>
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
|
-
<style scoped lang="less">
|
|
88
|
-
.filtrate-content {
|
|
89
|
-
width: 330px;
|
|
90
|
-
height: 100%;
|
|
91
|
-
border-radius: 12px 0px 0px 12px;
|
|
92
|
-
box-sizing: border-box;
|
|
93
|
-
.ksui-nav {
|
|
94
|
-
.van-nav-bar {
|
|
95
|
-
display: flex;
|
|
96
|
-
padding: 0 16px;
|
|
97
|
-
flex-direction: row;
|
|
98
|
-
align-items: center;
|
|
99
|
-
.van-icon.van-icon-arrow-left.van-nav-bar__arrow {
|
|
100
|
-
font-size: 22px !important;
|
|
101
|
-
font-weight: 500;
|
|
102
|
-
color: #000;
|
|
103
|
-
}
|
|
104
|
-
.van-nav-bar__left,
|
|
105
|
-
.van-nav-bar__right {
|
|
106
|
-
position: static;
|
|
107
|
-
font-size: 22px;
|
|
108
|
-
font-weight: 500;
|
|
109
|
-
color: #000;
|
|
110
|
-
}
|
|
111
|
-
.van-nav-bar__left {
|
|
112
|
-
display: flex;
|
|
113
|
-
justify-content: flex-start;
|
|
114
|
-
flex: 0 0 22px;
|
|
115
|
-
margin-right: 4px;
|
|
116
|
-
}
|
|
117
|
-
.van-nav-bar__title {
|
|
118
|
-
margin: 0;
|
|
119
|
-
flex: 0 0 auto;
|
|
120
|
-
height: auto;
|
|
121
|
-
line-height: auto;
|
|
122
|
-
|
|
123
|
-
// & > a.light {
|
|
124
|
-
// border: 1px solid #7972fe;
|
|
125
|
-
// }
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
.ksui-header {
|
|
130
|
-
background: #fff !important;
|
|
131
|
-
}
|
|
132
|
-
.content-main {
|
|
133
|
-
padding: 16px;
|
|
134
|
-
overflow-y: scroll !important;
|
|
135
|
-
padding-bottom: 90px;
|
|
136
|
-
height: 100%;
|
|
137
|
-
.main-item {
|
|
138
|
-
margin-bottom: 8px;
|
|
139
|
-
.item-title {
|
|
140
|
-
line-height: 20px;
|
|
141
|
-
margin-bottom: 12px;
|
|
142
|
-
font-size: 14px;
|
|
143
|
-
font-weight: 600;
|
|
144
|
-
color: #03050d;
|
|
145
|
-
text-align: left;
|
|
146
|
-
.title-black {
|
|
147
|
-
font-size: 14px;
|
|
148
|
-
font-weight: normal;
|
|
149
|
-
color: #6e6d72;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
.item-condition {
|
|
153
|
-
display: flex;
|
|
154
|
-
flex-wrap: wrap;
|
|
155
|
-
justify-content: flex-start;
|
|
156
|
-
.condition-item {
|
|
157
|
-
width: calc((100% - 16px) / 3);
|
|
158
|
-
height: 28px;
|
|
159
|
-
border-radius: 8px;
|
|
160
|
-
box-sizing: border-box;
|
|
161
|
-
background: #f7f8fa;
|
|
162
|
-
text-align: center;
|
|
163
|
-
line-height: 26px;
|
|
164
|
-
margin-bottom: 12px;
|
|
165
|
-
margin-right: 8px;
|
|
166
|
-
color: #03050d;
|
|
167
|
-
font-size: 12px;
|
|
168
|
-
position: relative;
|
|
169
|
-
}
|
|
170
|
-
.condition-item.active {
|
|
171
|
-
// border: 1px solid rgba(121, 114, 254, 0.8);
|
|
172
|
-
background: rgba(121, 114, 254, 0.08);
|
|
173
|
-
color: #7972fe;
|
|
174
|
-
&::after {
|
|
175
|
-
content: " ";
|
|
176
|
-
position: absolute;
|
|
177
|
-
left: 0;
|
|
178
|
-
top: 0;
|
|
179
|
-
width: 200%;
|
|
180
|
-
height: 200%;
|
|
181
|
-
border: 1px solid #7972fe;
|
|
182
|
-
border-radius: 16px;
|
|
183
|
-
-webkit-transform-origin: 0 0;
|
|
184
|
-
transform-origin: 0 0;
|
|
185
|
-
-webkit-transform: scale(0.5);
|
|
186
|
-
transform: scale(0.5);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.condition-item:nth-child(3n) {
|
|
191
|
-
margin-right: 0;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
.content-footer {
|
|
197
|
-
position: absolute;
|
|
198
|
-
bottom: 0;
|
|
199
|
-
left: 0;
|
|
200
|
-
padding: 8px 36px;
|
|
201
|
-
display: flex;
|
|
202
|
-
width: 100%;
|
|
203
|
-
box-sizing: border-box;
|
|
204
|
-
background: #fff;
|
|
205
|
-
.footer-button {
|
|
206
|
-
flex: 1;
|
|
207
|
-
border-radius: 8px;
|
|
208
|
-
background: #7972fe;
|
|
209
|
-
font-size: 16px;
|
|
210
|
-
line-height: 22px;
|
|
211
|
-
color: #ffffff;
|
|
212
|
-
text-align: center;
|
|
213
|
-
line-height: 40px;
|
|
214
|
-
}
|
|
215
|
-
.footer-button.reset {
|
|
216
|
-
color: #7972fe;
|
|
217
|
-
// border: solid #7972fe 1px;
|
|
218
|
-
background: #fff;
|
|
219
|
-
margin-right: 18px;
|
|
220
|
-
position: relative;
|
|
221
|
-
&::after {
|
|
222
|
-
content: " ";
|
|
223
|
-
position: absolute;
|
|
224
|
-
left: 0;
|
|
225
|
-
top: 0;
|
|
226
|
-
width: 200%;
|
|
227
|
-
height: 200%;
|
|
228
|
-
border: 1px solid #7972fe;
|
|
229
|
-
border-radius: 16px;
|
|
230
|
-
-webkit-transform-origin: 0 0;
|
|
231
|
-
transform-origin: 0 0;
|
|
232
|
-
-webkit-transform: scale(0.5);
|
|
233
|
-
transform: scale(0.5);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
.van-popup {
|
|
239
|
-
height: 100%;
|
|
240
|
-
overflow: hidden;
|
|
241
|
-
}
|
|
242
|
-
.ios .content-footer,
|
|
243
|
-
.ipx .content-footer {
|
|
244
|
-
padding-top: 28px;
|
|
245
|
-
}
|
|
246
|
-
</style>
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'MultitermChoose',
|
|
4
|
-
props: {
|
|
5
|
-
list: {
|
|
6
|
-
type: Array,
|
|
7
|
-
default () {
|
|
8
|
-
return [
|
|
9
|
-
{
|
|
10
|
-
label: '新人培训1',
|
|
11
|
-
value: 10
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
label: '新人培训2',
|
|
15
|
-
value: 20
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: '新人培训3',
|
|
19
|
-
value: 30
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: '新人培训4',
|
|
23
|
-
value: 40
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
title: {
|
|
29
|
-
type: String,
|
|
30
|
-
default () {
|
|
31
|
-
return '请选择'
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
isShowAll: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default () {
|
|
37
|
-
return false
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
data () {
|
|
42
|
-
return {
|
|
43
|
-
listActive: []
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
computed: {
|
|
47
|
-
concatList () {
|
|
48
|
-
return [{ label: '全部', value: 0 }].concat(this.list)
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
watch: {
|
|
52
|
-
concatList: {
|
|
53
|
-
handler (list) {
|
|
54
|
-
this.initListActive(list)
|
|
55
|
-
},
|
|
56
|
-
immediate: true
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
created () {
|
|
60
|
-
this.init()
|
|
61
|
-
},
|
|
62
|
-
methods: {
|
|
63
|
-
init () {
|
|
64
|
-
this.initState()
|
|
65
|
-
},
|
|
66
|
-
initState () {
|
|
67
|
-
},
|
|
68
|
-
initListActive (list) {
|
|
69
|
-
if (!Array.isArray(list)) return
|
|
70
|
-
this.listActive = new Array(list.length).fill(false)
|
|
71
|
-
this.listActive[0] = true
|
|
72
|
-
},
|
|
73
|
-
select (index) {
|
|
74
|
-
const active = this.listActive[index]
|
|
75
|
-
if (index === 0) {
|
|
76
|
-
if (active) return
|
|
77
|
-
this.listActive = this.listActive.map(() => false)
|
|
78
|
-
this.$set(this.listActive, index, true)
|
|
79
|
-
} else {
|
|
80
|
-
this.$set(this.listActive, index, !this.listActive[index])
|
|
81
|
-
if (this.listActive.every((item) => !item)) {
|
|
82
|
-
this.$set(this.listActive, 0, true)
|
|
83
|
-
} else {
|
|
84
|
-
this.$set(this.listActive, 0, false)
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
const chooseList = this.concatList.filter((item, index) => this.listActive[index])
|
|
88
|
-
this.$emit('select', chooseList)
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
render () {
|
|
92
|
-
console.log('render')
|
|
93
|
-
return <div class="multiterm-choose">
|
|
94
|
-
<div class="choose-title">{this.title}</div>
|
|
95
|
-
<div class="choose-condition">
|
|
96
|
-
{
|
|
97
|
-
this.concatList.map((item, index) => <div
|
|
98
|
-
onClick={this.select.bind(this, index)}
|
|
99
|
-
class={['condition-item', this.listActive[index] && 'active']}>
|
|
100
|
-
{item.label}
|
|
101
|
-
</div>)
|
|
102
|
-
}
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
</script>
|
|
108
|
-
|
|
109
|
-
<style scoped lang="less">
|
|
110
|
-
.multiterm-choose {
|
|
111
|
-
.choose-title {
|
|
112
|
-
line-height: 20px;
|
|
113
|
-
margin-bottom: 12px;
|
|
114
|
-
text-align: left;
|
|
115
|
-
font-size: 14px;
|
|
116
|
-
font-weight: 600;
|
|
117
|
-
color: #03050d;
|
|
118
|
-
.title-black {
|
|
119
|
-
font-size: 14px;
|
|
120
|
-
font-weight: normal;
|
|
121
|
-
color: #6e6d72;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
.choose-condition {
|
|
125
|
-
display: flex;
|
|
126
|
-
flex-wrap: wrap;
|
|
127
|
-
justify-content: flex-start;
|
|
128
|
-
.condition-item {
|
|
129
|
-
width: calc((100% - 16px) / 3);
|
|
130
|
-
height: 28px;
|
|
131
|
-
border-radius: 8px;
|
|
132
|
-
box-sizing: border-box;
|
|
133
|
-
background: #f7f8fa;
|
|
134
|
-
text-align: center;
|
|
135
|
-
line-height: 28px;
|
|
136
|
-
margin-bottom: 12px;
|
|
137
|
-
margin-right: 8px;
|
|
138
|
-
color: #03050d;
|
|
139
|
-
font-size: 12px;
|
|
140
|
-
position: relative;
|
|
141
|
-
}
|
|
142
|
-
.condition-item.active {
|
|
143
|
-
// border: 1px solid rgba(121, 114, 254, 0.8);
|
|
144
|
-
background: rgba(121, 114, 254, 0.08);
|
|
145
|
-
color: #7972fe;
|
|
146
|
-
&::after {
|
|
147
|
-
content: " ";
|
|
148
|
-
position: absolute;
|
|
149
|
-
left: 0;
|
|
150
|
-
top: 0;
|
|
151
|
-
width: 200%;
|
|
152
|
-
height: 200%;
|
|
153
|
-
border: 1px solid #7972fe;
|
|
154
|
-
border-radius: 16px;
|
|
155
|
-
-webkit-transform-origin: 0 0;
|
|
156
|
-
transform-origin: 0 0;
|
|
157
|
-
-webkit-transform: scale(0.5);
|
|
158
|
-
transform: scale(0.5);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.condition-item:nth-child(3n) {
|
|
163
|
-
margin-right: 0;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
</style>
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'OrgTreeChoose',
|
|
4
|
-
props: {
|
|
5
|
-
title: {
|
|
6
|
-
type: String,
|
|
7
|
-
default () {
|
|
8
|
-
return '请选择'
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
data () {
|
|
13
|
-
return {
|
|
14
|
-
defaultCheckedKey: '171',
|
|
15
|
-
isShowOrgTreePop: false,
|
|
16
|
-
organization: {}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
methods: {
|
|
20
|
-
handleChange (organization) {
|
|
21
|
-
this.isShowOrgTreePop = false
|
|
22
|
-
this.organization = organization || {}
|
|
23
|
-
console.log(organization, 'organization')
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
render () {
|
|
27
|
-
const { name } = this.organization
|
|
28
|
-
return <div class="org-tree-choose">
|
|
29
|
-
<div class="choose-title">{this.title}</div>
|
|
30
|
-
<div class="choose-input" onClick={() => {
|
|
31
|
-
this.isShowOrgTreePop = true
|
|
32
|
-
}}>
|
|
33
|
-
<span class={["input-text", name && 'black']}>{name || '请选择'}</span>
|
|
34
|
-
<img class="input-image" src={require('../../image/arrow-right.png')} />
|
|
35
|
-
</div>
|
|
36
|
-
<div class="choose-popup">
|
|
37
|
-
<ks-org-tree-pop
|
|
38
|
-
style={{ height: '100%', width: '330px' }}
|
|
39
|
-
value={this.isShowOrgTreePop}
|
|
40
|
-
overlay={true}
|
|
41
|
-
closeOnClickOverlay={true}
|
|
42
|
-
onClose={() => {
|
|
43
|
-
this.isShowOrgTreePop = false
|
|
44
|
-
}}
|
|
45
|
-
onInput={(value) => {
|
|
46
|
-
this.isShowOrgTreePop = value
|
|
47
|
-
}}
|
|
48
|
-
ref="popTree"
|
|
49
|
-
defaultCheckedKeys={this.defaultCheckedKey}
|
|
50
|
-
onHandleChange={this.handleChange}
|
|
51
|
-
/>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
<style scoped lang="less">
|
|
59
|
-
.org-tree-choose {
|
|
60
|
-
.choose-title {
|
|
61
|
-
line-height: 20px;
|
|
62
|
-
margin-bottom: 12px;
|
|
63
|
-
text-align: left;
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
font-weight: 600;
|
|
66
|
-
color: #03050d;
|
|
67
|
-
.title-black {
|
|
68
|
-
font-size: 14px;
|
|
69
|
-
font-weight: normal;
|
|
70
|
-
color: #6e6d72;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
.choose-input {
|
|
74
|
-
height: 32px;
|
|
75
|
-
border-radius: 8px;
|
|
76
|
-
background: #f7f8fa;
|
|
77
|
-
display: flex;
|
|
78
|
-
padding: 0 17px 0 12px;
|
|
79
|
-
line-height: 32px;
|
|
80
|
-
.input-text {
|
|
81
|
-
font-size: 14px;
|
|
82
|
-
color: #b0b3bf;
|
|
83
|
-
}
|
|
84
|
-
.input-text.black {
|
|
85
|
-
color: #03050d;
|
|
86
|
-
}
|
|
87
|
-
.input-image {
|
|
88
|
-
margin: 12px 0 0 auto;
|
|
89
|
-
width: 4px;
|
|
90
|
-
height: 8px;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
.choose-popup {
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
.van-popup {
|
|
97
|
-
height: 100%;
|
|
98
|
-
}
|
|
99
|
-
/deep/.ks-org-tree-header-title-label {
|
|
100
|
-
font-size: 16px;
|
|
101
|
-
}
|
|
102
|
-
</style>
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'SingleChoose',
|
|
4
|
-
props: {
|
|
5
|
-
list: {
|
|
6
|
-
type: Array,
|
|
7
|
-
default () {
|
|
8
|
-
return [
|
|
9
|
-
{
|
|
10
|
-
label: '课程类型',
|
|
11
|
-
value: 10
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
label: '课程类型2',
|
|
15
|
-
value: 20
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: '课程类型3',
|
|
19
|
-
value: 30
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: '课程类型4',
|
|
23
|
-
value: 40
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
title: {
|
|
29
|
-
type: String,
|
|
30
|
-
default () {
|
|
31
|
-
return '请选择'
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
isShowAll: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default () {
|
|
37
|
-
return false
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
divideeQually: {
|
|
41
|
-
type: Number,
|
|
42
|
-
default () {
|
|
43
|
-
return 3
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
data () {
|
|
48
|
-
return {
|
|
49
|
-
active: 0
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
created () {
|
|
53
|
-
this.init()
|
|
54
|
-
},
|
|
55
|
-
methods: {
|
|
56
|
-
init () {
|
|
57
|
-
this.initState()
|
|
58
|
-
},
|
|
59
|
-
initState () {
|
|
60
|
-
},
|
|
61
|
-
select (index) {
|
|
62
|
-
this.active = index
|
|
63
|
-
this.$emit('select', this.list[index])
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
render () {
|
|
67
|
-
const list = this.isShowAll ? [{ label: '全部', value: 0 }].concat(this.list) : this.list
|
|
68
|
-
return <div class="single-choose">
|
|
69
|
-
<div class="choose-title">{this.title}</div>
|
|
70
|
-
<div class="choose-condition">
|
|
71
|
-
{
|
|
72
|
-
list.map((item, index) => <div
|
|
73
|
-
onClick={this.select.bind(this, index)}
|
|
74
|
-
style={{ width: `calc((100% - 16px) / ${this.divideeQually})` }}
|
|
75
|
-
class={['condition-item', this.active === index && 'active']}>
|
|
76
|
-
{item.label}
|
|
77
|
-
</div>)
|
|
78
|
-
}
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<style scoped lang="less">
|
|
86
|
-
.single-choose {
|
|
87
|
-
.choose-title {
|
|
88
|
-
line-height: 20px;
|
|
89
|
-
margin-bottom: 12px;
|
|
90
|
-
text-align: left;
|
|
91
|
-
font-size: 14px;
|
|
92
|
-
font-weight: 600;
|
|
93
|
-
color: #03050d;
|
|
94
|
-
.title-black {
|
|
95
|
-
font-size: 14px;
|
|
96
|
-
font-weight: normal;
|
|
97
|
-
color: #6e6d72;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
.choose-condition {
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-wrap: wrap;
|
|
103
|
-
justify-content: flex-start;
|
|
104
|
-
.condition-item {
|
|
105
|
-
// width: calc((100% - 16px) / 3);
|
|
106
|
-
height: 28px;
|
|
107
|
-
border-radius: 8px;
|
|
108
|
-
box-sizing: border-box;
|
|
109
|
-
background: #f7f8fa;
|
|
110
|
-
text-align: center;
|
|
111
|
-
line-height: 28px;
|
|
112
|
-
margin-bottom: 12px;
|
|
113
|
-
margin-right: 8px;
|
|
114
|
-
color: #03050d;
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
position: relative;
|
|
117
|
-
}
|
|
118
|
-
.condition-item.active {
|
|
119
|
-
// border: 1px solid rgba(121, 114, 254, 0.8);
|
|
120
|
-
background: rgba(121, 114, 254, 0.08);
|
|
121
|
-
color: #7972fe;
|
|
122
|
-
&::after {
|
|
123
|
-
content: " ";
|
|
124
|
-
position: absolute;
|
|
125
|
-
left: 0;
|
|
126
|
-
top: 0;
|
|
127
|
-
width: 200%;
|
|
128
|
-
height: 200%;
|
|
129
|
-
border: 1px solid #7972fe;
|
|
130
|
-
border-radius: 16px;
|
|
131
|
-
box-sizing: border-box;
|
|
132
|
-
-webkit-transform-origin: 0 0;
|
|
133
|
-
transform-origin: 0 0;
|
|
134
|
-
-webkit-transform: scale(0.5);
|
|
135
|
-
transform: scale(0.5);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.condition-item:nth-child(3n) {
|
|
140
|
-
margin-right: 0;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
</style>
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'TextInput',
|
|
4
|
-
props: {
|
|
5
|
-
title: {
|
|
6
|
-
type: String,
|
|
7
|
-
default () {
|
|
8
|
-
return '用户名'
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
data () {
|
|
13
|
-
return {
|
|
14
|
-
value: ''
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
render () {
|
|
18
|
-
return <div class="text-input">
|
|
19
|
-
<div class="input-title">{this.title}</div>
|
|
20
|
-
<div class="input-box">
|
|
21
|
-
<van-field value={this.value}
|
|
22
|
-
onInput={(value) => { this.value = value }}
|
|
23
|
-
maxlength="10"
|
|
24
|
-
clearable={true}
|
|
25
|
-
placeholder={`请输入${this.title}`} />
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<style scoped lang="less">
|
|
33
|
-
.text-input {
|
|
34
|
-
.input-title {
|
|
35
|
-
line-height: 20px;
|
|
36
|
-
margin-bottom: 12px;
|
|
37
|
-
text-align: left;
|
|
38
|
-
font-size: 14px;
|
|
39
|
-
font-weight: 600;
|
|
40
|
-
color: #03050d;
|
|
41
|
-
.title-black {
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
font-weight: normal;
|
|
44
|
-
color: #6e6d72;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.input-box {
|
|
48
|
-
margin-bottom: 12px;
|
|
49
|
-
.van-cell {
|
|
50
|
-
height: 32px;
|
|
51
|
-
padding: 0 12px;
|
|
52
|
-
line-height: 32px;
|
|
53
|
-
border-radius: 8px;
|
|
54
|
-
background-color: #f7f8fa !important;
|
|
55
|
-
font-size: 12px;
|
|
56
|
-
color: #b0b3bf;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
</style>
|