{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/homeCalendarBox.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/homeCalendarBox.vue","mtime":1739760944317},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.set\";\nimport _toConsumableArray from \"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/@babel/runtime-corejs2/helpers/esm/toConsumableArray.js\";\nimport \"core-js/modules/es6.array.find\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport { currDateTime } from '@/utils/global.js';\nexport default {\n data: function data() {\n return {\n currentYear: 1970,\n currentMonth: 1,\n currentDay: 1,\n currentWeek: 1,\n days: [],\n value: '',\n dialog: false,\n title: '',\n formList: {},\n form: {},\n fileList: [\n // {\n // name: 'food.jpeg',\n // url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'\n // }, {\n // name: 'food2.jpeg',\n // url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'\n // }\n ],\n dialogdetail: false,\n titledetail: '日程详情',\n rules: {\n thescheduleofTheType: [{\n required: true,\n message: \"请选择日程类型\",\n trigger: \"blur\"\n }],\n title: [{\n required: true,\n message: \"请输入标题\",\n trigger: \"blur\"\n }],\n Content: [{\n required: true,\n message: \"请输入内容\",\n trigger: \"blur\"\n }],\n executor: [{\n required: true,\n message: \"请选择执行人\",\n trigger: \"blur\"\n }],\n startTime: [{\n required: true,\n message: \"请选择开始时间\",\n trigger: \"blur\"\n }],\n pushTime: [{\n required: true,\n message: \"请选择提醒时间\",\n trigger: \"blur\"\n }]\n },\n params: {\n //搜索条件\n pageIndex: 1,\n pageSize: 10,\n keyword: '',\n total: 0\n },\n params2: {\n //搜索条件\n pageIndex: 1,\n pageSize: 10,\n keyword: '',\n total: 0\n },\n tableDataEmployee: [],\n tableDataEmployeeParty: [],\n resultArr: [],\n calendarDataItems: [],\n //日历项点击当天的数据\n calendarAllItem: [],\n //当月每一天数量\n pushTimeOptions: [{\n lable: '无提醒',\n value: '无提醒'\n }, {\n lable: '开始时',\n value: '0'\n }, {\n lable: '开始15分钟前',\n value: '15'\n }, {\n lable: '开始30分钟前',\n value: '30'\n }, {\n lable: '开始一个小时前',\n value: '60'\n }, {\n lable: '开始一天前',\n value: '1440'\n }],\n pickerOptions: {\n disabledDate: function disabledDate(date) {\n //禁用今天之前的日期\n return date.getTime() < Date.now() - 24 * 60 * 60 * 1000;\n }\n },\n activeIndex: -1\n };\n },\n created: function created() {\n var d = new Date();\n this.initData(this.formatDate(d.getFullYear(), d.getMonth() + 1, 1));\n },\n mounted: function mounted() {\n this.searchCalendarList();\n this.searchCalendarListDay();\n },\n methods: {\n dayClick: function dayClick(dayobject, index) {\n this.activeIndex = index;\n var dayobjectStr = new Date(dayobject.day);\n var year = dayobjectStr.getFullYear();\n var month = dayobjectStr.getMonth() + 1 < 10 ? '0' + (dayobjectStr.getMonth() + 1) : dayobjectStr.getMonth() + 1;\n var day = dayobjectStr.getDate() < 10 ? '0' + dayobjectStr.getDate() : dayobjectStr.getDate();\n this.searchCalendarListDay(year, month, day);\n },\n searchCalendarList: function searchCalendarList() {\n var _this = this;\n this.days.forEach(function (item) {\n _this.$nextTick(function () {\n _this.$set(item, 'count', 0); //查询--重置当月每一天的数量为0\n _this.$set(item, 'itemstatecount', 0); //查询--重置当月每一天完成的数量为0\n });\n });\n var currentMonthStr = this.currentMonth;\n if (this.currentMonth < 10) {\n currentMonthStr = '0' + this.currentMonth;\n }\n var str = this.currentYear + '-' + currentMonthStr;\n var obj = {\n startTime: str\n };\n this.$api.v3searchCalendarListApi(obj, {\n onSucess: function onSucess(response) {\n if (response.data.code) {\n _this.calendarAllItem = response.data.datas;\n if (_this.calendarAllItem.length) {\n _this.calendarAllItem.forEach(function (item) {\n var date = new Date(item.item_starttime.time);\n var yearStr = date.getFullYear();\n var monthStr = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;\n var dayStr = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();\n var dateStr = yearStr + '-' + monthStr + '-' + dayStr;\n _this.$set(item, 'itemStartTimeAllTime', dateStr);\n });\n //同一天 \n _this.days.forEach(function (item) {\n _this.calendarAllItem.forEach(function (its) {\n if (item.startTime == its.itemStartTimeAllTime) {\n _this.$nextTick(function () {\n _this.$set(item, 'count', item.count + 1);\n if (its.item_state == '已完成') {\n _this.$set(item, 'itemstatecount', item.itemstatecount + 1);\n }\n });\n }\n });\n });\n }\n }\n }\n });\n },\n searchCalendarListDay: function searchCalendarListDay(year, month, day) {\n var _this2 = this;\n var str = '';\n if (year) {\n str = year + '-' + month + '-' + day;\n } else {\n var currentMonthStr = this.currentMonth;\n var currentDayStr = this.currentDay;\n if (this.currentMonth < 10) {\n currentMonthStr = '0' + this.currentMonth;\n }\n if (this.currentDay < 10) {\n currentDayStr = '0' + this.currentDay;\n }\n str = this.currentYear + '-' + currentMonthStr + '-' + currentDayStr;\n }\n var obj = {\n startTime: str\n };\n this.$api.v3searchCalendarListApi(obj, {\n onSucess: function onSucess(response) {\n if (response.data.code) {\n _this2.calendarDataItems = response.data.datas;\n if (_this2.calendarDataItems.length) {\n _this2.calendarDataItems.forEach(function (item) {\n if (item.item_state == '未完成') {\n _this2.$set(item, 'item_stateFlag', false);\n } else {\n _this2.$set(item, 'item_stateFlag', true);\n }\n });\n }\n }\n }\n });\n },\n itemState: function itemState(item) {\n var _this3 = this;\n var obj = {\n id: item.id,\n state: item.item_stateFlag ? '已完成' : '未完成'\n };\n this.$api.v3CanlendarFinishStatusApi(obj, {\n onSucess: function onSucess(response) {\n if (response.data.code) {\n _this3.searchCalendarList();\n _this3.searchCalendarListDay();\n }\n }\n });\n },\n addCalendar: function addCalendar() {\n this.formList = {};\n this.$set(this.formList, 'thescheduleofTheType', '工作安排');\n this.$set(this.formList, 'id', '');\n this.$set(this.form, 'id', '');\n this.$set(this.formList, 'pushTime', '15');\n this.fileList = [];\n this.dialog = true;\n this.title = '新建日程';\n this.employeeTableList();\n this.employeeTableListParty();\n },\n typechange: function typechange() {\n if (this.formList.thescheduleofTheType == '私人安排') {\n this.$set(this.formList, 'executor', localStorage.getItem('employeeId'));\n this.$set(this.formList, 'executorName', this.$store.state.myProfile.name);\n } else {\n this.$set(this.formList, 'executor', '');\n this.$set(this.formList, 'executorName', '');\n }\n },\n handleClose: function handleClose(done) {\n done();\n this.dialog = false;\n },\n cancelForm: function cancelForm() {\n this.dialog = false;\n },\n submit: function submit() {\n var _this4 = this;\n if (this.formList.endTime) {\n if (this.formList.endTime < this.formList.startTime) {\n this.$message({\n type: 'warning',\n message: '结束时间不能小于开始时间'\n });\n return;\n }\n }\n this.$refs.ruleForm.validate(function (valid) {\n if (valid) {\n var participant = '';\n var ParticipantName = '';\n if (_this4.resultArr.length) {\n _this4.resultArr.forEach(function (item) {\n participant += item.id + ';';\n ParticipantName += item.name + ';';\n });\n participant = participant.substring(0, participant.length - 1);\n ParticipantName = ParticipantName.substring(0, ParticipantName.length - 1);\n }\n var obj = {\n items: {\n thescheduleofTheType: _this4.formList.thescheduleofTheType,\n title: _this4.formList.title,\n Content: _this4.formList.Content,\n executor: _this4.formList.executor,\n executorName: _this4.formList.executorName,\n participant: participant,\n ParticipantName: ParticipantName,\n startTime: _this4.formList.startTime,\n endTime: _this4.formList.endTime,\n file: _this4.fileList.length ? JSON.stringify(_this4.fileList) : '',\n pushTime: _this4.formList.pushTime\n },\n id: _this4.form.id\n };\n if (_this4.form.id) {\n _this4.$api.v3CalendarOkUpdateApi(obj, {\n onSucess: function onSucess(response) {\n if (response.data.code == 0) {\n _this4.dialog = false;\n _this4.$nextTick(function () {\n this.$refs.ruleForm.resetFields(); //重置输入框提示\n });\n _this4.searchCalendarList();\n _this4.searchCalendarListDay();\n }\n }\n });\n } else {\n _this4.$api.v3CalendarOkApi(obj, {\n onSucess: function onSucess(response) {\n if (response.data.code == 0) {\n _this4.dialog = false;\n _this4.$nextTick(function () {\n this.$refs.ruleForm.resetFields(); //重置输入框提示\n });\n _this4.searchCalendarList();\n _this4.searchCalendarListDay();\n }\n }\n });\n }\n }\n });\n },\n employeeTableList: function employeeTableList() {\n var _this5 = this;\n //列表表格-查询结果\n var obj2 = {\n domainId: localStorage.getItem(\"domainId\") || ''\n };\n this.$api.v3employeeTableListApi(this.params, obj2, {\n onSucess: function onSucess(response) {\n if (response.data.data) {\n _this5.tableDataEmployee = response.data.data.data;\n _this5.params.total = response.data.data.total;\n }\n }\n });\n },\n filterMethod: function filterMethod(val) {\n var _this6 = this;\n //输入框过滤搜索\n //输入框关键词名称\n this.params.keyword = val;\n var obj2 = {\n domainId: localStorage.getItem(\"domainId\") || ''\n };\n this.$api.v3employeeTableListApi(this.params, obj2, {\n onSucess: function onSucess(response) {\n if (response.data.data) {\n _this6.tableDataEmployee = response.data.data.data;\n _this6.params.total = response.data.data.total;\n }\n }\n });\n },\n selectUser: function selectUser(val) {\n //查询下拉框id对应的名称数组\n var items = this.tableDataEmployee.find(function (item) {\n return item.id == val;\n });\n if (items) {\n this.$set(this.formList, 'executor', items.id);\n this.$set(this.formList, 'executorName', items.name);\n }\n },\n cleartag: function cleartag(val) {\n this.$set(this.params, 'keyword', '');\n this.employeeTableList();\n },\n employeeTableListParty: function employeeTableListParty() {\n var _this7 = this;\n //列表表格-查询结果\n var obj2 = {\n domainId: localStorage.getItem(\"domainId\") || ''\n };\n this.$api.v3employeeTableListApi(this.params2, obj2, {\n onSucess: function onSucess(response) {\n if (response.data.data) {\n _this7.tableDataEmployeeParty = response.data.data.data;\n _this7.params2.total = response.data.data.total;\n }\n }\n });\n },\n filterMethodParty: function filterMethodParty(val) {\n var _this8 = this;\n //输入框过滤搜索\n //输入框关键词名称\n this.params2.keyword = val;\n var obj2 = {\n domainId: localStorage.getItem(\"domainId\") || ''\n };\n this.$api.v3employeeTableListApi(this.params2, obj2, {\n onSucess: function onSucess(response) {\n if (response.data.data) {\n _this8.tableDataEmployeeParty = response.data.data.data;\n _this8.params2.total = response.data.data.total;\n }\n }\n });\n },\n selectUserParty: function selectUserParty(val) {\n var _this9 = this;\n //查询下拉框id对应的名称数组\n var resultArr = [];\n resultArr = this.tableDataEmployeeParty.filter(function (item) {\n return val.indexOf(item.id) > -1;\n });\n resultArr.forEach(function (its) {\n _this9.resultArr.push(its);\n });\n var resultArr2 = this.resultArr.filter(function (item) {\n return val.indexOf(item.id) > -1;\n });\n this.resultArr = resultArr2;\n this.resultArr = _toConsumableArray(new Set(this.resultArr));\n },\n removetagParty: function removetagParty(val) {\n var _this10 = this;\n this.resultArr.forEach(function (item) {\n if (item.id == val) {\n _this10.resultArr.splice(item, 1);\n }\n });\n },\n uploadImg: function uploadImg(e) {\n var _this11 = this;\n // alert(this.fileList.length)\n // if(this.fileList.length>0){\n // this.$message({type:'warning',message:'最多只能上传5个文件'})\n // return false\n // }\n\n var fd = new FormData();\n fd.append(\"file\", e.file);\n this.$api.v3commonFileUploadApi(fd, {\n onSucess: function onSucess(response) {\n var obj = {\n name: e.file.name,\n path: response.data.data,\n url: 'obpm' + response.data.data,\n fileType: e.file.type,\n uploader: _this11.$store.state.myProfile.name,\n uploadTime: currDateTime(),\n userName: _this11.$store.state.myProfile.name,\n time: currDateTime(),\n size: e.file.size,\n uid: e.file.uid,\n status: 'success'\n };\n _this11.fileList.push(obj);\n }\n });\n },\n handleRemove: function handleRemove(file, fileList) {\n var _this12 = this;\n this.fileList.forEach(function (item, index) {\n if (item == file) {\n _this12.fileList.splice(index, 1);\n }\n });\n },\n calendarDetail: function calendarDetail(item) {\n var _this13 = this;\n this.dialogdetail = true;\n var obj = {\n id: item.id\n };\n this.$api.v3CanlendarDetailApi(obj, {\n onSucess: function onSucess(response) {\n if (response.data.code == 0) {\n _this13.form = response.data.datas[0];\n if (_this13.form.item_starttime) {\n var date = new Date(_this13.form.item_starttime.time);\n var year = date.getFullYear();\n var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;\n var dates = date.getDate();\n var HH = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();\n var mm = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();\n var startTime = year + '-' + month + '-' + dates + ' ' + HH + ':' + mm;\n _this13.$set(_this13.form, 'starTime', startTime);\n }\n if (_this13.form.item_endtime) {\n var _date = new Date(_this13.form.item_endtime.time);\n var _year = _date.getFullYear();\n var _month = _date.getMonth() + 1 < 10 ? '0' + (_date.getMonth() + 1) : _date.getMonth() + 1;\n var _dates = _date.getDate() < 10 ? '0' + _date.getDate() : _date.getDate();\n var _HH = _date.getHours() < 10 ? '0' + _date.getHours() : _date.getHours();\n var _mm = _date.getMinutes() < 10 ? '0' + _date.getMinutes() : _date.getMinutes();\n var endTime = _year + '-' + _month + '-' + _dates + ' ' + _HH + ':' + _mm;\n _this13.$set(_this13.form, 'endTime', endTime);\n }\n _this13.fileList = _this13.form.item_file ? JSON.parse(_this13.form.item_file) : [];\n }\n }\n });\n },\n viewplan: function viewplan() {\n var url = \"/static/portal/vue/index.html#/open?appId=__K9C0HmAjnqJZgTI2sjd&actionContent=__OfViG2ekPlRujgkIDHR&opentarget=detail&linkType=00&realformId=__OfViG2ekPlRujgkIDHR&docid=\".concat(this.form.item_planid);\n window.open(url);\n },\n onpreview: function onpreview(file) {\n if (file.path.indexOf('http') == -1) {\n if (location.origin.indexOf('test') > -1) {\n window.open('/v3/shared' + file.path);\n } else {\n window.open('/obpm' + file.path);\n }\n } else {\n window.open(file.path);\n }\n },\n handleClosedetail: function handleClosedetail(done) {\n done();\n this.dialogdetail = false;\n },\n cancelFormDetail: function cancelFormDetail() {\n this.dialogdetail = false;\n },\n delDetail: function delDetail() {\n var _this14 = this;\n this.$confirm('即将删除该日程数据!删除后无法恢复,是否继续?').then(function (_) {\n _this14.dialogdetail = false;\n var obj = {\n id: _this14.form.id\n };\n _this14.$api.v3CanlendarDelApi(obj, {\n onSucess: function onSucess(response) {\n if (response.data.code) {\n _this14.searchCalendarList();\n _this14.searchCalendarListDay();\n }\n }\n });\n }).catch(function (_) {});\n },\n submitDetail: function submitDetail() {\n var _this15 = this;\n this.dialogdetail = false;\n var obj = {\n id: this.form.id,\n state: '已完成'\n };\n this.$api.v3CanlendarFinishStatusApi(obj, {\n onSucess: function onSucess(response) {\n if (response.data.code) {\n _this15.searchCalendarList();\n _this15.searchCalendarListDay();\n }\n }\n });\n },\n updateDetail: function updateDetail() {\n var _this16 = this;\n this.dialogdetail = false;\n this.dialog = true;\n this.title = '编辑日程';\n this.$set(this.params, 'pageSize', 999999);\n this.$set(this.params2, 'pageSize', 999999);\n this.employeeTableList();\n this.employeeTableListParty();\n var obj = {\n id: this.form.id\n };\n this.$api.v3CanlendarDetailApi(obj, {\n onSucess: function onSucess(response) {\n if (response.data.code == 0) {\n _this16.formList = response.data.datas[0];\n if (_this16.formList.item_starttime) {\n var date = new Date(_this16.formList.item_starttime.time);\n var year = date.getFullYear();\n var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;\n var dates = date.getDate();\n var HH = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();\n var mm = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();\n var startTime = year + '-' + month + '-' + dates + ' ' + HH + ':' + mm;\n _this16.$set(_this16.formList, 'startTime', startTime);\n }\n if (_this16.formList.item_endtime) {\n var _date2 = new Date(_this16.formList.item_endtime.time);\n var _year2 = _date2.getFullYear();\n var _month2 = _date2.getMonth() + 1 < 10 ? '0' + (_date2.getMonth() + 1) : _date2.getMonth() + 1;\n var _dates2 = _date2.getDate();\n var _HH2 = _date2.getHours() < 10 ? '0' + _date2.getHours() : _date2.getHours();\n var _mm2 = _date2.getMinutes() < 10 ? '0' + _date2.getMinutes() : _date2.getMinutes();\n var endTime = _year2 + '-' + _month2 + '-' + _dates2 + ' ' + _HH2 + ':' + _mm2;\n _this16.$set(_this16.formList, 'endTime', endTime);\n }\n _this16.fileList = _this16.formList.item_file ? JSON.parse(_this16.formList.item_file) : [];\n _this16.$set(_this16.formList, 'thescheduleofTheType', _this16.formList.item_thescheduleofthetype);\n _this16.$set(_this16.formList, 'title', _this16.formList.item_title);\n _this16.$set(_this16.formList, 'Content', _this16.formList.item_content);\n _this16.$set(_this16.formList, 'executor', _this16.formList.item_executor);\n _this16.$set(_this16.formList, 'executorName', _this16.formList.item_executorname);\n if (_this16.formList.item_participant) {\n var participantStr = _this16.formList.item_participant.split(\";\");\n _this16.$set(_this16.formList, 'participant', participantStr);\n _this16.$set(_this16.formList, 'ParticipantName', _this16.formList.item_participantname);\n }\n _this16.$set(_this16.formList, 'pushTime', _this16.formList.item_pushtime);\n }\n }\n });\n },\n initData: function initData(cur) {\n var _this17 = this;\n var date;\n if (cur) {\n date = new Date(cur);\n } else {\n date = new Date();\n // var d=new Date();\n // var d=new Date(this.formatDate(now.getFullYear(),now.getMonth(),1))\n // d.setDate(42);\n // date=new Date(this.formatDate(d.getFullYear(),d.getMonth()+1,1))\n }\n this.currentYear = date.getFullYear();\n this.currentMonth = date.getMonth() + 1;\n this.currentDay = date.getDate();\n this.currentWeek = date.getDay(); //1,6...0\n if (this.currentWeek == 0) {\n this.currentWeek = 7;\n }\n var str = this.formatDate(this.currentYear, this.currentMonth, 1);\n this.days.length = 0;\n // 今天是周日,放在第一行第7个位置,前面6个\n //初始化本周\n for (var i = this.currentWeek - 1; i >= 0; i--) {\n var d = new Date(str);\n d.setDate(d.getDate() - i);\n var dayobject = {};\n dayobject.day = d;\n var now = new Date();\n // if(d.getDate()===(now.getDate())&&d.getMonth()===now.getMonth()&&d.getFullYear()===now.getFullYear()){\n // dayobject.index=index++;//从今天开始显示数量\n // }else if(index!=0&&index<3){\n // dayobject.index=index++;//从今天开始3天内显示的数量\n // }\n this.days.push(dayobject);\n }\n //其他周\n for (var i = 1; i <= 42 - this.currentWeek; i++) {\n var d = new Date(str);\n d.setDate(d.getDate() + i);\n var dayobject = {};\n dayobject.day = d;\n var now = new Date();\n // if(d.getDate()===(now.getDate())&&d.getMonth()===now.getMonth()&&d.getFullYear()===now.getFullYear())\n // {\n // dayobject.index=index++;\n // }\n\n // else if(index!=0&&index<3)\n // dayobject.index=index++;\n this.days.push(dayobject);\n }\n this.days.forEach(function (item) {\n var date = new Date(item.day);\n var year = date.getFullYear();\n var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;\n var dates = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();\n var startTime = year + '-' + month + '-' + dates;\n _this17.$set(item, 'startTime', startTime);\n _this17.$set(item, 'count', 0);\n });\n },\n pickPre: function pickPre(year, month) {\n // setDate(0); 上月最后一天\n // setDate(-1); 上月倒数第二天\n // setDate(dx) 参数dx为 上月最后一天的前后dx天\n var d = new Date(this.formatDate(year, month, 1));\n d.setDate(0);\n this.initData(this.formatDate(d.getFullYear(), d.getMonth() + 1, 1));\n this.searchCalendarList();\n },\n pickNext: function pickNext(year, month) {\n var d = new Date(this.formatDate(year, month, 1));\n d.setDate(42);\n this.initData(this.formatDate(d.getFullYear(), d.getMonth() + 1, 1));\n this.searchCalendarList();\n },\n formatDate: function formatDate(year, month, day) {\n var y = year;\n var m = month;\n if (m < 10) m = \"0\" + m;\n var d = day;\n if (d < 10) d = \"0\" + d;\n return y + \"-\" + m + \"-\" + d;\n },\n enterSchedule: function enterSchedule() {\n // console.log('进入日程管理应用')\n var appId = '__Z9Q7OLCk3xcm8EcAy22';\n var name = '日程管理';\n var flag = 1;\n this.$store.dispatch(\"loadMenus\", {\n appId: appId,\n name: name,\n flag: flag\n });\n }\n }\n};",null]}