AttendanceRuleList.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. <template>
  2. <a-card :bordered="false">
  3. <!-- 查询区域 -->
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline" @keyup.enter.native="searchQuery">
  6. <a-row :gutter="24">
  7. <a-col :xl="6" :lg="6" :md="6" :sm="6">
  8. <a-form-item label="员工名称">
  9. <a-input placeholder="请输入员工名称" v-model="queryParam.name"></a-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :xl="6" :lg="6" :md="6" :sm="6">
  13. <a-form-item label="部门名称">
  14. <a-input @click="openModal" placeholder="请点击选择部门" v-model="departNames" readOnly>
  15. <a-icon slot="prefix" type="cluster" title="部门选择控件" />
  16. <a-icon v-if="queryParam.dept!=null&&queryParam.dept!=''" slot="suffix" type="close-circle"
  17. @click="handleEmpty" title="清空" />
  18. </a-input>
  19. </a-form-item>
  20. </a-col>
  21. <a-col :xl="6" :lg="6" :md="6" :sm="6">
  22. <a-form-item label="日期">
  23. <a-month-picker valueFormat="YYYY-MM-DD HH:mm:ss" format="YYYY-MM" placeholder="请选择日期"
  24. v-model="queryParam.ShiftDate" />
  25. </a-form-item>
  26. </a-col>
  27. <a-col :xl="6" :lg="6" :md="6" :sm="6">
  28. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  29. <a-button type="primary" @click="searchQueryst" icon="search">查询</a-button>
  30. <!-- <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> -->
  31. </span>
  32. </a-col>
  33. </a-row>
  34. </a-form>
  35. </div>
  36. <div>
  37. <a-button @click="handleAddts()" type="primary" icon="plus" v-has="'UserShift:add'" v-if="isColse">调整</a-button>
  38. <a-tabs default-active-key="2" @change="callback">
  39. <a-tab-pane key="2" tab="按班次上下班">
  40. <a-table bordered rowKey="id" :loading="loading" :data-source="dataSource" :columns="columns"
  41. :scroll="{ x:300,y:400}" :pagination="ipagination" @change="handleTableChange"
  42. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}">
  43. <template v-for='(dayobject,i) in days' :slot="dayobject.day.getDate()" style="color: #ff6b81">
  44. <div style="height: 35px;">
  45. <div style="text-align: center;margin-top: -10px;">
  46. <p>{{dayobject.day.getDate()}}</p>
  47. <div style="margin-top: -10px;">
  48. <p v-if='dayobject.day.getDay()==0'>日</p>
  49. <p v-else-if='dayobject.day.getDay()==1'>一</p>
  50. <p v-else-if='dayobject.day.getDay()==2'>二</p>
  51. <p v-else-if='dayobject.day.getDay()==3'>三</p>
  52. <p v-else-if='dayobject.day.getDay()==4'>四</p>
  53. <p v-else-if='dayobject.day.getDay()==5'>五</p>
  54. <p v-else-if='dayobject.day.getDay()==6'>六</p>
  55. </div>
  56. </div>
  57. </div>
  58. </template>
  59. <span v-for='(d,i) in tpdata' style="margin-left: -6px;" :slot="d" slot-scope="text, record, index">
  60. <span style="margin-left: -7px;">
  61. <a-tag color="blue" v-if="text=='休息'">{{text}}</a-tag>
  62. <a-tag color="#87d068" v-else-if="text!=''&&text!=null">{{text}}</a-tag>
  63. </span>
  64. </span>
  65. </a-table>
  66. <a-table bordered :data-source="dataSources" :loading="loading" :columns="columnst" :scroll="{ x:300 }"
  67. :pagination="ipaginations" @change="handleTableChanges">
  68. <template v-for='(dayobject,i) in days' :slot="dayobject.day.getDate()" style="color: #ff6b81">
  69. <div style="height: 35px;">
  70. <div style="text-align: center;margin-top: -10px;">
  71. <p>{{dayobject.day.getDate()}}</p>
  72. <div style="margin-top: -10px;">
  73. <p v-if='dayobject.day.getDay()==0'>日</p>
  74. <p v-else-if='dayobject.day.getDay()==1'>一</p>
  75. <p v-else-if='dayobject.day.getDay()==2'>二</p>
  76. <p v-else-if='dayobject.day.getDay()==3'>三</p>
  77. <p v-else-if='dayobject.day.getDay()==4'>四</p>
  78. <p v-else-if='dayobject.day.getDay()==5'>五</p>
  79. <p v-else-if='dayobject.day.getDay()==6'>六</p>
  80. </div>
  81. </div>
  82. </div>
  83. </template>
  84. </a-table>
  85. </a-tab-pane>
  86. <a-tab-pane key="1" tab="固定时间上下班">
  87. <a-table bordered rowKey="id" :loading="loading" :data-source="dataSource" :columns="columns"
  88. :scroll="{ x:300 }" :pagination="ipagination" @change="handleTableChange">
  89. <template v-for='(dayobject,i) in days' :slot="dayobject.day.getDate()" style="color: #ff6b81">
  90. <div style="height: 35px;">
  91. <div style="text-align: center;margin-top: -10px;">
  92. <p>{{dayobject.day.getDate()}}</p>
  93. <div style="margin-top: -10px;">
  94. <p v-if='dayobject.day.getDay()==0'>日</p>
  95. <p v-else-if='dayobject.day.getDay()==1'>一</p>
  96. <p v-else-if='dayobject.day.getDay()==2'>二</p>
  97. <p v-else-if='dayobject.day.getDay()==3'>三</p>
  98. <p v-else-if='dayobject.day.getDay()==4'>四</p>
  99. <p v-else-if='dayobject.day.getDay()==5'>五</p>
  100. <p v-else-if='dayobject.day.getDay()==6'>六</p>
  101. </div>
  102. </div>
  103. </div>
  104. </template>
  105. </a-table>
  106. </a-tab-pane>
  107. <!-- <a-tab-pane key="3" tab="自由时间上下班">
  108. <a-table bordered rowKey="id" :loading="loading" :data-source="dataSource" :columns="columns" :scroll="{ x:300 }"
  109. :pagination="ipagination" @change="handleTableChange"
  110. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}">
  111. <template v-for='(dayobject,i) in days' :slot="dayobject.day.getDate()" style="color: #ff6b81">
  112. <div style="height: 35px;">
  113. <div style="text-align: center;margin-top: -10px;">
  114. <p>{{dayobject.day.getDate()}}</p>
  115. <div style="margin-top: -10px;">
  116. <p v-if='dayobject.day.getDay()==0'>日</p>
  117. <p v-else-if='dayobject.day.getDay()==1'>一</p>
  118. <p v-else-if='dayobject.day.getDay()==2'>二</p>
  119. <p v-else-if='dayobject.day.getDay()==3'>三</p>
  120. <p v-else-if='dayobject.day.getDay()==4'>四</p>
  121. <p v-else-if='dayobject.day.getDay()==5'>五</p>
  122. <p v-else-if='dayobject.day.getDay()==6'>六</p>
  123. </div>
  124. </div>
  125. </div>
  126. </template>
  127. </a-table>
  128. </a-tab-pane> -->
  129. <!-- <a-tab-pane key="4" tab="未排班" force-render>
  130. <a-table bordered :data-source="dataSource" :loading="loading" rowKey="id" :columns="columns" :scroll="{ x:300 }"
  131. :pagination="ipagination" @change="handleTableChange"
  132. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChanges}">
  133. <template v-for='(dayobject,i) in days' :slot="dayobject.day.getDate()" style="color: #ff6b81">
  134. <div style="height: 35px;">
  135. <div style="text-align: center;margin-top: -10px;">
  136. <p>{{dayobject.day.getDate()}}</p>
  137. <div style="margin-top: -10px;">
  138. <p v-if='dayobject.day.getDay()==0'>日</p>
  139. <p v-else-if='dayobject.day.getDay()==1'>一</p>
  140. <p v-else-if='dayobject.day.getDay()==2'>二</p>
  141. <p v-else-if='dayobject.day.getDay()==3'>三</p>
  142. <p v-else-if='dayobject.day.getDay()==4'>四</p>
  143. <p v-else-if='dayobject.day.getDay()==5'>五</p>
  144. <p v-else-if='dayobject.day.getDay()==6'>六</p>
  145. </div>
  146. </div>
  147. </div>
  148. </template>
  149. </a-table>
  150. </a-tab-pane> -->
  151. </a-tabs>
  152. </div>
  153. <!-- table区域-end -->
  154. <!-- 表单区域 -->
  155. <attendanceRule-modal ref="modalForm" @ok="modalFormOk"></attendanceRule-modal>
  156. <depart-window ref="departWindow" @ok="modalFormOks"></depart-window>
  157. <userShift-modal ref="userShiftModal"></userShift-modal>
  158. </a-card>
  159. </template>
  160. <script>
  161. import {
  162. httpAction,
  163. getFileAccessHttpUrl,
  164. getAction,
  165. deleteAction
  166. } from '@/api/manage'
  167. import '@/assets/less/TableExpand.less'
  168. import AttendanceRuleModal from './modules/AttendanceRuleModal'
  169. import departWindow from './modules/DepartWindow'
  170. import {
  171. JeecgListMixin
  172. } from '@/mixins/JeecgListMixin'
  173. import UserShiftModal from './modules/UserShiftModal'
  174. import moment from "moment"
  175. export default {
  176. name: "AttendanceRuleList",
  177. mixins: [JeecgListMixin],
  178. components: {
  179. AttendanceRuleModal,
  180. UserShiftModal,
  181. departWindow
  182. },
  183. data() {
  184. return {
  185. departNames: null,
  186. queryParam: {
  187. ShiftDate: moment(new Date()).format('yyyy-MM-DD HH:mm:ss'),
  188. type: "2",
  189. dept: null
  190. },
  191. description: '打卡规则管理页面',
  192. tts: false,
  193. isColse: true,
  194. tpdata: [],
  195. currentMonth: new Date().getMonth(),
  196. currentYear: new Date().getYear(),
  197. selectedRowKeys: [],
  198. selectionRows: [],
  199. // 表头
  200. dataSource: [],
  201. dataSources: [],
  202. columns: [],
  203. columnst: [],
  204. days: [],
  205. visibles: false,
  206. shiftDate: null,
  207. show: 1,
  208. id: null,
  209. shiftname: "",
  210. username: "",
  211. deptlist: null,
  212. shiftlist: null,
  213. isShow: true,
  214. listData: [],
  215. is: "1",
  216. ipaginations: {
  217. current: 1,
  218. pageSize: 10,
  219. pageSizeOptions: ['10', '20', '30'],
  220. showTotal: (total, range) => {
  221. return range[0] + "-" + range[1] + " 共" + total + "条"
  222. },
  223. showQuickJumper: true,
  224. showSizeChanger: true,
  225. total: 0
  226. },
  227. url: {
  228. add: "/userShift/userShift/addUserShift",
  229. userShift: "/userShift/userShift/queryByUser",
  230. shift: "/shift/shift/lists",
  231. list: "/sys/user/queryMothByUser",
  232. moth: "/userShift/userShift/queryMothByUser",
  233. deptlist: "/sys/sysDepart/listAll",
  234. delUserShift: '/userShift/userShift/delete',
  235. lists: "/sys/user/queryMothByCount",
  236. },
  237. }
  238. },
  239. watch: {
  240. dataSource: {
  241. handler(newName, oldName) {
  242. this.selectedRowKeys=[];
  243. this.selectionRows=[];
  244. this.queryMothByCount();
  245. },
  246. }
  247. },
  248. computed: {
  249. importExcelUrl: function() {
  250. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  251. }
  252. },
  253. created() {
  254. // this.getListData(null)
  255. this.initData(null)
  256. this.queryShift()
  257. this.queryMothByCount();
  258. },
  259. methods: {
  260. modalFormOks(formData) {
  261. if (formData.departIdList != null && formData.departIdList.length > 0) {
  262. for (let i = 0; i < formData.departIdList.length; i++) {
  263. this.queryParam.dept = formData.departIdList[i].key;
  264. this.departNames = formData.departIdList[i].title;
  265. }
  266. }
  267. },
  268. openModal() {
  269. var ls = [];
  270. ls.push(this.queryParam.dept);
  271. this.$refs.departWindow.add(ls, {});
  272. },
  273. handleEmpty() {
  274. this.queryParam.dept = null;
  275. this.departNames = null;
  276. },
  277. handleAddts() {
  278. if (this.selectedRowKeys.length < 1 && this.queryParam.type == "4") {
  279. this.$message.warning("请勾选需要排班人员");
  280. return;
  281. } else if (this.selectedRowKeys.length < 1 && (this.queryParam.type == "1" || this.queryParam.type == "2" ||
  282. this.queryParam.type == "3")) {
  283. this.$message.warning("请勾选需要变更人员");
  284. return;
  285. }
  286. if (this.selectedRowKeys.length > 0 && this.queryParam.type == "4") {
  287. this.$refs.modalForm.add(this.selectedRowKeys, this.selectionRows);
  288. } else if (this.selectedRowKeys.length > 0 && (this.queryParam.type == "1" || this.queryParam.type == "2" ||
  289. this.queryParam.type == "3")) {
  290. this.$refs.modalForm.edit(this.selectedRowKeys, this.selectionRows);
  291. }
  292. },
  293. onSelectChanges(selectedRowKeys, selectionRows) {
  294. console.log(selectedRowKeys)
  295. this.selectedRowKeys = selectedRowKeys;
  296. this.selectionRows = selectionRows;
  297. },
  298. callback(key) {
  299. if (key == "1" || key == 1) {
  300. this.isColse = false;
  301. } else {
  302. this.isColse = true;
  303. }
  304. this.queryParam.type = key;
  305. this.selectedRowKeys = [];
  306. this.selectionRows = [];
  307. this.$options.methods.searchQuery.call(this)
  308. this.initData(this.queryParam.ShiftDate)
  309. },
  310. searchQueryst() {
  311. this.queryMothByCount()
  312. this.$options.methods.searchQuery.call(this)
  313. this.initData(this.queryParam.ShiftDate)
  314. },
  315. handleTableChanges(pagination, filters, sorter) {
  316. //分页、排序、筛选变化时触发
  317. //TODO 筛选
  318. if (Object.keys(sorter).length > 0) {
  319. this.isorter.column = sorter.field;
  320. this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
  321. }
  322. this.ipaginations = pagination;
  323. console.log(pagination)
  324. this.queryMothByCount();
  325. },
  326. initData: function(cur) {
  327. this.columns = [];
  328. this.columnst = [];
  329. this.tpdata = [];
  330. this.days = [];
  331. var date
  332. if (cur) {
  333. date = new Date(cur)
  334. } else {
  335. var now = new Date()
  336. date = now;
  337. }
  338. this.currentDay = date.getDate()
  339. this.currentYear = date.getFullYear()
  340. this.currentMonth = date.getMonth() + 1
  341. var str = this.formatDate(
  342. this.currentYear,
  343. this.currentMonth,
  344. this.currentDay
  345. )
  346. this.days.length = 0
  347. var moth = new Date(str);
  348. moth.setDate(28)
  349. moth.setMonth(moth.getMonth() + 1);
  350. moth.setDate(0);
  351. this.columns.push({
  352. title: '名称',
  353. dataIndex: 'realname',
  354. width: '100px',
  355. fixed: 'left'
  356. })
  357. this.columnst.push({
  358. title: '班次名称',
  359. dataIndex: 'name',
  360. width: '100px',
  361. fixed: 'left'
  362. })
  363. this.columns.push({
  364. title: '部门',
  365. dataIndex: 'deptName',
  366. width: '140px',
  367. fixed: 'left'
  368. })
  369. if (this.queryParam.type == "1" || this.queryParam.type == "2" || this.queryParam.type == "3") {
  370. // this.columns.push({
  371. // title: '类型',
  372. // dataIndex: 'type',
  373. // width: '117px',
  374. // fixed: 'left',
  375. // customRender: function(t, r, index) {
  376. // var name = "";
  377. // if (t == 1 || t == "1") {
  378. // name = "固定时间上下班";
  379. // } else if (t == 2 || t == "2") {
  380. // name = "按班次上下班";
  381. // } else if (t == 3 || t == "3") {
  382. // name = "自由时间上下班";
  383. // }
  384. // return name;
  385. // }
  386. // })
  387. if (this.queryParam.type == "1") {
  388. this.columns.push({
  389. title: '上班时间',
  390. dataIndex: 'startDate',
  391. width: '100px',
  392. fixed: 'left',
  393. customRender: function(t, r, index) {
  394. var date = "";
  395. if (t != null && t != "") {
  396. date = moment(new Date(t)).format('HH:mm:ss')
  397. }
  398. return date;
  399. }
  400. })
  401. this.columns.push({
  402. title: '下班时间',
  403. dataIndex: 'endDate',
  404. width: '100px',
  405. fixed: 'left',
  406. customRender: function(t, r, index) {
  407. var date = "";
  408. if (t != null && t != "") {
  409. date = moment(new Date(t)).format('HH:mm:ss')
  410. }
  411. return date;
  412. }
  413. })
  414. }
  415. if (this.queryParam.type == "2") {
  416. for (var i = 1; i <= moth.getDate(); i++) {
  417. var d = new Date(this.formatDate(this.currentYear, this.currentMonth, i))
  418. this.tpdata.push(i)
  419. var dayobjectSelf = {
  420. width: '49px',
  421. slots: {
  422. title: d.getDate()
  423. },
  424. dataIndex: "a" + d.getDate(),
  425. scopedSlots: {
  426. customRender: i
  427. },
  428. } // 用一个对象包装Date对象 以便为以后预定功能添加属性
  429. var dayobjectSelfs = {
  430. width: '49px',
  431. slots: {
  432. title: d.getDate()
  433. },
  434. dataIndex: "b" + d.getDate(),
  435. }
  436. var dat = {};
  437. dat.day = d;
  438. this.days.push(dat)
  439. this.columns.push(dayobjectSelf) // 将日期放入data 中的days数组 供页面渲染使用
  440. this.columnst.push(dayobjectSelfs)
  441. }
  442. } else {
  443. for (var i = 1; i <= moth.getDate(); i++) {
  444. var d = new Date(this.formatDate(this.currentYear, this.currentMonth, i))
  445. this.tpdata.push(i)
  446. var dayobjectSelf = {
  447. width: '49px',
  448. slots: {
  449. title: d.getDate()
  450. },
  451. dataIndex: "a" + d.getDate(),
  452. } // 用一个对象包装Date对象 以便为以后预定功能添加属性
  453. var dat = {};
  454. dat.day = d;
  455. this.days.push(dat)
  456. this.columns.push(dayobjectSelf) // 将日期放入data 中的days数组 供页面渲染使用
  457. }
  458. }
  459. } else {
  460. for (var i = 1; i <= moth.getDate(); i++) {
  461. var d = new Date(this.formatDate(this.currentYear, this.currentMonth, i))
  462. this.tpdata.push(i)
  463. var dayobjectSelf = {
  464. width: '49px',
  465. slots: {
  466. title: d.getDate()
  467. },
  468. dataIndex: "a" + d.getDate(),
  469. } // 用一个对象包装Date对象 以便为以后预定功能添加属性
  470. var dat = {};
  471. dat.day = d;
  472. this.days.push(dat)
  473. this.columns.push(dayobjectSelf) // 将日期放入data 中的days数组 供页面渲染使用
  474. }
  475. }
  476. },
  477. queryShift() {
  478. httpAction(this.url.shift, "", "get").then((res) => {
  479. if (res.success) {
  480. this.shiftlist = res.result;
  481. }
  482. }).finally(() => {
  483. })
  484. },
  485. queryMothByCount() {
  486. getAction(this.url.lists, {
  487. shiftDate: moment(this.queryParam.ShiftDate).format('yyyy-MM-DD HH:mm:ss'),
  488. userId: this.ipaginations.current,
  489. shiftId: this.ipaginations.pageSize,
  490. realname: this.queryParam.name,
  491. deptid: this.queryParam.dept
  492. }, "post").then((res) => {
  493. if (res.success) {
  494. //update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
  495. this.dataSources = res.result.records || res.result;
  496. if (res.result.total) {
  497. this.ipaginations.total = res.result.total + 1;
  498. } else {
  499. this.ipaginationstotal = 0 + 1;
  500. }
  501. //update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
  502. }
  503. }).finally(() => {
  504. })
  505. },
  506. // 返回 类似 2016-01-02 格式的字符串
  507. formatDate: function(year, month, day) {
  508. var y = year
  509. if (month > 12) {
  510. y = y + 1;
  511. month = 1;
  512. };
  513. var m = month
  514. if (m < 10) m = '0' + m
  515. var d = day
  516. if (d < 10) d = '0' + d
  517. return y + '-' + m + '-' + d
  518. }
  519. }
  520. }
  521. </script>
  522. <style scoped>
  523. @import '~@assets/less/common.less';
  524. .month {
  525. width: 100%;
  526. color: #333333;
  527. background: #ffffff;
  528. margin-top: -20px;
  529. }
  530. .month ul {
  531. margin: 0;
  532. padding: 0;
  533. display: flex;
  534. justify-content: space-between;
  535. height: 30px;
  536. list-style-type: none;
  537. }
  538. .year-month {
  539. display: flex;
  540. align-items: center;
  541. justify-content: space-around;
  542. margin-top: 10px;
  543. }
  544. .choose-month {
  545. text-align: center;
  546. font-size: 12px;
  547. }
  548. .arrow {
  549. padding: 15px;
  550. color: #999999;
  551. }
  552. .month ul li {
  553. font-size: 12px;
  554. text-transform: uppercase;
  555. letter-spacing: 3px;
  556. }
  557. .weekdays {
  558. margin: 0;
  559. padding: 10px;
  560. display: flex;
  561. flex-wrap: wrap;
  562. color: #999;
  563. justify-content: space-around;
  564. background: #ffffff;
  565. }
  566. .weekdays li {
  567. display: inline-block;
  568. width: 13.6%;
  569. text-align: center;
  570. }
  571. .days {
  572. padding: 10px;
  573. background: #ffffff;
  574. margin: 0;
  575. display: flex;
  576. flex-wrap: wrap;
  577. }
  578. .ts {
  579. padding: 20px;
  580. background: #ffffff;
  581. margin: 0;
  582. display: flex;
  583. flex-wrap: wrap;
  584. }
  585. .days li {
  586. list-style-type: none;
  587. display: inline-block;
  588. width: 14.2%;
  589. text-align: center;
  590. padding-bottom: 4px;
  591. padding-top: 5px;
  592. font-size: 13px;
  593. color: #000;
  594. height: 40px;
  595. }
  596. .days li .active {
  597. padding: 8px 10px;
  598. border-radius: 5%;
  599. background: #00b8ec;
  600. color: #fff;
  601. }
  602. .days li .other-month {
  603. padding: 5px;
  604. color: gainsboro;
  605. }
  606. .days li:hover .act {
  607. padding: 6px 10px;
  608. border-radius: 50%;
  609. background: #e1e1e1;
  610. color: #fff;
  611. }
  612. </style>