cloud-web-corejs-haier 1.0.42 → 1.0.44
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/package.json +9 -7
- package/src/api/user.js +54 -46
- package/src/components/baseAlert/index.vue +57 -53
- package/src/components/baseInputExport/index.vue +3 -3
- package/src/components/baseTabs/mixins.js +12 -1
- package/src/components/errorMsg/index.vue +78 -78
- package/src/components/excelExport/button.vue +54 -45
- package/src/components/excelExport/exportFieldDialog.vue +3 -3
- package/src/components/excelExport/index.js +1 -43
- package/src/components/excelExport/index.vue +62 -34
- package/src/components/excelExport/mixins.js +74 -87
- package/src/components/excelImport/index.js +1 -62
- package/src/components/excelImport/mixins.js +1 -774
- package/src/components/fileLibrary/index.vue +113 -33
- package/src/components/fileLibrary/propertiesDialog.vue +6 -0
- package/src/components/hiprint/view/design/index.vue +139 -47
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +69 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/onlineTalk/index.vue +328 -6
- package/src/components/onlineTalk/talkUserDialog.vue +280 -0
- package/src/components/wf/addTaskUserdialog.vue +5 -5
- package/src/components/wf/content.vue +1244 -1169
- package/src/components/wf/mixins/setCandidateDialog.js +228 -2
- package/src/components/wf/mixins/setCandidateDialog2.js +115 -100
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
- package/src/components/wf/setCandidateDialog.vue +5 -7
- package/src/components/wf/setCandidateDialog2.vue +14 -10
- package/src/components/wf/wf.js +527 -411
- package/src/components/wf/wfTaskUserRangeDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +129 -91
- package/src/components/xform/form-designer/designer.js +1994 -9
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1756 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +10 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1630 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +153 -40
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +65 -46
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +231 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +7 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +659 -221
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +133 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +18 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +26 -26
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +67 -13
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showViewButton-editor.vue +29 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +20 -17
- package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
- package/src/components/xform/form-render/container-item/sub-form-item.vue +10 -2
- package/src/components/xform/form-render/container-item/table2-item.vue +40 -10
- package/src/components/xform/form-render/indexMixin.js +3705 -1
- package/src/components/xform/icon-picker/icons.json +284 -0
- package/src/components/xform/icon-picker/index.vue +145 -0
- package/src/components/xform/lang/zh-CN.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +366 -2
- package/src/components/xform/utils/formula-util.js +3 -0
- package/src/components/xform/utils/sfc-generator.js +2 -2
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/tableColumnHelper.js +54 -10
- package/src/components/xform/utils/util.js +1547 -1
- package/src/index.js +190 -211
- package/src/lang/locale/en/login.js +26 -19
- package/src/lang/locale/zh/login.js +25 -19
- package/src/layout/components/Sidebar/default.vue +252 -71
- package/src/layout/components/Sidebar/index.vue +6 -1
- package/src/layout/components/TagsView/index.vue +6 -0
- package/src/layout/components/langTool.vue +32 -29
- package/src/layout/defaultLayout.vue +16 -8
- package/src/layout/index.vue +5 -3
- package/src/permission.js +135 -1
- package/src/router/index.js +1 -4
- package/src/store/config/index.js +667 -1
- package/src/store/getters.js +2 -1
- package/src/store/modules/permission.js +332 -1
- package/src/store/modules/settings.js +26 -1
- package/src/store/modules/tagsView.js +190 -1
- package/src/store/modules/user.js +358 -1
- package/src/utils/aes.js +15 -1
- package/src/utils/auth.js +27 -1
- package/src/utils/componentDialog.js +217 -0
- package/src/utils/request.js +368 -1
- package/src/utils/vab.js +1256 -7
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
- package/src/views/bd/setting/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
- package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
- package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
- package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
- package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
- package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
- package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
- package/src/views/bd/setting/formVersion/textDiff.js +102 -0
- package/src/views/bd/setting/form_import_log/edit.vue +6 -3
- package/src/views/bd/setting/form_import_log/list.vue +5 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -83
- package/src/views/bd/setting/form_script/edit1.vue +410 -220
- package/src/views/bd/setting/form_script/form_list.vue +19 -0
- package/src/views/bd/setting/form_script/list.vue +95 -21
- package/src/views/bd/setting/form_script/list1.vue +24 -0
- package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
- package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
- package/src/views/bd/setting/form_script/mixins/list.js +163 -95
- package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
- package/src/views/bd/setting/form_template/edit.vue +355 -205
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +49 -74
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
- package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
- package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +114 -82
- package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
- package/src/views/bd/setting/request_setting/edit.vue +300 -300
- package/src/views/bd/setting/request_setting/list.vue +15 -25
- package/src/views/bd/setting/table_model/edit.vue +702 -498
- package/src/views/bd/setting/table_model/list.vue +28 -0
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
- package/src/views/bd/setting/table_model/mixins/list.js +55 -20
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
- package/src/views/bd/setting/utils/index.js +15 -0
- package/src/views/user/api_request/list.vue +203 -203
- package/src/views/user/bill_setting/list.vue +345 -345
- package/src/views/user/code_rules/list.vue +204 -204
- package/src/views/user/common_attribute/list.vue +378 -378
- package/src/views/user/common_script/list.vue +341 -341
- package/src/views/user/company_info/dialog.vue +80 -49
- package/src/views/user/country/list.vue +197 -197
- package/src/views/user/extend_datasource/dialog.vue +0 -3
- package/src/views/user/extend_datasource/edit.vue +1 -2
- package/src/views/user/extend_datasource/list.vue +221 -224
- package/src/views/user/fieldTranslation/editDialog.vue +1 -1
- package/src/views/user/fieldTranslation/list.vue +473 -473
- package/src/views/user/field_values_invisible/list.vue +207 -207
- package/src/views/user/file_type/list.vue +271 -271
- package/src/views/user/file_view_area/list.vue +331 -331
- package/src/views/user/form/vform/designer.vue +303 -287
- package/src/views/user/form/vform/formFieldMapping.js +2 -3
- package/src/views/user/form/view/edit.vue +19 -1
- package/src/views/user/form/view/list.vue +59 -17
- package/src/views/user/groups/list.vue +158 -158
- package/src/views/user/home/default.vue +274 -182
- package/src/views/user/home/default2.vue +1148 -0
- package/src/views/user/home/index.vue +2 -1
- package/src/views/user/lang_tag/list.vue +170 -170
- package/src/views/user/language_setting/list.vue +208 -208
- package/src/views/user/ledger_library/list.vue +12 -10
- package/src/views/user/login/default.vue +1 -1
- package/src/views/user/login/indexMixin.js +204 -169
- package/src/views/user/menu/list.vue +575 -575
- package/src/views/user/notify_message/dialog.vue +7 -1
- package/src/views/user/notify_template/list.vue +192 -192
- package/src/views/user/notify_template/list2.vue +190 -190
- package/src/views/user/position/list.vue +188 -188
- package/src/views/user/project_tag/list.vue +175 -175
- package/src/views/user/push_setting/list.vue +236 -236
- package/src/views/user/request_setting/list.vue +248 -248
- package/src/views/user/role/list.vue +182 -182
- package/src/views/user/system_notice/infoDialog.vue +61 -2
- package/src/views/user/system_notice/list.vue +203 -203
- package/src/views/user/system_parameter/list.vue +141 -141
- package/src/views/user/user/edit.vue +45 -0
- package/src/views/user/user/form_list.vue +245 -245
- package/src/views/user/user/info.vue +253 -140
- package/src/views/user/user_log_classify/list.vue +197 -197
- package/src/views/user/wf/iframe/index.vue +46 -46
- package/src/views/user/wf/wfReport/index.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/list.vue +659 -659
- package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
- package/src/views/user/wf/wf_manage/list.vue +795 -795
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -106
- package/src/views/user/wf/wf_obj_config/dialog.vue +2 -2
- package/src/views/user/wf/wf_obj_config/edit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/edit_form.vue +2 -2
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +4 -4
- package/src/views/user/wf/wf_obj_config/list.vue +28 -28
- package/src/views/user/wf/wf_obj_config/list_form.vue +5 -5
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -292
- package/src/views/user/wf/wf_param/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/list.vue +321 -319
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +369 -367
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +401 -399
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +6 -6
- package/src/views/user/wf/wf_work_calendar/date.js +84 -83
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -6
- package/src/views/user/workbench_menu/list.vue +555 -0
|
@@ -1,401 +1,403 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="calendar">
|
|
3
|
-
<div class="now-mouth"><i class="el-icon-timer"></i>{{ displayDate }}</div>
|
|
4
|
-
<div class="calendar_sd">
|
|
5
|
-
<div class="calendar-title">
|
|
6
|
-
<div class="calendar-select weeks">
|
|
7
|
-
<div v-for="(week,index) in weekName " :key="index" class="calendar-select-row">
|
|
8
|
-
<input
|
|
9
|
-
:id="'calendarSet_calendar_week_input_'+genID()"
|
|
10
|
-
:ref="'week_'+index"
|
|
11
|
-
class="checkbox"
|
|
12
|
-
type="checkbox"
|
|
13
|
-
:name="week"
|
|
14
|
-
@change="checked('week',index)"
|
|
15
|
-
>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="calendar-select-row"/>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="calendar-select weeks">
|
|
20
|
-
<div v-for="(week, index) in weekName" :key="index" class="calendar-select-row">
|
|
21
|
-
<div class="week"> {{ week }}</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="calendar-select-row">
|
|
24
|
-
<input :id="'calendarSet_calendar_week_input_'+genID()" ref="checkAll" class="checkbox" type="checkbox"
|
|
25
|
-
@change="checkAll">
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="calendar-body">
|
|
30
|
-
<div v-for="(week, weeKIndex) in calendarDay" :key="weeKIndex">
|
|
31
|
-
<div class="calendar-select">
|
|
32
|
-
<div
|
|
33
|
-
v-for="(day, dayIndex) in week"
|
|
34
|
-
:key="dayIndex"
|
|
35
|
-
class="calendar-select-row"
|
|
36
|
-
:class="{isSelected: day.select}"
|
|
37
|
-
@click="selectDay(day)"
|
|
38
|
-
>
|
|
39
|
-
<div v-show="day.day" class="day">
|
|
40
|
-
<span class="t1">{{ day.day }}</span>
|
|
41
|
-
<span class="t2">
|
|
42
|
-
<template v-if="!!day.lunarDay">
|
|
43
|
-
{{
|
|
44
|
-
day.lunarDay.lunarFestival
|
|
45
|
-
? day.lunarDay.lunarFestival
|
|
46
|
-
: day.lunarDay.festival
|
|
47
|
-
? day.lunarDay.festival
|
|
48
|
-
: day.lunarDay.IDayCn
|
|
49
|
-
? day.lunarDay.IMonthCn
|
|
50
|
-
: day.lunarDay.IDayCn
|
|
51
|
-
}}
|
|
52
|
-
</template>
|
|
53
|
-
</span>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="calendar-select-row">
|
|
57
|
-
<input
|
|
58
|
-
v-show="week[0].day || week[6].day"
|
|
59
|
-
:id="'calendarSet_calendar_week_input_'+genID()"
|
|
60
|
-
:ref="'row_'+weeKIndex"
|
|
61
|
-
class="checkbox"
|
|
62
|
-
type="checkbox"
|
|
63
|
-
@change="checked('row',weeKIndex)"
|
|
64
|
-
>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
|
|
71
|
-
</div>
|
|
72
|
-
</template>
|
|
73
|
-
|
|
74
|
-
<script>
|
|
75
|
-
/**
|
|
76
|
-
* Canlendar Module
|
|
77
|
-
* ----------------------
|
|
78
|
-
* Author:zoboy
|
|
79
|
-
* Date: 2019.06.12
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
import moment from 'moment'
|
|
83
|
-
import calendar from "../date";
|
|
84
|
-
|
|
85
|
-
export default {
|
|
86
|
-
name: 'Canlendar',
|
|
87
|
-
components: {},
|
|
88
|
-
props: {
|
|
89
|
-
mouth: {
|
|
90
|
-
type: String,
|
|
91
|
-
required: true
|
|
92
|
-
},
|
|
93
|
-
calendarOptiondDay: {
|
|
94
|
-
type: Array,
|
|
95
|
-
required: true
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
data() {
|
|
99
|
-
return {
|
|
100
|
-
displayDate: '',
|
|
101
|
-
nowDay: '',
|
|
102
|
-
calendarDay: [],
|
|
103
|
-
checkedDay: [],
|
|
104
|
-
uncheckedDay: [],
|
|
105
|
-
weekName: ['日', '一', '二', '三', '四', '五', '六']
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
computed: {},
|
|
109
|
-
watch: {
|
|
110
|
-
mouth(newMouth) {
|
|
111
|
-
this.createCalendar(newMouth)
|
|
112
|
-
},
|
|
113
|
-
calendarOptiondDay(val) {
|
|
114
|
-
if (val) {
|
|
115
|
-
this.createCalendar(this.mouth)
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
calendarDay: {
|
|
119
|
-
handler(canlendar) {
|
|
120
|
-
this.checkedDay = []
|
|
121
|
-
this.uncheckedDay = []
|
|
122
|
-
let row = new Set()
|
|
123
|
-
let column = new Set()
|
|
124
|
-
canlendar.forEach(week => {
|
|
125
|
-
week.forEach(day => {
|
|
126
|
-
if (day && day.day) {
|
|
127
|
-
if (day.select) {
|
|
128
|
-
this.checkedDay.push(day)
|
|
129
|
-
} else {
|
|
130
|
-
this.uncheckedDay.push(day)
|
|
131
|
-
row.add(day.week)
|
|
132
|
-
column.add(day.row)
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
})
|
|
136
|
-
})
|
|
137
|
-
let week = [0, 1, 2, 3, 4, 5, 6]
|
|
138
|
-
week.forEach(r => {
|
|
139
|
-
let weekRef = 'week_' + r
|
|
140
|
-
let rowRef = 'row_' + r
|
|
141
|
-
if (this.$refs[weekRef])
|
|
142
|
-
if (row.has(r)) this.$refs[weekRef][0].checked = false
|
|
143
|
-
else this.$refs[weekRef][0].checked = true
|
|
144
|
-
if (this.$refs[rowRef])
|
|
145
|
-
if (column.has(r)) this.$refs[rowRef][0].checked = false
|
|
146
|
-
else this.$refs[rowRef][0].checked = true
|
|
147
|
-
})
|
|
148
|
-
// console.log(row,column)
|
|
149
|
-
if (row && row.size > 0 && column && column.size > 0) {
|
|
150
|
-
this.$refs.checkAll.checked = false
|
|
151
|
-
this.$emit('checkedAll', {'mouth': this.mouth, 'checkedAll': false})
|
|
152
|
-
} else {
|
|
153
|
-
this.$refs.checkAll.checked = true
|
|
154
|
-
this.$emit('checkedAll', {'mouth': this.mouth, 'checkedAll': true})
|
|
155
|
-
}
|
|
156
|
-
this.$emit('checkedDate', {
|
|
157
|
-
'mouth': this.mouth,
|
|
158
|
-
'checkedDay': this.checkedDay,
|
|
159
|
-
'uncheckedDay': this.uncheckedDay
|
|
160
|
-
})
|
|
161
|
-
// console.log(this.checkedDay)
|
|
162
|
-
},
|
|
163
|
-
deep: true
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
created() {
|
|
167
|
-
this.createCalendar(this.mouth)
|
|
168
|
-
},
|
|
169
|
-
methods: {
|
|
170
|
-
selectDay(day) {
|
|
171
|
-
if (day && day.day) this.$emit('selectDay', day)
|
|
172
|
-
},
|
|
173
|
-
checked(target, index) {
|
|
174
|
-
const checkRef = target + '_' + index
|
|
175
|
-
const check = this.$refs[checkRef][0].checked
|
|
176
|
-
this.calendarDay.forEach(week => {
|
|
177
|
-
week.forEach(day => {
|
|
178
|
-
if (day && day.day && day[target] === index) day.select = check
|
|
179
|
-
})
|
|
180
|
-
})
|
|
181
|
-
},
|
|
182
|
-
checkWork(isOnWork, select) {
|
|
183
|
-
this.calendarDay.forEach(week => {
|
|
184
|
-
week.forEach(day => {
|
|
185
|
-
if (day && day.day) {
|
|
186
|
-
if (isOnWork && (day.week > 0 && day.week < 6)) {
|
|
187
|
-
day.select = select
|
|
188
|
-
} else if (!isOnWork && (day.week === 0 || day.week === 6)) {
|
|
189
|
-
day.select = select
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
})
|
|
193
|
-
})
|
|
194
|
-
},
|
|
195
|
-
checkWeekend(flag, select) {
|
|
196
|
-
this.calendarDay.forEach(week => {
|
|
197
|
-
week.forEach(day => {
|
|
198
|
-
if (day && day.day) {
|
|
199
|
-
if (flag
|
|
200
|
-
//奇数日周六
|
|
201
|
-
if (day.day % 2 !== 0 && day.week
|
|
202
|
-
day.select = select
|
|
203
|
-
}
|
|
204
|
-
} else if (flag
|
|
205
|
-
//偶数日周六
|
|
206
|
-
if (day.day % 2 === 0 && day.week
|
|
207
|
-
day.select = select
|
|
208
|
-
}
|
|
209
|
-
} else if (flag
|
|
210
|
-
//周日
|
|
211
|
-
if (day.week
|
|
212
|
-
day.select = select
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
})
|
|
217
|
-
})
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
checkAll() {
|
|
222
|
-
const check = this.$refs.checkAll.checked
|
|
223
|
-
this.calendarDay.forEach(week => {
|
|
224
|
-
week.forEach(day => {
|
|
225
|
-
if (day && day.day) day.select = check
|
|
226
|
-
})
|
|
227
|
-
})
|
|
228
|
-
},
|
|
229
|
-
createCalendar(mouth) {
|
|
230
|
-
if (mouth) this.nowDay = moment(mouth).format('YYYY-MM')
|
|
231
|
-
else this.nowDay = moment().format('YYYY-MM')
|
|
232
|
-
this.displayDate = moment(this.nowDay).format('YYYY年MM月')
|
|
233
|
-
this.calendarDay = this.getCurrMonthDays(this.nowDay)
|
|
234
|
-
},
|
|
235
|
-
getCurrMonthDays(theDay) {
|
|
236
|
-
// 获取当前月的第一天
|
|
237
|
-
const start = moment(theDay).add('month', 0).format('YYYY-MM') + '-01'
|
|
238
|
-
// 获取上一个月的总天数
|
|
239
|
-
const lastMonthDays = moment(this.date).subtract(1, 'month').daysInMonth()
|
|
240
|
-
// 构造日历的42个格子
|
|
241
|
-
const daysArr = [[], [], [], [], [], []]
|
|
242
|
-
// 获取当前月的第一天是星期几
|
|
243
|
-
const currentWeekday = moment(start).format('E')
|
|
244
|
-
// 获取当前月的总天数
|
|
245
|
-
const nowMouthDays = moment(theDay).daysInMonth()
|
|
246
|
-
for (let i = 0; i < 7; i++) { // 每一周
|
|
247
|
-
// 虚拟天数
|
|
248
|
-
let virtualDay
|
|
249
|
-
if (currentWeekday - 7 === 0) virtualDay = (lastMonthDays - currentWeekday) + i + 8
|
|
250
|
-
else virtualDay = (lastMonthDays - currentWeekday) + i + 1
|
|
251
|
-
for (let j = 0; j < daysArr.length; j++) { // 每一天
|
|
252
|
-
daysArr[j][i] = this.getDay(i, j, start, virtualDay + (j * 7), lastMonthDays, nowMouthDays) // 每一行*7
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
return daysArr
|
|
256
|
-
},
|
|
257
|
-
getDay(week, row, start, day, lastMonthDays, nowMouthDays, index) {
|
|
258
|
-
let dayObj = {}
|
|
259
|
-
if (day <= lastMonthDays) { // 上一月
|
|
260
|
-
// return day
|
|
261
|
-
dayObj = {'day': ''}
|
|
262
|
-
} else if (day <= (lastMonthDays + nowMouthDays)) {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
const dayNum = day - lastMonthDays
|
|
266
|
-
let dateObj = moment(start).add(dayNum - 1, 'days');
|
|
267
|
-
const date = dateObj.format('YYYY-MM-DD')
|
|
268
|
-
let date2 = dateObj.toDate();
|
|
269
|
-
let lunarDay = calendar.solar2lunar(date2.getFullYear(), (date2.getMonth() + 1), date2.getDate());
|
|
270
|
-
dayObj = {
|
|
271
|
-
day: dayNum,
|
|
272
|
-
date: date,
|
|
273
|
-
week: week,
|
|
274
|
-
row: row,
|
|
275
|
-
lunarDay: lunarDay,
|
|
276
|
-
isToday: new Date(date).getTime() === new Date(moment().format('YYYY-MM-DD')).getTime(),
|
|
277
|
-
select: !!this.calendarOptiondDay.find((day) => day.date === date)
|
|
278
|
-
}
|
|
279
|
-
} else { // 下一月
|
|
280
|
-
// return day - (lastMonthDays + nowMouthDays)
|
|
281
|
-
dayObj = {'day': ''}
|
|
282
|
-
}
|
|
283
|
-
return dayObj
|
|
284
|
-
},
|
|
285
|
-
genID() {
|
|
286
|
-
return Number(Math.random().toString().substr(3, 4) + Date.now()).toString(36)
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
</script>
|
|
291
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="calendar">
|
|
3
|
+
<div class="now-mouth"><i class="el-icon-timer"></i>{{ displayDate }}</div>
|
|
4
|
+
<div class="calendar_sd">
|
|
5
|
+
<div class="calendar-title">
|
|
6
|
+
<div class="calendar-select weeks">
|
|
7
|
+
<div v-for="(week,index) in weekName " :key="index" class="calendar-select-row">
|
|
8
|
+
<input
|
|
9
|
+
:id="'calendarSet_calendar_week_input_'+genID()"
|
|
10
|
+
:ref="'week_'+index"
|
|
11
|
+
class="checkbox"
|
|
12
|
+
type="checkbox"
|
|
13
|
+
:name="week"
|
|
14
|
+
@change="checked('week',index)"
|
|
15
|
+
>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="calendar-select-row"/>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="calendar-select weeks">
|
|
20
|
+
<div v-for="(week, index) in weekName" :key="index" class="calendar-select-row">
|
|
21
|
+
<div class="week"> {{ week }}</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="calendar-select-row">
|
|
24
|
+
<input :id="'calendarSet_calendar_week_input_'+genID()" ref="checkAll" class="checkbox" type="checkbox"
|
|
25
|
+
@change="checkAll">
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="calendar-body">
|
|
30
|
+
<div v-for="(week, weeKIndex) in calendarDay" :key="weeKIndex">
|
|
31
|
+
<div class="calendar-select">
|
|
32
|
+
<div
|
|
33
|
+
v-for="(day, dayIndex) in week"
|
|
34
|
+
:key="dayIndex"
|
|
35
|
+
class="calendar-select-row"
|
|
36
|
+
:class="{isSelected: day.select}"
|
|
37
|
+
@click="selectDay(day)"
|
|
38
|
+
>
|
|
39
|
+
<div v-show="day.day" class="day">
|
|
40
|
+
<span class="t1">{{ day.day }}</span>
|
|
41
|
+
<span class="t2">
|
|
42
|
+
<template v-if="!!day.lunarDay">
|
|
43
|
+
{{
|
|
44
|
+
day.lunarDay.lunarFestival
|
|
45
|
+
? day.lunarDay.lunarFestival
|
|
46
|
+
: day.lunarDay.festival
|
|
47
|
+
? day.lunarDay.festival
|
|
48
|
+
: day.lunarDay.IDayCn === "初一"
|
|
49
|
+
? day.lunarDay.IMonthCn
|
|
50
|
+
: day.lunarDay.IDayCn
|
|
51
|
+
}}
|
|
52
|
+
</template>
|
|
53
|
+
</span>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="calendar-select-row">
|
|
57
|
+
<input
|
|
58
|
+
v-show="week[0].day || week[6].day"
|
|
59
|
+
:id="'calendarSet_calendar_week_input_'+genID()"
|
|
60
|
+
:ref="'row_'+weeKIndex"
|
|
61
|
+
class="checkbox"
|
|
62
|
+
type="checkbox"
|
|
63
|
+
@change="checked('row',weeKIndex)"
|
|
64
|
+
>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
</div>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<script>
|
|
75
|
+
/**
|
|
76
|
+
* Canlendar Module
|
|
77
|
+
* ----------------------
|
|
78
|
+
* Author:zoboy
|
|
79
|
+
* Date: 2019.06.12
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
import moment from 'moment'
|
|
83
|
+
import calendar from "../date";
|
|
84
|
+
|
|
85
|
+
export default {
|
|
86
|
+
name: 'Canlendar',
|
|
87
|
+
components: {},
|
|
88
|
+
props: {
|
|
89
|
+
mouth: {
|
|
90
|
+
type: String,
|
|
91
|
+
required: true
|
|
92
|
+
},
|
|
93
|
+
calendarOptiondDay: {
|
|
94
|
+
type: Array,
|
|
95
|
+
required: true
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
data() {
|
|
99
|
+
return {
|
|
100
|
+
displayDate: '',
|
|
101
|
+
nowDay: '',
|
|
102
|
+
calendarDay: [],
|
|
103
|
+
checkedDay: [],
|
|
104
|
+
uncheckedDay: [],
|
|
105
|
+
weekName: ['日', '一', '二', '三', '四', '五', '六']
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
computed: {},
|
|
109
|
+
watch: {
|
|
110
|
+
mouth(newMouth) {
|
|
111
|
+
this.createCalendar(newMouth)
|
|
112
|
+
},
|
|
113
|
+
calendarOptiondDay(val) {
|
|
114
|
+
if (val) {
|
|
115
|
+
this.createCalendar(this.mouth)
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
calendarDay: {
|
|
119
|
+
handler(canlendar) {
|
|
120
|
+
this.checkedDay = []
|
|
121
|
+
this.uncheckedDay = []
|
|
122
|
+
let row = new Set()
|
|
123
|
+
let column = new Set()
|
|
124
|
+
canlendar.forEach(week => {
|
|
125
|
+
week.forEach(day => {
|
|
126
|
+
if (day && day.day) {
|
|
127
|
+
if (day.select) {
|
|
128
|
+
this.checkedDay.push(day)
|
|
129
|
+
} else {
|
|
130
|
+
this.uncheckedDay.push(day)
|
|
131
|
+
row.add(day.week)
|
|
132
|
+
column.add(day.row)
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
})
|
|
137
|
+
let week = [0, 1, 2, 3, 4, 5, 6]
|
|
138
|
+
week.forEach(r => {
|
|
139
|
+
let weekRef = 'week_' + r
|
|
140
|
+
let rowRef = 'row_' + r
|
|
141
|
+
if (this.$refs[weekRef])
|
|
142
|
+
if (row.has(r)) this.$refs[weekRef][0].checked = false
|
|
143
|
+
else this.$refs[weekRef][0].checked = true
|
|
144
|
+
if (this.$refs[rowRef])
|
|
145
|
+
if (column.has(r)) this.$refs[rowRef][0].checked = false
|
|
146
|
+
else this.$refs[rowRef][0].checked = true
|
|
147
|
+
})
|
|
148
|
+
// console.log(row,column)
|
|
149
|
+
if (row && row.size > 0 && column && column.size > 0) {
|
|
150
|
+
this.$refs.checkAll.checked = false
|
|
151
|
+
this.$emit('checkedAll', {'mouth': this.mouth, 'checkedAll': false})
|
|
152
|
+
} else {
|
|
153
|
+
this.$refs.checkAll.checked = true
|
|
154
|
+
this.$emit('checkedAll', {'mouth': this.mouth, 'checkedAll': true})
|
|
155
|
+
}
|
|
156
|
+
this.$emit('checkedDate', {
|
|
157
|
+
'mouth': this.mouth,
|
|
158
|
+
'checkedDay': this.checkedDay,
|
|
159
|
+
'uncheckedDay': this.uncheckedDay
|
|
160
|
+
})
|
|
161
|
+
// console.log(this.checkedDay)
|
|
162
|
+
},
|
|
163
|
+
deep: true
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
created() {
|
|
167
|
+
this.createCalendar(this.mouth)
|
|
168
|
+
},
|
|
169
|
+
methods: {
|
|
170
|
+
selectDay(day) {
|
|
171
|
+
if (day && day.day) this.$emit('selectDay', day)
|
|
172
|
+
},
|
|
173
|
+
checked(target, index) {
|
|
174
|
+
const checkRef = target + '_' + index
|
|
175
|
+
const check = this.$refs[checkRef][0].checked
|
|
176
|
+
this.calendarDay.forEach(week => {
|
|
177
|
+
week.forEach(day => {
|
|
178
|
+
if (day && day.day && day[target] === index) day.select = check
|
|
179
|
+
})
|
|
180
|
+
})
|
|
181
|
+
},
|
|
182
|
+
checkWork(isOnWork, select) {
|
|
183
|
+
this.calendarDay.forEach(week => {
|
|
184
|
+
week.forEach(day => {
|
|
185
|
+
if (day && day.day) {
|
|
186
|
+
if (isOnWork && (day.week > 0 && day.week < 6)) {
|
|
187
|
+
day.select = select
|
|
188
|
+
} else if (!isOnWork && (day.week === 0 || day.week === 6)) {
|
|
189
|
+
day.select = select
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
})
|
|
193
|
+
})
|
|
194
|
+
},
|
|
195
|
+
checkWeekend(flag, select) {
|
|
196
|
+
this.calendarDay.forEach(week => {
|
|
197
|
+
week.forEach(day => {
|
|
198
|
+
if (day && day.day) {
|
|
199
|
+
if (flag === 1) {
|
|
200
|
+
//奇数日周六
|
|
201
|
+
if (day.day % 2 !== 0 && day.week === 6) {
|
|
202
|
+
day.select = select
|
|
203
|
+
}
|
|
204
|
+
} else if (flag === 2) {
|
|
205
|
+
//偶数日周六
|
|
206
|
+
if (day.day % 2 === 0 && day.week === 6) {
|
|
207
|
+
day.select = select
|
|
208
|
+
}
|
|
209
|
+
} else if (flag === 3) {
|
|
210
|
+
//周日
|
|
211
|
+
if (day.week === 0) {
|
|
212
|
+
day.select = select
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
})
|
|
217
|
+
})
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
checkAll() {
|
|
222
|
+
const check = this.$refs.checkAll.checked
|
|
223
|
+
this.calendarDay.forEach(week => {
|
|
224
|
+
week.forEach(day => {
|
|
225
|
+
if (day && day.day) day.select = check
|
|
226
|
+
})
|
|
227
|
+
})
|
|
228
|
+
},
|
|
229
|
+
createCalendar(mouth) {
|
|
230
|
+
if (mouth) this.nowDay = moment(mouth).format('YYYY-MM')
|
|
231
|
+
else this.nowDay = moment().format('YYYY-MM')
|
|
232
|
+
this.displayDate = moment(this.nowDay).format('YYYY年MM月')
|
|
233
|
+
this.calendarDay = this.getCurrMonthDays(this.nowDay)
|
|
234
|
+
},
|
|
235
|
+
getCurrMonthDays(theDay) {
|
|
236
|
+
// 获取当前月的第一天
|
|
237
|
+
const start = moment(theDay).add('month', 0).format('YYYY-MM') + '-01'
|
|
238
|
+
// 获取上一个月的总天数
|
|
239
|
+
const lastMonthDays = moment(this.date).subtract(1, 'month').daysInMonth()
|
|
240
|
+
// 构造日历的42个格子
|
|
241
|
+
const daysArr = [[], [], [], [], [], []]
|
|
242
|
+
// 获取当前月的第一天是星期几
|
|
243
|
+
const currentWeekday = moment(start).format('E')
|
|
244
|
+
// 获取当前月的总天数
|
|
245
|
+
const nowMouthDays = moment(theDay).daysInMonth()
|
|
246
|
+
for (let i = 0; i < 7; i++) { // 每一周
|
|
247
|
+
// 虚拟天数
|
|
248
|
+
let virtualDay
|
|
249
|
+
if (currentWeekday - 7 === 0) virtualDay = (lastMonthDays - currentWeekday) + i + 8
|
|
250
|
+
else virtualDay = (lastMonthDays - currentWeekday) + i + 1
|
|
251
|
+
for (let j = 0; j < daysArr.length; j++) { // 每一天
|
|
252
|
+
daysArr[j][i] = this.getDay(i, j, start, virtualDay + (j * 7), lastMonthDays, nowMouthDays) // 每一行*7
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return daysArr
|
|
256
|
+
},
|
|
257
|
+
getDay(week, row, start, day, lastMonthDays, nowMouthDays, index) {
|
|
258
|
+
let dayObj = {}
|
|
259
|
+
if (day <= lastMonthDays) { // 上一月
|
|
260
|
+
// return day
|
|
261
|
+
dayObj = {'day': ''}
|
|
262
|
+
} else if (day <= (lastMonthDays + nowMouthDays)) {
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
const dayNum = day - lastMonthDays
|
|
266
|
+
let dateObj = moment(start).add(dayNum - 1, 'days');
|
|
267
|
+
const date = dateObj.format('YYYY-MM-DD')
|
|
268
|
+
let date2 = dateObj.toDate();
|
|
269
|
+
let lunarDay = calendar.solar2lunar(date2.getFullYear(), (date2.getMonth() + 1), date2.getDate());
|
|
270
|
+
dayObj = {
|
|
271
|
+
day: dayNum,
|
|
272
|
+
date: date,
|
|
273
|
+
week: week,
|
|
274
|
+
row: row,
|
|
275
|
+
lunarDay: lunarDay,
|
|
276
|
+
isToday: new Date(date).getTime() === new Date(moment().format('YYYY-MM-DD')).getTime(),
|
|
277
|
+
select: !!this.calendarOptiondDay.find((day) => day.date === date)
|
|
278
|
+
}
|
|
279
|
+
} else { // 下一月
|
|
280
|
+
// return day - (lastMonthDays + nowMouthDays)
|
|
281
|
+
dayObj = {'day': ''}
|
|
282
|
+
}
|
|
283
|
+
return dayObj
|
|
284
|
+
},
|
|
285
|
+
genID() {
|
|
286
|
+
return Number(Math.random().toString().substr(3, 4) + Date.now()).toString(36)
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
</script>
|
|
291
|
+
|
|
292
292
|
<style lang="scss" scoped>
|
|
293
|
-
.
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
//
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
margin-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
//
|
|
305
|
-
// border-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
min-
|
|
293
|
+
@import '~@/styles/variables.scss';
|
|
294
|
+
.calendar {
|
|
295
|
+
margin: 10px 17px;
|
|
296
|
+
//width: 264px;
|
|
297
|
+
// height: 224px;
|
|
298
|
+
display: flex;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
margin-bottom: 16px;
|
|
301
|
+
margin-right: 16px;
|
|
302
|
+
|
|
303
|
+
.calendar_sd {
|
|
304
|
+
//width: 264px;
|
|
305
|
+
// border-top: 1px solid #ddd;
|
|
306
|
+
// border-left: 1px solid #ddd;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.now-mouth {
|
|
310
|
+
margin-bottom: 8px;
|
|
311
|
+
font-weight: 549;
|
|
312
|
+
|
|
313
|
+
> i {
|
|
314
|
+
margin-right: 4px;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.calendar-title {
|
|
319
|
+
.calendar-week {
|
|
320
|
+
min-width: 35px;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.calendar-select {
|
|
325
|
+
display: flex;
|
|
326
|
+
flex-direction: row;
|
|
327
|
+
|
|
328
|
+
&.weeks {
|
|
329
|
+
.calendar-select-row {
|
|
330
|
+
min-height: 36px;
|
|
331
|
+
line-height: 28px;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.calendar-select-row {
|
|
336
|
+
min-width: 46px;
|
|
337
|
+
min-height: 48px;
|
|
337
338
|
border: 1px solid #ddd;
|
|
338
|
-
|
|
339
|
-
margin-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
//
|
|
345
|
-
//
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
color:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
|
|
339
|
+
background:#FFF;
|
|
340
|
+
margin-left: -1px;
|
|
341
|
+
margin-top: -1px;
|
|
342
|
+
position: relative;
|
|
343
|
+
text-align: center;
|
|
344
|
+
line-height: 40px;
|
|
345
|
+
// &:last-child {
|
|
346
|
+
// border-right: none;
|
|
347
|
+
// }
|
|
348
|
+
.checkbox {
|
|
349
|
+
line-height: 34px;
|
|
350
|
+
text-align: center;
|
|
351
|
+
background-color: #ddd;
|
|
352
|
+
display: inline-block;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.week {
|
|
356
|
+
line-height: 34px;
|
|
357
|
+
text-align: center;
|
|
358
|
+
background-color: #f3f3f3;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.calendar-body {
|
|
365
|
+
.day {
|
|
366
|
+
line-height: 17px;
|
|
367
|
+
text-align: center;
|
|
368
|
+
cursor: pointer;
|
|
369
|
+
padding: 8px 0px 5px;
|
|
370
|
+
|
|
371
|
+
span {
|
|
372
|
+
display: block;
|
|
373
|
+
|
|
374
|
+
&.t2 {
|
|
375
|
+
font-size: 12px;
|
|
376
|
+
zoom: 0.8;
|
|
377
|
+
opacity: 0.6;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.isSelected {
|
|
383
|
+
background-color:transparentize($baseColor,0.92);
|
|
384
|
+
color: $baseColor;
|
|
385
|
+
|
|
386
|
+
&:before {
|
|
387
|
+
content: "休";
|
|
388
|
+
display: inline-block;
|
|
389
|
+
position: absolute;
|
|
390
|
+
right: -1px;
|
|
391
|
+
top: 0;
|
|
392
|
+
font-size: 12px;
|
|
393
|
+
zoom: 0.85;
|
|
394
|
+
background: $yellow;
|
|
395
|
+
padding: 0 2px 0 3px;
|
|
396
|
+
color: #FFF;
|
|
397
|
+
border-radius: 0 0 0 12px;
|
|
398
|
+
line-height: 17px;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
</style>
|