1 |
- {"version":3,"sources":["webpack:///./node_modules/_core-js@2.6.12@core-js/library/modules/es6.number.is-integer.js","webpack:///./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/number/is-integer.js","webpack:///./node_modules/_core-js@2.6.12@core-js/library/fn/number/is-integer.js","webpack:///./node_modules/_core-js@2.6.12@core-js/library/modules/_is-integer.js","webpack:///src/components/assembly/datetime.vue","webpack:///./src/components/assembly/datetime.vue?c0a5","webpack:///./src/components/assembly/datetime.vue","webpack:///src/components/createAd/test.vue","webpack:///./src/components/createAd/test.vue?e825","webpack:///./src/components/createAd/test.vue"],"names":["$export","__webpack_require__","S","isInteger","module","exports","default","__esModule","Number","isObject","floor","Math","it","isFinite","datetime","name","props","data","tableHeader","weekDate","1","2","3","4","5","6","7","rowUnit","timeContent","timeSection","timeStr","beginDay","beginTime","downEvent","kuangObj","width","height","top","left","bottom","right","oldLeft","oldTop","flag","py","px","back","h","w","len","created","this","init","checktime","length","initSelect","mounted","methods","i","arr","j","push","class","timeData","_this2","forEach","item","index","hasOwnProperty","handleMouseDown","day","dian","event","pageX","pageY","yi","px1","px2","hc","wc","li","handleMouseUp","_this","begin","start","abs","end","dayStart","dayLength","dayEnd","x","y","isAdd","_x","_y","c","kong","_i","splice","filterTime","index1","$emit","_this3","toStr","num","is_integer_default","toString","_loop","result","arr2","sort","a","b","v","temp","arr3","str","str1","timeToStr","clear","item1","assembly_datetime","render","_vm","_h","$createElement","_c","_self","staticClass","on","mousedown","mousemove","mouseup","ref","staticStyle","_m","_v","_l","key","_s","attrs","id","style","$event","preventDefault","colspan","click","directives","rawName","value","expression","backgroundColor","position","opacity","border","zIndex","staticRenderFns","rowspan","Component","normalizeComponent","ssrContext","__webpack_exports__","createAd_test","_ref","commnentList","new_expose_tag","rules","type","required","message","trigger","timeRange","defineProperty_default","description","disabledDate","time","getTime","Date","now","components","lastArr","console","log","val","test","asyncToGenerator_default","regenerator_default","mark","_callee","wrap","_context","prev","next","$refs","validate","sent","stop","add","getSame","index2","saveTime","components_createAd_test","schedule_type","_e","picker-options","pickerOptions","range-separator","start-placeholder","end-placeholder","value-format","align","model","callback","$$v","prop","label","label-position","label-width","slot","multiple","max","placeholder","$set"],"mappings":"yCACA,IAAAA,EAAcC,EAAQ,QAEtBD,IAAAE,EAAA,UAA8BC,UAAYF,EAAQ,kCCHlDG,EAAAC,SAAkBC,QAAYL,EAAQ,QAAsCM,YAAA,2BCA5EN,EAAQ,QACRG,EAAAC,QAAiBJ,EAAQ,QAAqBO,OAAAL,gCCA9C,IAAAM,EAAeR,EAAQ,QACvBS,EAAAC,KAAAD,MACAN,EAAAC,QAAA,SAAAO,GACA,OAAAH,EAAAG,IAAAC,SAAAD,IAAAF,EAAAE,oECoIAE,GACAC,KAAA,aACAC,OACA,aAEAC,KALA,WAMA,OACAC,aACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,MAEAC,UACAC,EAAA,MACAC,EAAA,MACAC,EAAA,MACAC,EAAA,MACAC,EAAA,MACAC,EAAA,MACAC,EAAA,OAEAC,WACAC,eACAC,eACAC,WACAC,SAAA,EACAC,UAAA,EACAC,WAAA,EACAC,UACAC,MAAA,EACAC,OAAA,EACAC,IAAA,EACAC,KAAA,EACAC,OAAA,EACAC,MAAA,EACAC,QAAA,EACAC,OAAA,EACAC,MAAA,GAEAC,GAAA,GACAC,GAAA,GACAC,KAAA,UACAC,EAAA,GACAC,EAAA,GACAX,IAAA,GACAC,KAAA,GACAW,IAAA,IAGAC,QAtEA,WAuEAC,KAAAC,OACAD,KAAAvB,YAAAuB,KAAAE,UACAF,KAAAvB,YAAA0B,OAAA,GACAH,KAAAI,cAGAC,QA7EA,aA8EAC,SACAL,KADA,WAEA,QAAAM,EAAA,EAAAA,EAAA,EAAAA,IAAA,CAEA,IADA,IAAAC,KACAC,EAAA,EAAAA,EAAA,GAAAA,IACAD,EAAAE,MAAA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E,EAAA6E,YAA+C7E,EAAAgF,KAAAhF,EAAAa,GAAA,KAAAV,EAAA,kBAA4Cc,OAAO2B,KAAA,YAAAqC,iBAAAjF,EAAAkF,cAAAC,kBAAA,IAAAC,oBAAA,OAAAC,kBAAA,OAAAC,eAAA,aAAAC,MAAA,SAA4KC,OAAQ9D,MAAA1B,EAAA,UAAAyF,SAAA,SAAAC,GAA+C1F,EAAAgD,UAAA0C,GAAkB/D,WAAA,eAAyB3B,EAAAa,GAAA,KAAAV,EAAA,WAA4BO,IAAA,OAAAO,OAAkBuE,MAAAxF,EAAA1G,KAAAqJ,MAAA3C,EAAA2C,SAAoCxC,EAAA,gBAAqBE,YAAA,WAAAY,OAA8B0E,KAAA,iBAAAC,MAAA,OAAAC,iBAAA,QAAAC,cAAA,WAAuF3F,EAAA,OAAYE,YAAA,eAAyBF,EAAA,aAAkBc,OAAO8E,KAAA,UAAAC,SAAA,GAAAC,IAAA,EAAAC,YAAA,OAA2DH,KAAA,UAAAP,OAAuB9D,MAAA1B,EAAA1G,KAAA,eAAAmM,SAAA,SAAAC,GAAyD1F,EAAAmG,KAAAnG,EAAA1G,KAAA,iBAAAoM,IAA0C/D,WAAA,wBAAmC3B,EAAAc,GAAAd,EAAA,sBAAAzD,GAA0C,OAAA4D,EAAA,aAAuBY,IAAAxE,EAAA0E,OAAgB2E,MAAArJ,EAAAmF,MAAAnF,OAA6B,aAAAyD,EAAAa,GAAA,KAAAV,EAAA,UAAwCG,IAAIiB,MAAAvB,EAAA6D,QAAkB7D,EAAAa,GAAA,aAEnrCoB,oBCYjBE,EAdyB7J,EAAQ,OAcjC8J,CACEG,EACAuC,GATF,EAEA,KAEA,KAEA,MAUexC,EAAA,QAAAH,EAAiB","file":"static/js/4.19e6fe4461c783fba772.js","sourcesContent":["// 20.1.2.3 Number.isInteger(number)\nvar $export = require('./_export');\n\n$export($export.S, 'Number', { isInteger: require('./_is-integer') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_core-js@2.6.12@core-js/library/modules/es6.number.is-integer.js\n// module id = 1yLE\n// module chunks = 2 4","module.exports = { \"default\": require(\"core-js/library/fn/number/is-integer\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/number/is-integer.js\n// module id = 4Xi4\n// module chunks = 2 4","require('../../modules/es6.number.is-integer');\nmodule.exports = require('../../modules/_core').Number.isInteger;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_core-js@2.6.12@core-js/library/fn/number/is-integer.js\n// module id = 6OVK\n// module chunks = 2 4","// 20.1.2.3 Number.isInteger(number)\nvar isObject = require('./_is-object');\nvar floor = Math.floor;\nmodule.exports = function isInteger(it) {\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_core-js@2.6.12@core-js/library/modules/_is-integer.js\n// module id = D44a\n// module chunks = 2 4","\r\n<template>\r\n <div class=\"byted-weektime\" @mousedown=\"dian\" @mousemove=\"yi\" @mouseup=\"li\">\r\n <div class=\"calendar\">\r\n <table ref=\"timeCheck\" class=\"calendar-table\" style=\"width:610px\">\r\n <thead class=\"calendar-head\">\r\n <tr>\r\n <th rowspan=\"2\" class=\"week-td\">星期/时间</th>\r\n <th colspan=\"12\">上午</th>\r\n <th colspan=\"12\">下午</th>\r\n </tr>\r\n <tr>\r\n <td v-for=\"(item,index) in tableHeader\" :key=\"index\">{{item}}</td>\r\n </tr>\r\n </thead>\r\n <tbody id=\"tableBody\">\r\n <div\r\n id=\"kuang\"\r\n :style=\"{width:kuangObj.width+'px',height:kuangObj.height+'px',top:kuangObj.top+'px',left:kuangObj.left+'px',bottom:kuangObj.bottom+'px',right:kuangObj.right+'px'}\"\r\n ></div>\r\n <tr>\r\n <td>星期一</td>\r\n <td\r\n @mousedown.prevent=\"handleMouseDown(i,0)\"\r\n @mouseup.prevent=\"handleMouseUp(i,0)\"\r\n class=\"calendar-atom-time\"\r\n :class=\"item.class\"\r\n v-for=\"(item,i) in rowUnit[0]\"\r\n :key=\"i\"\r\n ></td>\r\n </tr>\r\n <tr>\r\n <td>星期二</td>\r\n <td\r\n @mousedown.prevent=\"handleMouseDown(i,1)\"\r\n @mouseup.prevent=\"handleMouseUp(i,1)\"\r\n class=\"calendar-atom-time\"\r\n :class=\"item.class\"\r\n v-for=\"(item,i) in rowUnit[1]\"\r\n :key=\"i\"\r\n ></td>\r\n </tr>\r\n <tr>\r\n <td>星期三</td>\r\n <td\r\n @mousedown.prevent=\"handleMouseDown(i,2)\"\r\n @mouseup.prevent=\"handleMouseUp(i,2)\"\r\n class=\"calendar-atom-time\"\r\n :class=\"item.class\"\r\n v-for=\"(item,i) in rowUnit[2]\"\r\n :key=\"i\"\r\n ></td>\r\n </tr>\r\n <tr>\r\n <td>星期四</td>\r\n <td\r\n @mousedown.prevent=\"handleMouseDown(i,3)\"\r\n @mouseup.prevent=\"handleMouseUp(i,3)\"\r\n class=\"calendar-atom-time\"\r\n :class=\"item.class\"\r\n v-for=\"(item,i) in rowUnit[3]\"\r\n :key=\"i\"\r\n ></td>\r\n </tr>\r\n <tr>\r\n <td>星期五</td>\r\n <td\r\n @mousedown.prevent=\"handleMouseDown(i,4)\"\r\n @mouseup.prevent=\"handleMouseUp(i,4)\"\r\n class=\"calendar-atom-time\"\r\n :class=\"item.class\"\r\n v-for=\"(item,i) in rowUnit[4]\"\r\n :key=\"i\"\r\n ></td>\r\n </tr>\r\n <tr>\r\n <td>星期六</td>\r\n <td\r\n @mousedown.prevent=\"handleMouseDown(i,5)\"\r\n @mouseup.prevent=\"handleMouseUp(i,5)\"\r\n class=\"calendar-atom-time\"\r\n :class=\"item.class\"\r\n v-for=\"(item,i) in rowUnit[5]\"\r\n :key=\"i\"\r\n ></td>\r\n </tr>\r\n <tr>\r\n <td>星期日</td>\r\n <td\r\n @mousedown.prevent=\"handleMouseDown(i,6)\"\r\n @mouseup.prevent=\"handleMouseUp(i,6)\"\r\n class=\"calendar-atom-time\"\r\n :class=\"item.class\"\r\n v-for=\"(item,i) in rowUnit[6]\"\r\n :key=\"i\"\r\n ></td>\r\n </tr>\r\n\r\n <tr>\r\n <td colspan=\"49\" class=\"td-table-tip\">\r\n <div class=\"clearfix\">\r\n <span class=\"pull-left tip-text\">请用鼠标点选时间段</span>\r\n <a @click=\"clear\" class=\"pull-right\">清空</a>\r\n </div>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"25\" class=\"timeContent\">\r\n <div class=\"timeItem\" v-for=\"(item,index) in timeStr\" :key=\"index\" v-show=\"item.length\">\r\n <span>{{weekDate[index+1]}}:</span>\r\n <strong>\r\n <span>{{item}}</span>\r\n </strong>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n <!-- 鼠标的画框的效果 -->\r\n <div\r\n id=\"container\"\r\n v-bind:style=\"{backgroundColor:back,\r\n height:h+'px',\r\n width:w+'px',\r\n position:'absolute',\r\n left:left+'px',\r\n top:top+'px',\r\n opacity:0.2,\r\n border:len+'px dashed #000',\r\n zIndex:-1}\"\r\n ></div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"timeSelect\",\r\n props: [\r\n 'checktime'\r\n ],\r\n data() {\r\n return {\r\n tableHeader: [\r\n \"00\",\r\n \"01\",\r\n \"02\",\r\n \"03\",\r\n \"04\",\r\n \"05\",\r\n \"06\",\r\n \"07\",\r\n \"08\",\r\n \"09\",\r\n \"10\",\r\n \"11\",\r\n \"12\",\r\n \"13\",\r\n \"14\",\r\n \"15\",\r\n \"16\",\r\n \"17\",\r\n \"18\",\r\n \"19\",\r\n \"20\",\r\n \"21\",\r\n \"22\",\r\n \"23\"\r\n ],\r\n weekDate: {\r\n \"1\": \"星期一\",\r\n \"2\": \"星期二\",\r\n \"3\": \"星期三\",\r\n \"4\": \"星期四\",\r\n \"5\": \"星期五\",\r\n \"6\": \"星期六\",\r\n \"7\": \"星期日\"\r\n },\r\n rowUnit: [], //每一个单元格\r\n timeContent: [], //选中的时间段原始数据\r\n timeSection: [], //时间段,可以返回给后台的数据\r\n timeStr: [], //时间段,前端显示的数据\r\n beginDay: 0,\r\n beginTime: 0,\r\n downEvent: false,\r\n kuangObj: {\r\n width: 0,\r\n height: 0,\r\n top: 0,\r\n left: 0,\r\n bottom: 0,\r\n right: 0,\r\n oldLeft: 0,\r\n oldTop: 0,\r\n flag: false\r\n },\r\n py: \"\",\r\n px: \"\",\r\n back: \"#31676f\",\r\n h: \"\",\r\n w: \"\",\r\n top: \"\",\r\n left: \"\",\r\n len: 0\r\n };\r\n },\r\n created() {\r\n this.init();\r\n this.timeContent = this.checktime;\r\n if(this.timeContent.length>0) {\r\n this.initSelect();\r\n }\r\n },\r\n mounted() {},\r\n methods: {\r\n init() {\r\n for (let i = 0; i < 7; i++) {\r\n let arr = [];\r\n for (let j = 0; j < 24; j++) {\r\n arr.push({ class: null, timeData: j });\r\n }\r\n this.rowUnit.push(arr);\r\n this.timeContent.push({ arr: [] });\r\n this.timeSection.push([]);\r\n this.timeStr.push(\"\");\r\n }\r\n \r\n this.initSelect();\r\n },\r\n // 初始化添加选中\r\n initSelect() {\r\n //没选中的全都选上\r\n this.timeContent.forEach((item,index) => {\r\n if(item.hasOwnProperty('arr')&&item['arr'].length>0) {\r\n item.arr.forEach(data => {\r\n this.rowUnit[index][data].class = \"ui-selected\";\r\n })\r\n }\r\n })\r\n },\r\n handleMouseDown(i, day) {\r\n this.downEvent = true; //按下时鼠标不在范围内则不算\r\n this.beginDay = day;\r\n this.beginTime = i;\r\n },\r\n dian(event) {\r\n this.px = event.pageX; //获取x坐标\r\n this.py = event.pageY;\r\n },\r\n yi(event) {\r\n if (this.px == \"\" || this.py == \"\") {\r\n return;\r\n }\r\n var px1 = this.px;\r\n var px2 = this.py;\r\n this.left = event.pageX;\r\n this.top = event.pageY;\r\n this.h = this.top - this.py;\r\n this.w = this.left - this.px;\r\n var hc = -this.h;\r\n var wc = -this.w;\r\n this.len = 1;\r\n this.back = \"#31676f\";\r\n if (this.h < 0 && this.w >= 0) {\r\n // console.log(1);\r\n this.h = hc;\r\n this.left = px1;\r\n } else if (this.h >= 0 && this.w < 0) {\r\n // console.log(2);\r\n this.w = wc;\r\n this.top = px2;\r\n } else if (this.h < 0 && this.w < 0) {\r\n // console.log(3);\r\n this.h = hc;\r\n this.w = wc;\r\n } else {\r\n // console.log(4);\r\n this.left = this.px;\r\n this.top = this.py;\r\n }\r\n if (this.w < 0) {\r\n this.w = 0 - this.w;\r\n }\r\n if (this.h < 0) {\r\n this.h = 0 - this.h;\r\n }\r\n },\r\n li() {\r\n this.px = \"\";\r\n this.py = \"\";\r\n this.h = \"\";\r\n this.w = \"\";\r\n this.top = \"\";\r\n this.left = \"\";\r\n this.len = 0;\r\n this.back = \"\";\r\n },\r\n handleMouseUp(i, day) {\r\n let _this = this;\r\n let begin = this.beginTime;\r\n let start = begin <= i ? begin : i; //x轴 起点\r\n let length = Math.abs(begin - i);\r\n let end = start + length; //x轴 终点\r\n\r\n let dayStart = this.beginDay <= day ? this.beginDay : day; //y轴 起点\r\n let dayLength = Math.abs(this.beginDay - day);\r\n let dayEnd = dayStart + dayLength; //y轴 终点\r\n //当框选范围内所有块都是选中状态时,执行反选\r\n function isAdd() {\r\n for (let x = dayStart; x < dayEnd + 1; x++) {\r\n for (let y = start; y < end + 1; y++) {\r\n if (_this.rowUnit[x][y].class == null) return true;\r\n }\r\n }\r\n return false;\r\n }\r\n //当点击事件是在table内才触发选取数据操作\r\n if (this.downEvent) {\r\n //选时间段\r\n if (isAdd()) {\r\n //没选中的全都选上\r\n for (let x = dayStart; x < dayEnd + 1; x++) {\r\n for (let y = start; y < end + 1; y++) {\r\n if (this.rowUnit[x][y].class == null) {\r\n this.rowUnit[x][y].class = \"ui-selected\";\r\n this.timeContent[x].arr.push(this.rowUnit[x][y].timeData);\r\n }\r\n }\r\n }\r\n } else {\r\n //反选\r\n for (let x = dayStart; x < dayEnd + 1; x++) {\r\n for (let y = start; y < end + 1; y++) {\r\n if (this.rowUnit[x][y].class == \"ui-selected\") {\r\n this.rowUnit[x][y].class = null;\r\n var c = this.rowUnit[x][y].timeData;\r\n var kong = \"\";\r\n for (let i = 0; i < this.timeContent[x].arr.length; i++) {\r\n if (c == this.timeContent[x].arr[i]) {\r\n kong = i;\r\n }\r\n }\r\n this.timeContent[x].arr.splice(kong, 1);\r\n }\r\n }\r\n }\r\n }\r\n //过滤时间段,将临近的时间段合并\r\n this.filterTime(dayStart, dayEnd);\r\n }\r\n this.downEvent = false;\r\n var arr = [];\r\n this.rowUnit.forEach((item,index) => {\r\n arr[index] = [];\r\n item.forEach((data,index1) => {\r\n data.class==\"ui-selected\"?arr[index][index1]=1:arr[index][index1]=0\r\n })\r\n })\r\n this.$emit('saveTime',arr) \r\n },\r\n \r\n filterTime(start, end) {\r\n //选中的x,y坐标信息 x:0-47 y:0-6\r\n function sortCut(arr) {\r\n //提取连续的数字\r\n var result = [];\r\n arr.forEach(function(v, i) {\r\n var temp = result[result.length - 1];\r\n if (!i) {\r\n result.push([v]);\r\n } else if (v % 1 === 0 && v - temp[temp.length - 1] == 1) {\r\n temp.push(v);\r\n } else {\r\n result.push([v]);\r\n }\r\n });\r\n return result;\r\n }\r\n function toStr(num) {\r\n if (Number.isInteger(num)) {\r\n let str = num < 10 ? \"0\" + num : num.toString();\r\n return str + \":00\";\r\n } else {\r\n let str =\r\n Math.floor(num) < 10\r\n ? \"0\" + Math.floor(num)\r\n : Math.floor(num).toString();\r\n return str + \":00\";\r\n }\r\n }\r\n function timeToStr(arr) {\r\n //把数组转成方便人看到字符串\r\n let str = \"\";\r\n arr.forEach((arr, index) => {\r\n let str1 = \"\";\r\n if (index == 0) {\r\n str1 = toStr(arr[0]) + \"~\" + toStr(arr[1]);\r\n } else {\r\n str1 = \" , \" + toStr(arr[0]) + \"~\" + toStr(arr[1]);\r\n }\r\n str += str1;\r\n });\r\n\r\n return str;\r\n }\r\n //排序,分割成\r\n for (let i = start; i < end + 1; i++) {\r\n let arr1 = sortCut(this.timeContent[i].arr.sort((a, b) => a - b));\r\n let arr2 = [];\r\n arr1.forEach(arr => {\r\n //转成带小数点的时间段,以及供前端显示的字符串\r\n let arr3 = [];\r\n arr3.push(arr[0] );\r\n arr3.push(arr[arr.length - 1] + 1);\r\n arr2.push(arr3);\r\n });\r\n this.timeStr[i] = timeToStr(arr2);\r\n this.timeSection[i] = arr2;\r\n }\r\n },\r\n clear() {\r\n this.rowUnit.forEach(item => {\r\n item.forEach(item1 => {\r\n item1.class = null;\r\n });\r\n });\r\n this.timeContent.forEach(item => {\r\n item.arr = [];\r\n });\r\n this.timeSection.forEach(item => {\r\n //赋值成空数组[]出问题\r\n item.length = 0;\r\n });\r\n //遍历赋值成'',不管用\r\n this.timeStr.length = 0;\r\n for (let i = 0; i < 7; i++) {\r\n this.timeStr.push(\"\");\r\n }\r\n //this.initState = true\r\n },\r\n }\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.timeContent {\r\n padding: 12px;\r\n width: 100%;\r\n box-sizing: border-box;\r\n}\r\n.byted-weektime .calendar {\r\n -webkit-user-select: none;\r\n position: relative;\r\n display: inline-block;\r\n}\r\n.byted-weektime .calendar .calendar-table {\r\n border-collapse: collapse;\r\n border-radius: 4px;\r\n}\r\n.byted-weektime .calendar .calendar-table tr .calendar-atom-time:hover {\r\n background: #ccc;\r\n}\r\n.byted-weektime .calendar .calendar-table tr .ui-selected {\r\n background: #2f88ff;\r\n}\r\n.byted-weektime .calendar .calendar-table tr .ui-selected:hover {\r\n background: #2f88ff;\r\n}\r\n.byted-weektime .calendar .calendar-table tr,\r\n.byted-weektime .calendar .calendar-table td,\r\n.byted-weektime .calendar .calendar-table th {\r\n border: 1px solid #ccc;\r\n font-size: 12px;\r\n text-align: center;\r\n\r\n line-height: 1.8em;\r\n -webkit-transition: background 200ms ease;\r\n -moz-transition: background 200ms ease;\r\n -ms-transition: background 200ms ease;\r\n transition: background 200ms ease;\r\n}\r\n.byted-weektime .calendar .calendar-table tbody tr {\r\n height: 30px;\r\n}\r\n.byted-weektime .calendar .calendar-table tbody tr td:first-child {\r\n background: #f8f9fa;\r\n}\r\n.byted-weektime .calendar .calendar-table thead th,\r\n.byted-weektime .calendar .calendar-table thead td {\r\n background: #f8f9fa;\r\n}\r\n.byted-weektime .calendar .calendar-table .td-table-tip {\r\n line-height: 2.4em;\r\n padding: 0 12px 0 19px;\r\n background: #fff !important;\r\n}\r\n.byted-weektime .calendar .calendar-table .td-table-tip .clearfix {\r\n height: 46px;\r\n line-height: 46px;\r\n}\r\n.byted-weektime .calendar .calendar-table .td-table-tip .pull-left {\r\n font-size: 14px;\r\n color: #333333;\r\n}\r\n.byted-weektime .week-td {\r\n width: 75px;\r\n padding: 20px 0;\r\n}\r\n.byted-weektime a {\r\n cursor: pointer;\r\n color: #2f88ff;\r\n font-size: 14px;\r\n}\r\n#kuang {\r\n position: absolute;\r\n background-color: blue;\r\n opacity: 0.3;\r\n}\r\n</style>\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/components/assembly/datetime.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"byted-weektime\",on:{\"mousedown\":_vm.dian,\"mousemove\":_vm.yi,\"mouseup\":_vm.li}},[_c('div',{staticClass:\"calendar\"},[_c('table',{ref:\"timeCheck\",staticClass:\"calendar-table\",staticStyle:{\"width\":\"610px\"}},[_c('thead',{staticClass:\"calendar-head\"},[_vm._m(0),_vm._v(\" \"),_c('tr',_vm._l((_vm.tableHeader),function(item,index){return _c('td',{key:index},[_vm._v(_vm._s(item))])}),0)]),_vm._v(\" \"),_c('tbody',{attrs:{\"id\":\"tableBody\"}},[_c('div',{style:({width:_vm.kuangObj.width+'px',height:_vm.kuangObj.height+'px',top:_vm.kuangObj.top+'px',left:_vm.kuangObj.left+'px',bottom:_vm.kuangObj.bottom+'px',right:_vm.kuangObj.right+'px'}),attrs:{\"id\":\"kuang\"}}),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"星期一\")]),_vm._v(\" \"),_vm._l((_vm.rowUnit[0]),function(item,i){return _c('td',{key:i,staticClass:\"calendar-atom-time\",class:item.class,on:{\"mousedown\":function($event){$event.preventDefault();return _vm.handleMouseDown(i,0)},\"mouseup\":function($event){$event.preventDefault();return _vm.handleMouseUp(i,0)}}})})],2),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"星期二\")]),_vm._v(\" \"),_vm._l((_vm.rowUnit[1]),function(item,i){return _c('td',{key:i,staticClass:\"calendar-atom-time\",class:item.class,on:{\"mousedown\":function($event){$event.preventDefault();return _vm.handleMouseDown(i,1)},\"mouseup\":function($event){$event.preventDefault();return _vm.handleMouseUp(i,1)}}})})],2),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"星期三\")]),_vm._v(\" \"),_vm._l((_vm.rowUnit[2]),function(item,i){return _c('td',{key:i,staticClass:\"calendar-atom-time\",class:item.class,on:{\"mousedown\":function($event){$event.preventDefault();return _vm.handleMouseDown(i,2)},\"mouseup\":function($event){$event.preventDefault();return _vm.handleMouseUp(i,2)}}})})],2),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"星期四\")]),_vm._v(\" \"),_vm._l((_vm.rowUnit[3]),function(item,i){return _c('td',{key:i,staticClass:\"calendar-atom-time\",class:item.class,on:{\"mousedown\":function($event){$event.preventDefault();return _vm.handleMouseDown(i,3)},\"mouseup\":function($event){$event.preventDefault();return _vm.handleMouseUp(i,3)}}})})],2),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"星期五\")]),_vm._v(\" \"),_vm._l((_vm.rowUnit[4]),function(item,i){return _c('td',{key:i,staticClass:\"calendar-atom-time\",class:item.class,on:{\"mousedown\":function($event){$event.preventDefault();return _vm.handleMouseDown(i,4)},\"mouseup\":function($event){$event.preventDefault();return _vm.handleMouseUp(i,4)}}})})],2),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"星期六\")]),_vm._v(\" \"),_vm._l((_vm.rowUnit[5]),function(item,i){return _c('td',{key:i,staticClass:\"calendar-atom-time\",class:item.class,on:{\"mousedown\":function($event){$event.preventDefault();return _vm.handleMouseDown(i,5)},\"mouseup\":function($event){$event.preventDefault();return _vm.handleMouseUp(i,5)}}})})],2),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"星期日\")]),_vm._v(\" \"),_vm._l((_vm.rowUnit[6]),function(item,i){return _c('td',{key:i,staticClass:\"calendar-atom-time\",class:item.class,on:{\"mousedown\":function($event){$event.preventDefault();return _vm.handleMouseDown(i,6)},\"mouseup\":function($event){$event.preventDefault();return _vm.handleMouseUp(i,6)}}})})],2),_vm._v(\" \"),_c('tr',[_c('td',{staticClass:\"td-table-tip\",attrs:{\"colspan\":\"49\"}},[_c('div',{staticClass:\"clearfix\"},[_c('span',{staticClass:\"pull-left tip-text\"},[_vm._v(\"请用鼠标点选时间段\")]),_vm._v(\" \"),_c('a',{staticClass:\"pull-right\",on:{\"click\":_vm.clear}},[_vm._v(\"清空\")])])])]),_vm._v(\" \"),_c('tr',[_c('td',{staticClass:\"timeContent\",attrs:{\"colspan\":\"25\"}},_vm._l((_vm.timeStr),function(item,index){return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(item.length),expression:\"item.length\"}],key:index,staticClass:\"timeItem\"},[_c('span',[_vm._v(_vm._s(_vm.weekDate[index+1])+\":\")]),_vm._v(\" \"),_c('strong',[_c('span',[_vm._v(_vm._s(item))])])])}),0)])])])]),_vm._v(\" \"),_c('div',{style:({backgroundColor:_vm.back,\n height:_vm.h+'px',\n width:_vm.w+'px',\n position:'absolute',\n left:_vm.left+'px',\n top:_vm.top+'px',\n opacity:0.2,\n border:_vm.len+'px dashed #000',\n zIndex:-1}),attrs:{\"id\":\"container\"}})])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',{staticClass:\"week-td\",attrs:{\"rowspan\":\"2\"}},[_vm._v(\"星期/时间\")]),_vm._v(\" \"),_c('th',{attrs:{\"colspan\":\"12\"}},[_vm._v(\"上午\")]),_vm._v(\" \"),_c('th',{attrs:{\"colspan\":\"12\"}},[_vm._v(\"下午\")])])}]\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{\"id\":\"data-v-dbd4fa0e\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/components/assembly/datetime.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/_extract-text-webpack-plugin@3.0.2@extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-dbd4fa0e\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./datetime.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=script&index=0!./datetime.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=script&index=0!./datetime.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-dbd4fa0e\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=template&index=0!./datetime.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-dbd4fa0e\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/assembly/datetime.vue\n// module id = null\n// module chunks = ","<template>\r\n <div>\r\n <datetime v-if=\"schedule_type==1\" :checktime=\"checktime\" @getTime=\"getTime\" @saveTime=\"saveTime\"></datetime>\r\n\r\n <el-date-picker\r\n v-model=\"timeRange\"\r\n type=\"daterange\"\r\n :picker-options=\"pickerOptions\"\r\n range-separator=\"至\"\r\n start-placeholder=\"开始日期\"\r\n end-placeholder=\"结束日期\"\r\n value-format=\"yyyy-MM-dd\"\r\n align=\"right\">\r\n </el-date-picker>\r\n\r\n\r\n <el-form ref=\"test\" :model=\"data\" :rules=\"rules\">\r\n <el-form-item prop=\"new_expose_tag\" label=\"推荐理由\" class=\"inputBox\" label-position=\"right\" label-width=\"140px\">\r\n <div class=\"rightInput\">\r\n <el-select multiple :max=\"2\" v-model=\"data.new_expose_tag\" slot=\"prepend\" placeholder=\"请选择\">\r\n <el-option v-for=\"item in commnentList\" :label=\"item\" :value=\"item\" :key=\"item\"></el-option>\r\n </el-select>\r\n </div>\r\n </el-form-item>\r\n </el-form>\r\n <button @click=\"test\">测试</button>\r\n </div>\r\n</template>\r\n<script>\r\nimport datetime from \"@/components/assembly/datetime.vue\";\r\nexport default {\r\n data() {\r\n return {\r\n commnentList: [\r\n 1,2,4,5\r\n ],\r\n data: {\r\n new_expose_tag:[]\r\n },\r\n rules: { \r\n new_expose_tag: [\r\n {type:'array',required: true, message: '请输入推荐理由', trigger: 'blur'},\r\n // {max:2,message:'最多选连个', trigger: 'change'}\r\n ],\r\n },\r\n timeRange: [\r\n \"2021-03-25\",\"\"\r\n ],\r\n data: {\r\n description:''\r\n },\r\n pickerOptions: {\r\ndisabledDate(time) {\r\n return time.getTime() < Date.now();\r\n },\r\n },\r\n arr: [0,0,0,1,2,4,6,7,8,5],\r\n schedule_type: 1,\r\n lastArr: [],\r\n checktime: [\r\n {\r\n arr: []\r\n },{\r\n arr: []\r\n },{\r\n arr: []\r\n },{\r\n arr: []\r\n },{\r\n arr: []\r\n },{\r\n arr: []\r\n },{\r\n arr: []\r\n }\r\n ]\r\n }\r\n },\r\n components: {\r\n datetime\r\n },\r\n created() {\r\n this.lastArr = [];\r\n // this.checktime = [];\r\n // this.getSame();\r\n console.log(this.checktime)\r\n },\r\n methods: {\r\n getTime(val) {\r\n console.log(val)\r\n },\r\n async test() {\r\n const validVal = await this.$refs['test'].validate()\r\n },\r\n add() {\r\n this.data.description = (this.data.description?this.data.description:'')+'21312312'\r\n console.log(this.data.description)\r\n },\r\n // 切割等分数组\r\n getSame() {\r\n console.log(this.arr)\r\n if(this.arr.length>3) {\r\n this.lastArr.push(this.arr.splice(0,3)) \r\n this.getSame();\r\n }else {\r\n this.lastArr.push(this.arr);\r\n this.lastArr.forEach((item,index) => {\r\n // console.log(this.checktime[index])\r\n this.checktime.push({\r\n arr: []\r\n })\r\n // this.checktime[index]['arr'] = [];\r\n item.forEach((data,index2) => {\r\n if(data==1) {\r\n this.checktime[index]['arr'].push(index+1)\r\n }\r\n })\r\n })\r\n }\r\n },\r\n saveTime(val) {\r\n console.log(val)\r\n }\r\n }\r\n}\r\n</script>\n\n\n// WEBPACK FOOTER //\n// src/components/createAd/test.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.schedule_type==1)?_c('datetime',{attrs:{\"checktime\":_vm.checktime},on:{\"getTime\":_vm.getTime,\"saveTime\":_vm.saveTime}}):_vm._e(),_vm._v(\" \"),_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"picker-options\":_vm.pickerOptions,\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"value-format\":\"yyyy-MM-dd\",\"align\":\"right\"},model:{value:(_vm.timeRange),callback:function ($$v) {_vm.timeRange=$$v},expression:\"timeRange\"}}),_vm._v(\" \"),_c('el-form',{ref:\"test\",attrs:{\"model\":_vm.data,\"rules\":_vm.rules}},[_c('el-form-item',{staticClass:\"inputBox\",attrs:{\"prop\":\"new_expose_tag\",\"label\":\"推荐理由\",\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('div',{staticClass:\"rightInput\"},[_c('el-select',{attrs:{\"slot\":\"prepend\",\"multiple\":\"\",\"max\":2,\"placeholder\":\"请选择\"},slot:\"prepend\",model:{value:(_vm.data.new_expose_tag),callback:function ($$v) {_vm.$set(_vm.data, \"new_expose_tag\", $$v)},expression:\"data.new_expose_tag\"}},_vm._l((_vm.commnentList),function(item){return _c('el-option',{key:item,attrs:{\"label\":item,\"value\":item}})}),1)],1)])],1),_vm._v(\" \"),_c('button',{on:{\"click\":_vm.test}},[_vm._v(\"测试\")])],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{\"id\":\"data-v-61dd2028\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/components/createAd/test.vue\n// module id = null\n// module chunks = ","var normalizeComponent = require(\"!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=script&index=0!./test.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=script&index=0!./test.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-61dd2028\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=template&index=0!./test.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/createAd/test.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|