1 line
20 KiB
JSON
1 line
20 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\dataAnalysis\\v-view.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\dataAnalysis\\v-view.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n data: function data() {\n return {\n dialogVisible: false,\n weekArr: [\"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"日\"],\n // 周列表\n dateArr: [],\n // 日期列表\n yearMonth: \"\",\n // XXXX年XX月\n dateOf1: \"\",\n // 1号的日期\n dateOf28: \"\",\n // 28号的日期,\n row: {},\n // 父组件传递的表格数据 \n rows: {},\n // 父组件传递的表格数据 \n obj: {},\n // 父组件传递的表单数据\n url: \"\",\n name: \"\",\n scWaname: \"\"\n };\n },\n computed: {\n loadData: function loadData() {\n return function (date) {\n var num = \"\";\n\n if (this.rows.scAttendanceStatisticsDataInfoDTOList) {\n this.rows.scAttendanceStatisticsDataInfoDTOList.forEach(function (item) {\n if (date === item.stDate) {\n num = item.stNum + \"次\";\n }\n });\n } else {\n this.row.dataAnalysisInfoDTOList.forEach(function (item) {\n if (date === item.createDate) {\n num = item.num + \"次\";\n }\n });\n }\n\n return num;\n };\n }\n },\n methods: {\n init: function init(row, obj, url) {\n this.scWaname = row.scWaname;\n this.rows = row;\n this.dialogVisible = true;\n this.row = JSON.parse(JSON.stringify(row));\n this.obj = JSON.parse(JSON.stringify(obj));\n this.url = url;\n this.renderCalender(new Date(this.obj.startDate));\n },\n renderCalender: function renderCalender(date) {\n console.log(date);\n var year = date.getFullYear(); // 年\n\n var month = date.getMonth() + 1; // 月\n\n this.yearMonth = \"\".concat(year, \"\\u5E74\").concat(month, \"\\u6708\"); // XXXX年XX月\n\n this.dateOf1 = new Date(\"\".concat(year, \",\").concat(month, \",1\")); // 1号的日期(年月日)\n\n this.dateOf28 = new Date(\"\".concat(year, \",\").concat(month, \",28\")); // 28号的日期(年月日)\n\n var monthArr = [31, this.isLeapYear(year), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // 每月的天数\n\n var days = monthArr[month - 1]; // 本月多少天\n\n var week = this.dateOf1.getDay() === 0 ? 7 : this.dateOf1.getDay(); // 1号是周几\n\n var preDays = monthArr[new Date(new Date(this.dateOf1).getTime() - 2 * 24 * 60 * 60 * 1000).getMonth()]; // 上个月多少天\n\n var preStamp = new Date(this.dateOf1).getTime() - 2 * 24 * 60 * 60 * 1000;\n var preYearMonthDay = new Date(preStamp).getFullYear() + \"-\" + (new Date(preStamp).getMonth() + 1); // 上个月年月\n\n var curYearMonthDa
|