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