checkIn.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  1. <template>
  2. <view class="attendance-page">
  3. <view class="header">
  4. <text class="title">我的考勤记录</text>
  5. <picker mode="selector" :range="timeRanges" @change="onTimeRangeChange">
  6. <view class="picker">
  7. {{ selectedTimeRange }}/切换
  8. </view>
  9. </picker>
  10. </view>
  11. <!-- 今日签到信息区域 -->
  12. <!-- <view class="todayCheckIn" :class="{ 'show': shouldShow }"> -->
  13. <view class="todayCheckIn" v-if="todayInfoShow">
  14. <view class="check-in-container">
  15. <text class="todayAttTitle">今日签到信息</text>
  16. <view class="info-row">
  17. <view>
  18. <text class="ygoa-icon icon-date"></text>
  19. <text class="value">日期:</text>
  20. </view>
  21. <text class="label">{{ todayData.day }}</text>
  22. </view>
  23. <view class="info-row">
  24. <view>
  25. <text class="ygoa-icon icon-day"></text>
  26. <text class="value">晨签时间:</text>
  27. </view>
  28. <text class="label">{{ todayData.startTime || '未打卡' }} </text>
  29. </view>
  30. <view class="info-row">
  31. <view>
  32. <text class="ygoa-icon icon-night"></text>
  33. <text class="value">晚签时间:</text>
  34. </view>
  35. <text class="label">{{ todayData.endTime || '未打卡' }} </text>
  36. </view>
  37. </view>
  38. <!-- 分界线 -->
  39. <view class="divider"></view>
  40. <!-- 打卡记录 -->
  41. <view class="container">
  42. <view class="header">
  43. <text class="clockRecordTitle">打卡记录</text>
  44. </view>
  45. <view class="content" style="height: 41vh;">
  46. <z-paging :fixed="false" :default-page-size="pSize" default-page-no="1" @query="queryData" ref="paging">
  47. <view class="clockRecord" v-for="clockRecord in clockRecords" :key="clockRecord.date">
  48. <text class="date">{{ clockRecord.date }}</text>
  49. <view class="shifts">
  50. <view class="shift">
  51. <text class="shift-label">晨签:</text>
  52. <text class="shift-time">{{ clockRecord.morning||'没有该记录'}}</text>
  53. </view>
  54. <view class="shift">
  55. <text class="shift-label">晚签:</text>
  56. <text class="shift-time">{{ clockRecord.evening ||'没有该记录'}}</text>
  57. </view>
  58. </view>
  59. </view>
  60. </z-paging>
  61. </view>
  62. </view>
  63. <!-- 日历板块 -->
  64. <!-- <template>
  65. <view class="calendar-content" >
  66. <view>
  67. <uni-calendar class="uni-calendar--hook" :selected="calenderData" :showMonth="true" @change="change"
  68. @monthSwitch="monthSwitch" />
  69. </view>
  70. </view>
  71. </template> -->
  72. </view>
  73. <!-- 周,月数据统计区域 -->
  74. <view class="statistics" v-if="chartShow">
  75. <view class="statistic-card">
  76. <view class="statistic-title">{{ selectedTimeRange }}考勤统计</view>
  77. <view class="statistic-item">
  78. <view>
  79. <text class="ygoa-icon icon-attendance"></text>
  80. <text class="label">出勤:</text>
  81. </view>
  82. <text class="value">{{ attendanceCount }}</text>
  83. </view>
  84. <view class="statistic-item">
  85. <view>
  86. <text class="ygoa-icon icon-goOut"></text>
  87. <text class="label">外出:</text>
  88. </view>
  89. <text class="value">{{ goOutCount }}</text>
  90. </view>
  91. <view class="statistic-item">
  92. <view>
  93. <text class="ygoa-icon icon-late"></text>
  94. <text class="label">迟到:</text>
  95. </view>
  96. <text class="value">{{ lateCount }}</text>
  97. </view>
  98. <view class="statistic-item">
  99. <view>
  100. <text class="ygoa-icon icon-leaveEarly"></text>
  101. <text class="label">早退:</text>
  102. </view>
  103. <text class="value">{{ leaveEarlyCount }}</text>
  104. </view>
  105. <view class="statistic-item">
  106. <view>
  107. <text class="ygoa-icon icon-absenteeism"></text>
  108. <text class="label">缺勤:</text>
  109. </view>
  110. <text class="value">{{ absenteeismCount }}</text>
  111. </view>
  112. </view>
  113. </view>
  114. <!-- 图表区域 -->
  115. <view class="chart-container" v-if="chartShow">
  116. <view class="">
  117. <text class="chart-title">考勤趋势图</text>
  118. <view class="charts-box">
  119. <qiun-data-charts :type="chartsType" :opts="opts" :chartData="chartData" />
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </template>
  125. <script setup lang="ts">
  126. import {
  127. ref,
  128. onMounted,
  129. reactive
  130. } from 'vue';
  131. import {
  132. checkAttendance,
  133. getMyTotalCount,
  134. getMyQDQtAttendance
  135. } from '@/api/mine.js'
  136. import {
  137. useUserStore
  138. } from '@/store/user.js';
  139. const userStore = useUserStore();
  140. // 创建一个响应式对象记录今天的考勤数据
  141. const todayData = reactive({
  142. day: '', // 当前日期
  143. startTime: '', // 晨签到时间
  144. endTime: '', // 晚签到时间
  145. })
  146. // 控制今日签到信息和图表显示的状态
  147. const todayInfoShow = ref(true) // 今日签到信息是否显示
  148. const chartShow = ref(false) // 图表是否显示
  149. // 图表类型的响应式引用
  150. const chartsType = ref('')
  151. // 图表要填充的数据
  152. const chartData = ref({})
  153. // 图表配置选项
  154. const opts = ref({
  155. color: ["#EE6666", "#FAC858", "#FC8452", "#73C0DE", "#3CA272", "#1890FF", "#91CB74", "#9A60B4",
  156. "#ea7ccc"
  157. ], // 设定图表颜色
  158. padding: [15, 15, 0, 5],
  159. enableScroll: false, // 禁用滚动
  160. legend: {}, // 图例设置
  161. xAxis: {
  162. disableGrid: true // 禁用网格线
  163. },
  164. yAxis: {
  165. data: [{
  166. min: 0 // y轴最小值
  167. }]
  168. },
  169. extra: {
  170. column: {
  171. type: "group",
  172. width: 30,
  173. activeBgColor: "#000000",
  174. activeBgOpacity: 0.08
  175. }
  176. }
  177. });
  178. // 时间范围选择数组
  179. const timeRanges = ref(['日', '周', '月']);
  180. const selectedTimeRange = ref('日'); // 初始化选择的时间范围为“日”
  181. // 考勤相关统计数据
  182. const attendanceCount = ref(0); // 出勤次数
  183. const goOutCount = ref(0); // 外出次数
  184. const lateCount = ref(0); // 迟到次数
  185. const leaveEarlyCount = ref(0); // 早退次数
  186. const absenteeismCount = ref(0); // 缺勤次数
  187. //用户id
  188. const userId = userStore.user.useId; //拿到用户id
  189. //当前周的周一日期
  190. const thisMondayDate = ref('');
  191. onMounted(() => {
  192. initAttData(); //初始化日考勤数据
  193. });
  194. //初始化考勤数据
  195. function initAttData() {
  196. const nowDate = new Date();
  197. todayData.day = formatDate(nowDate);
  198. getthisMondayDate(nowDate);
  199. getDayAttData();
  200. }
  201. //格式化日期
  202. function formatDate(date) {
  203. const year = date.getFullYear(); // 获取年份
  204. const month = date.getMonth() + 1; // 获取月份
  205. const day = date.getDate(); // 获取日期
  206. // 格式化月份和日期为两位数
  207. const formattedMonth = month < 10 ? '0' + month : month;
  208. const formattedDay = day < 10 ? '0' + day : day;
  209. return `${year}-${formattedMonth}-${formattedDay}`;
  210. }
  211. //获取日考勤数据
  212. function getDayAttData() {
  213. const params = {
  214. universalid: userId,
  215. rizi: todayData.day
  216. }
  217. checkAttendance(params).then(res => {
  218. if ("success" == res.returnMsg) {
  219. const attList = res.returnParams.list;
  220. const time1 = attList.find(item => item.att_type_id === '1');
  221. const time2 = attList.filter(item => item.att_type_id === '2').pop();
  222. if (time1 !== undefined) {
  223. todayData.startTime = time1.att_time.split(' ')[1];
  224. }
  225. if (time2 !== undefined) {
  226. todayData.endTime = time2.att_time.split(' ')[1];
  227. }
  228. }
  229. })
  230. }
  231. //打卡历史记录(日历版)
  232. //日历表数据
  233. const calenderData = ref([{
  234. date: '2024-12-07',
  235. info: '打卡'
  236. },
  237. {
  238. date: '2024-12-08',
  239. info: '签到',
  240. data: {
  241. custom: '自定义信息',
  242. name: '自定义消息头'
  243. }
  244. }
  245. ])
  246. // 初始化日历数据
  247. function initCalenderData(){
  248. const params = {
  249. type: 2, //设置时间区间
  250. universalid: userId,
  251. ks_att_time: todayData.day.slice(0, 8)+'01',
  252. js_att_time: todayData.day,
  253. pSize: 31,
  254. p: 1
  255. }
  256. getMyQDQtAttendance(params).then(({ returnParams }) => {
  257. })
  258. }
  259. //传入年份月份,返回此月天数
  260. function getDaysInMonth(year, month) {
  261. const date = new Date(year, month - 1, 1);
  262. // 将日期设置为下一个月的第0天,即当前月的最后一天
  263. date.setMonth(date.getMonth() + 1);
  264. date.setDate(0);
  265. // 返回当前月的最后一天的日期,即该月的天数
  266. return date.getDate();
  267. }
  268. //打卡历史记录(下拉刷新版)
  269. const paging = ref(null)
  270. const pSize = ref(5)
  271. function complete(list, total, pageNo) {
  272. if (pageNo == 1) {
  273. paging.value.complete(list);
  274. return
  275. }
  276. // 防止重复获取最后一次信息
  277. if (pSize.value * pageNo < total) {
  278. paging.value.complete(list)
  279. } else {
  280. paging.value.complete([])
  281. }
  282. }
  283. //日考勤历史记录
  284. const clockRecords = ref([])
  285. const totalPage = ref(0)
  286. //获取日考勤历史(下拉刷新)
  287. function getDayAttHistory() {
  288. const params = {
  289. type: 1, //不设时间区间
  290. universalid: userId,
  291. ks_att_time: '',
  292. js_att_time: '',
  293. pSize: pSize.value,
  294. p: 1
  295. }
  296. getMyQDQtAttendance(params).then(({ returnParams }) => {
  297. totalPage.value = Math.ceil(returnParams.total / pSize.value)
  298. const list = returnParams.list.map(item => {
  299. return {
  300. date: item.att_date.substring(0, 10),
  301. morning: item.time.split(',')[item.type.split(',').indexOf("1")],
  302. evening: item.time.split(',')[item.type.split(',').indexOf("2")],
  303. }
  304. });
  305. clockRecords.value = list;
  306. complete(clockRecords.value, returnParams.total, returnParams.current)
  307. })
  308. }
  309. // 刷新
  310. function queryData(pageNo, pSize, queryType) {
  311. switch (queryType) {
  312. case 0: // 下拉刷新
  313. case 1: // 初始加载
  314. getDayAttHistory()
  315. break
  316. case 3: // 上拉加载
  317. scrollQuery(pageNo, pSize)
  318. break
  319. default: // 默认刷新
  320. getDayAttHistory()
  321. break
  322. }
  323. }
  324. //上拉加载事件
  325. function scrollQuery(pageNo, pSize) {
  326. const params = {
  327. type: 1, //不设时间区间
  328. universalid: userId,
  329. ks_att_time: '',
  330. js_att_time: '',
  331. pSize: pSize,
  332. p: pageNo
  333. }
  334. getMyQDQtAttendance(params).then(({ returnParams }) => {
  335. const list = returnParams.list.map(item => {
  336. return {
  337. date: item.att_date.substring(0, 10),
  338. morning: item.time.split(',')[item.type.split(',').indexOf("1")],
  339. evening: item.time.split(',')[item.type.split(',').indexOf("2")],
  340. }
  341. });
  342. if (pageNo <= totalPage.value) {
  343. clockRecords.value.push(...list);
  344. }
  345. complete(list, returnParams.total, pageNo)
  346. })
  347. }
  348. // 时间范围切换事件
  349. function onTimeRangeChange(event) {
  350. const selectedIndex = event.detail.value;
  351. selectedTimeRange.value = timeRanges.value[selectedIndex]; // 设置选择的时间范围(日周月)
  352. // 根据选择的时间范围更新展示内容
  353. switch (selectedTimeRange.value) {
  354. case '日':
  355. getDayAttData();
  356. showDay(); // 显示今日考勤
  357. break;
  358. case '周':
  359. chartsType.value = 'pie'; // 设置图表类型为饼图
  360. fetchWeekAttData().then(message => {
  361. console.log(message);
  362. showWeekAndMonth();
  363. updateChart(message);
  364. })
  365. .catch(error => {
  366. console.error(error);
  367. });
  368. break;
  369. case '月':
  370. chartsType.value = 'column'; // 设置图表类型为柱状图
  371. fetchMonthAttData().then(message => {
  372. console.log('message', message);
  373. showWeekAndMonth();
  374. updateChart(message);
  375. })
  376. .catch(error => {
  377. console.error(error);
  378. });
  379. break;
  380. }
  381. };
  382. // 显示今日考勤数据
  383. function showDay() {
  384. todayInfoShow.value = true; // 显示今日签到信息
  385. chartShow.value = false; // 隐藏图表
  386. }
  387. // 显示周或者月考勤
  388. function showWeekAndMonth() {
  389. todayInfoShow.value = false; // 隐藏今日签到信息
  390. chartShow.value = true; // 显示图表
  391. }
  392. //计算本周周一日期
  393. function getthisMondayDate(today) {
  394. const dayOfWeek = today.getDay(); // 0 (周日) 到 6 (周六)
  395. const dayOfMonth = today.getDate();
  396. // 计算本周周一的日期
  397. const offset = dayOfWeek === 0 ? -6 : 1; // 如果今天是周日,则偏移量为-6,否则为1
  398. const thisMonday = new Date(today);
  399. thisMonday.setDate(dayOfMonth - dayOfWeek + offset);
  400. thisMondayDate.value = formatDate(thisMonday);
  401. }
  402. //获取周考勤记录
  403. function fetchWeekAttData() {
  404. return new Promise((resolve, reject) => {
  405. const params = {
  406. staffId: userId,
  407. start_date: thisMondayDate.value,
  408. end_date: todayData.day
  409. }
  410. getMyTotalCount(params).then(res => {
  411. const myWeekAttData = res.returnParams;
  412. const mockData = {
  413. series: [{
  414. data: [
  415. {
  416. "name": "缺勤",
  417. "value": myWeekAttData.type6
  418. },
  419. {
  420. "name": "迟到",
  421. "value": myWeekAttData.type4
  422. },
  423. {
  424. "name": "早退",
  425. "value": myWeekAttData.type5
  426. },
  427. {
  428. "name": "出勤",
  429. "value": myWeekAttData.type0,
  430. "labelText": "出勤:" + myWeekAttData.type0 + "次"
  431. },
  432. {
  433. "name": "外出",
  434. "value": myWeekAttData.type1
  435. },
  436. {
  437. "name": "公休",
  438. "value": myWeekAttData.type2
  439. },
  440. {
  441. "name": "未排班",
  442. "value": myWeekAttData.type3,
  443. }
  444. ]
  445. }],
  446. };
  447. // const weekData = mockData.series[0].data;
  448. attendanceCount.value = myWeekAttData.type1;
  449. goOutCount.value = myWeekAttData.type1;
  450. lateCount.value = myWeekAttData.type4;
  451. leaveEarlyCount.value = myWeekAttData.type5;
  452. absenteeismCount.value = myWeekAttData.type6;
  453. resolve(mockData)
  454. }).catch(error => {
  455. reject(error)
  456. })
  457. })
  458. }
  459. // 获取月考勤记录
  460. function fetchMonthAttData() {
  461. return new Promise((resolve, reject) => {
  462. const weekNodeList = [];// 存储近月每周的周一,周天日期
  463. weekNodeList.unshift(thisMondayDate.value, todayData.day);
  464. while (weekNodeList.length !== 8) {
  465. const weekNode = getOneDaysAgo(weekNodeList[0]);
  466. weekNodeList.unshift(weekNode);
  467. weekNodeList.unshift(getSixDaysAgo(weekNode));
  468. }
  469. const data1 = [];
  470. const data2 = [];
  471. const data3 = [];
  472. const dataFetchPromises = []; // 存储所有数据请求的promise
  473. for (let i = 0; i < weekNodeList.length - 1; i += 2) {
  474. const params = {
  475. staffId: userId,
  476. start_date: weekNodeList[i],
  477. end_date: weekNodeList[i + 1]
  478. };
  479. const fetchPromise = getMyTotalCount(params).then(res => {
  480. // for (const type in res.returnParams) {
  481. // console.log('type', type);
  482. // }
  483. console.log('res.returnParams', res.returnParams);
  484. data1.push(res.returnParams.type6);
  485. data2.push(res.returnParams.type4);
  486. data3.push(res.returnParams.type5);
  487. });
  488. dataFetchPromises.push(fetchPromise);
  489. }
  490. // 等待所有数据请求完成
  491. Promise.all(dataFetchPromises).then(() => {
  492. const params = {
  493. staffId: userId,
  494. start_date: weekNodeList[0],
  495. end_date: weekNodeList[weekNodeList.length - 1]
  496. };
  497. return getMyTotalCount(params);
  498. }).then(res => {
  499. const myMonthAttData = res.returnParams;
  500. attendanceCount.value = myMonthAttData.type0;
  501. goOutCount.value = myMonthAttData.type2;
  502. lateCount.value = myMonthAttData.type4;
  503. leaveEarlyCount.value = myMonthAttData.type5;
  504. absenteeismCount.value = myMonthAttData.type6;
  505. const mockData = {
  506. categories: ["第1周", "第2周", "第3周", "第4周"],
  507. series: [{
  508. name: "缺勤",
  509. data: data1
  510. }, {
  511. name: "迟到",
  512. data: data2
  513. }, {
  514. name: "早退",
  515. data: data3
  516. }]
  517. };
  518. // console.log(data1); // 打印data1检查内容
  519. resolve(mockData);
  520. }).catch(error => {
  521. reject(error);
  522. });
  523. });
  524. }
  525. //获取六天前的日期
  526. function getSixDaysAgo(dateStr) {
  527. const date = new Date(dateStr);
  528. date.setDate(date.getDate() - 6);
  529. return date.toISOString().split('T')[0]; // 返回格式为'YYYY-MM-DD'的字符串
  530. }
  531. //获取一天前的日期
  532. function getOneDaysAgo(dateStr) {
  533. const date = new Date(dateStr);
  534. date.setDate(date.getDate() - 1);
  535. return date.toISOString().split('T')[0]; // 返回格式为'YYYY-MM-DD'的字符串
  536. }
  537. // 更新图表数据
  538. function updateChart(res) {
  539. chartData.value = JSON.parse(JSON.stringify(res)); // 更新图表数据
  540. }
  541. </script>
  542. <style lang="scss" scoped>
  543. @import "@/static/font/ygoa/iconfont.css";
  544. .ygoa-icon {
  545. margin-right: 0.5rem;
  546. font-size: 2.1rem;
  547. vertical-align: middle;
  548. /* 确保图标与文本竖直居中 */
  549. }
  550. .attendance-page {
  551. padding: 20px;
  552. background-color: #f9f9f9;
  553. .calendar-content {
  554. margin: -20px;
  555. margin-top: 20px;
  556. }
  557. }
  558. .header {
  559. display: flex;
  560. justify-content: space-between;
  561. align-items: center;
  562. margin-bottom: 20px;
  563. .clockRecordTitle {
  564. font-size: 1.25rem;
  565. margin: auto;
  566. }
  567. }
  568. .title {
  569. font-size: 24px;
  570. font-weight: bold;
  571. color: #333;
  572. }
  573. .picker {
  574. border: 1px solid #3498db;
  575. border-radius: 5px;
  576. padding: 10px;
  577. background-color: #ecf6fc;
  578. color: #3498db;
  579. }
  580. .statistics {
  581. // display: flex;
  582. justify-content: center;
  583. }
  584. .statistic-card {
  585. background: white;
  586. border-radius: 10px;
  587. padding: 20px;
  588. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  589. /* width: 100%; */
  590. max-width: 600px;
  591. }
  592. .statistic-title {
  593. text-align: center;
  594. font-size: 20px;
  595. font-weight: bold;
  596. color: #333;
  597. }
  598. .statistic-item {
  599. display: flex;
  600. justify-content: space-between;
  601. border-bottom: 1px solid #eee;
  602. padding: 10px 0;
  603. }
  604. .label {
  605. color: #666;
  606. }
  607. .value {
  608. font-size: 18px;
  609. font-weight: bold;
  610. color: #333;
  611. }
  612. .value,
  613. .label {
  614. line-height: 50rpx;
  615. /* 与图标高度一致,确保垂直对齐 */
  616. }
  617. .chart-container {
  618. margin-top: 20px;
  619. }
  620. .chart-title {
  621. font-size: 20px;
  622. font-weight: bold;
  623. text-align: center;
  624. margin-bottom: 10px;
  625. color: #333;
  626. }
  627. .charts-box {
  628. width: 100%;
  629. height: 300px;
  630. }
  631. .todayCheckIn {
  632. background-color: #ffffff;
  633. padding: 20px;
  634. margin: auto -20px; //抵消父级padding
  635. box-sizing: border-box;
  636. border-radius: 10px;
  637. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  638. }
  639. .check-in-container {
  640. width: 100%;
  641. height: 100%;
  642. display: flex;
  643. flex-direction: column;
  644. align-items: center;
  645. justify-content: center;
  646. }
  647. .todayAttTitle {
  648. font-size: 22px;
  649. font-weight: bold;
  650. margin-bottom: 20px;
  651. }
  652. .info-row {
  653. width: 100%;
  654. display: flex;
  655. align-items: center;
  656. justify-content: space-between;
  657. margin-bottom: 10px;
  658. }
  659. .icon {
  660. width: 50rpx;
  661. height: 50rpx;
  662. margin-right: 20rpx;
  663. vertical-align: middle;
  664. /* 确保图标与文本竖直居中 */
  665. }
  666. .clockRecord {
  667. margin-bottom: 20px;
  668. padding: 10px;
  669. border: 1px solid #ccc;
  670. border-radius: 8px;
  671. }
  672. .date {
  673. font-size: 16px;
  674. font-weight: bold;
  675. margin-bottom: 5px;
  676. }
  677. .name {
  678. font-size: 14px;
  679. color: #666;
  680. margin-bottom: 10px;
  681. }
  682. .divider {
  683. border-bottom: 5px dashed #ccc; //虚线
  684. margin: 10px 0;
  685. }
  686. .shift-label {
  687. font-size: 14px;
  688. color: #333;
  689. }
  690. .shift-time {
  691. font-size: 14px;
  692. color: #333;
  693. }
  694. </style>