| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117 |
- (function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory();
- else if(typeof define === 'function' && define.amd)
- define([], factory);
- else if(typeof exports === 'object')
- exports["vcrontab"] = factory();
- else
- root["vcrontab"] = factory();
- })((typeof self !== 'undefined' ? self : this), function() {
- return /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = "fb15");
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ "0d58":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__("ce10");
- var enumBugKeys = __webpack_require__("e11e");
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
- /***/ }),
- /***/ "11e9":
- /***/ (function(module, exports, __webpack_require__) {
- var pIE = __webpack_require__("52a7");
- var createDesc = __webpack_require__("4630");
- var toIObject = __webpack_require__("6821");
- var toPrimitive = __webpack_require__("6a99");
- var has = __webpack_require__("69a8");
- var IE8_DOM_DEFINE = __webpack_require__("c69a");
- var gOPD = Object.getOwnPropertyDescriptor;
- exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return gOPD(O, P);
- } catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
- };
- /***/ }),
- /***/ "1495":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("86cc");
- var anObject = __webpack_require__("cb7c");
- var getKeys = __webpack_require__("0d58");
- module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
- };
- /***/ }),
- /***/ "214f":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var hide = __webpack_require__("32e9");
- var redefine = __webpack_require__("2aba");
- var fails = __webpack_require__("79e5");
- var defined = __webpack_require__("be13");
- var wks = __webpack_require__("2b4c");
- module.exports = function (KEY, length, exec) {
- var SYMBOL = wks(KEY);
- var fns = exec(defined, SYMBOL, ''[KEY]);
- var strfn = fns[0];
- var rxfn = fns[1];
- if (fails(function () {
- var O = {};
- O[SYMBOL] = function () { return 7; };
- return ''[KEY](O) != 7;
- })) {
- redefine(String.prototype, KEY, strfn);
- hide(RegExp.prototype, SYMBOL, length == 2
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
- ? function (string, arg) { return rxfn.call(string, this, arg); }
- // 21.2.5.6 RegExp.prototype[@@match](string)
- // 21.2.5.9 RegExp.prototype[@@search](string)
- : function (string) { return rxfn.call(string, this); }
- );
- }
- };
- /***/ }),
- /***/ "230e":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- var document = __webpack_require__("7726").document;
- // typeof document.createElement is 'object' in old IE
- var is = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return is ? document.createElement(it) : {};
- };
- /***/ }),
- /***/ "2350":
- /***/ (function(module, exports) {
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- */
- // css base code, injected by the css-loader
- module.exports = function(useSourceMap) {
- var list = [];
- // return the list of modules as css string
- list.toString = function toString() {
- return this.map(function (item) {
- var content = cssWithMappingToString(item, useSourceMap);
- if(item[2]) {
- return "@media " + item[2] + "{" + content + "}";
- } else {
- return content;
- }
- }).join("");
- };
- // import a list of modules into the list
- list.i = function(modules, mediaQuery) {
- if(typeof modules === "string")
- modules = [[null, modules, ""]];
- var alreadyImportedModules = {};
- for(var i = 0; i < this.length; i++) {
- var id = this[i][0];
- if(typeof id === "number")
- alreadyImportedModules[id] = true;
- }
- for(i = 0; i < modules.length; i++) {
- var item = modules[i];
- // skip already imported module
- // this implementation is not 100% perfect for weird media query combinations
- // when a module is imported multiple times with different media queries.
- // I hope this will never occur (Hey this way we have smaller bundles)
- if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
- if(mediaQuery && !item[2]) {
- item[2] = mediaQuery;
- } else if(mediaQuery) {
- item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
- }
- list.push(item);
- }
- }
- };
- return list;
- };
- function cssWithMappingToString(item, useSourceMap) {
- var content = item[1] || '';
- var cssMapping = item[3];
- if (!cssMapping) {
- return content;
- }
- if (useSourceMap && typeof btoa === 'function') {
- var sourceMapping = toComment(cssMapping);
- var sourceURLs = cssMapping.sources.map(function (source) {
- return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
- });
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
- }
- return [content].join('\n');
- }
- // Adapted from convert-source-map (MIT)
- function toComment(sourceMap) {
- // eslint-disable-next-line no-undef
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
- var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
- return '/*# ' + data + ' */';
- }
- /***/ }),
- /***/ "28a5":
- /***/ (function(module, exports, __webpack_require__) {
- // @@split logic
- __webpack_require__("214f")('split', 2, function (defined, SPLIT, $split) {
- 'use strict';
- var isRegExp = __webpack_require__("aae3");
- var _split = $split;
- var $push = [].push;
- var $SPLIT = 'split';
- var LENGTH = 'length';
- var LAST_INDEX = 'lastIndex';
- if (
- 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
- 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
- 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
- '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
- '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
- ''[$SPLIT](/.?/)[LENGTH]
- ) {
- var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group
- // based on es5-shim implementation, need to rework it
- $split = function (separator, limit) {
- var string = String(this);
- if (separator === undefined && limit === 0) return [];
- // If `separator` is not a regex, use native split
- if (!isRegExp(separator)) return _split.call(string, separator, limit);
- var output = [];
- var flags = (separator.ignoreCase ? 'i' : '') +
- (separator.multiline ? 'm' : '') +
- (separator.unicode ? 'u' : '') +
- (separator.sticky ? 'y' : '');
- var lastLastIndex = 0;
- var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;
- // Make `global` and avoid `lastIndex` issues by working with a copy
- var separatorCopy = new RegExp(separator.source, flags + 'g');
- var separator2, match, lastIndex, lastLength, i;
- // Doesn't need flags gy, but they don't hurt
- if (!NPCG) separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags);
- while (match = separatorCopy.exec(string)) {
- // `separatorCopy.lastIndex` is not reliable cross-browser
- lastIndex = match.index + match[0][LENGTH];
- if (lastIndex > lastLastIndex) {
- output.push(string.slice(lastLastIndex, match.index));
- // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG
- // eslint-disable-next-line no-loop-func
- if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () {
- for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined;
- });
- if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
- lastLength = match[0][LENGTH];
- lastLastIndex = lastIndex;
- if (output[LENGTH] >= splitLimit) break;
- }
- if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
- }
- if (lastLastIndex === string[LENGTH]) {
- if (lastLength || !separatorCopy.test('')) output.push('');
- } else output.push(string.slice(lastLastIndex));
- return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
- };
- // Chakra, V8
- } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
- $split = function (separator, limit) {
- return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit);
- };
- }
- // 21.1.3.17 String.prototype.split(separator, limit)
- return [function split(separator, limit) {
- var O = defined(this);
- var fn = separator == undefined ? undefined : separator[SPLIT];
- return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit);
- }, $split];
- });
- /***/ }),
- /***/ "2aba":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var hide = __webpack_require__("32e9");
- var has = __webpack_require__("69a8");
- var SRC = __webpack_require__("ca5a")('src');
- var TO_STRING = 'toString';
- var $toString = Function[TO_STRING];
- var TPL = ('' + $toString).split(TO_STRING);
- __webpack_require__("8378").inspectSource = function (it) {
- return $toString.call(it);
- };
- (module.exports = function (O, key, val, safe) {
- var isFunction = typeof val == 'function';
- if (isFunction) has(val, 'name') || hide(val, 'name', key);
- if (O[key] === val) return;
- if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
- if (O === global) {
- O[key] = val;
- } else if (!safe) {
- delete O[key];
- hide(O, key, val);
- } else if (O[key]) {
- O[key] = val;
- } else {
- hide(O, key, val);
- }
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
- })(Function.prototype, TO_STRING, function toString() {
- return typeof this == 'function' && this[SRC] || $toString.call(this);
- });
- /***/ }),
- /***/ "2aeb":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__("cb7c");
- var dPs = __webpack_require__("1495");
- var enumBugKeys = __webpack_require__("e11e");
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- var Empty = function () { /* empty */ };
- var PROTOTYPE = 'prototype';
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__("230e")('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__("fab2").appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
- };
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
- };
- /***/ }),
- /***/ "2b4c":
- /***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__("5537")('wks');
- var uid = __webpack_require__("ca5a");
- var Symbol = __webpack_require__("7726").Symbol;
- var USE_SYMBOL = typeof Symbol == 'function';
- var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
- };
- $exports.store = store;
- /***/ }),
- /***/ "2d00":
- /***/ (function(module, exports) {
- module.exports = false;
- /***/ }),
- /***/ "2d95":
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
- /***/ }),
- /***/ "2f21":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var fails = __webpack_require__("79e5");
- module.exports = function (method, arg) {
- return !!method && fails(function () {
- // eslint-disable-next-line no-useless-call
- arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);
- });
- };
- /***/ }),
- /***/ "2fdb":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 21.1.3.7 String.prototype.includes(searchString, position = 0)
- var $export = __webpack_require__("5ca1");
- var context = __webpack_require__("d2c8");
- var INCLUDES = 'includes';
- $export($export.P + $export.F * __webpack_require__("5147")(INCLUDES), 'String', {
- includes: function includes(searchString /* , position = 0 */) {
- return !!~context(this, searchString, INCLUDES)
- .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- /***/ }),
- /***/ "32e9":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("86cc");
- var createDesc = __webpack_require__("4630");
- module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- /***/ }),
- /***/ "4588":
- /***/ (function(module, exports) {
- // 7.1.4 ToInteger
- var ceil = Math.ceil;
- var floor = Math.floor;
- module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
- };
- /***/ }),
- /***/ "4630":
- /***/ (function(module, exports) {
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- /***/ }),
- /***/ "4917":
- /***/ (function(module, exports, __webpack_require__) {
- // @@match logic
- __webpack_require__("214f")('match', 1, function (defined, MATCH, $match) {
- // 21.1.3.11 String.prototype.match(regexp)
- return [function match(regexp) {
- 'use strict';
- var O = defined(this);
- var fn = regexp == undefined ? undefined : regexp[MATCH];
- return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
- }, $match];
- });
- /***/ }),
- /***/ "499e":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
- /**
- * Translates the list format produced by css-loader into something
- * easier to manipulate.
- */
- function listToStyles (parentId, list) {
- var styles = []
- var newStyles = {}
- for (var i = 0; i < list.length; i++) {
- var item = list[i]
- var id = item[0]
- var css = item[1]
- var media = item[2]
- var sourceMap = item[3]
- var part = {
- id: parentId + ':' + i,
- css: css,
- media: media,
- sourceMap: sourceMap
- }
- if (!newStyles[id]) {
- styles.push(newStyles[id] = { id: id, parts: [part] })
- } else {
- newStyles[id].parts.push(part)
- }
- }
- return styles
- }
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addStylesClient; });
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- Modified by Evan You @yyx990803
- */
- var hasDocument = typeof document !== 'undefined'
- if (typeof DEBUG !== 'undefined' && DEBUG) {
- if (!hasDocument) {
- throw new Error(
- 'vue-style-loader cannot be used in a non-browser environment. ' +
- "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
- ) }
- }
- /*
- type StyleObject = {
- id: number;
- parts: Array<StyleObjectPart>
- }
- type StyleObjectPart = {
- css: string;
- media: string;
- sourceMap: ?string
- }
- */
- var stylesInDom = {/*
- [id: number]: {
- id: number,
- refs: number,
- parts: Array<(obj?: StyleObjectPart) => void>
- }
- */}
- var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
- var singletonElement = null
- var singletonCounter = 0
- var isProduction = false
- var noop = function () {}
- var options = null
- var ssrIdKey = 'data-vue-ssr-id'
- // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
- // tags it will allow on a page
- var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
- function addStylesClient (parentId, list, _isProduction, _options) {
- isProduction = _isProduction
- options = _options || {}
- var styles = listToStyles(parentId, list)
- addStylesToDom(styles)
- return function update (newList) {
- var mayRemove = []
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- domStyle.refs--
- mayRemove.push(domStyle)
- }
- if (newList) {
- styles = listToStyles(parentId, newList)
- addStylesToDom(styles)
- } else {
- styles = []
- }
- for (var i = 0; i < mayRemove.length; i++) {
- var domStyle = mayRemove[i]
- if (domStyle.refs === 0) {
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j]()
- }
- delete stylesInDom[domStyle.id]
- }
- }
- }
- }
- function addStylesToDom (styles /* Array<StyleObject> */) {
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- if (domStyle) {
- domStyle.refs++
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j](item.parts[j])
- }
- for (; j < item.parts.length; j++) {
- domStyle.parts.push(addStyle(item.parts[j]))
- }
- if (domStyle.parts.length > item.parts.length) {
- domStyle.parts.length = item.parts.length
- }
- } else {
- var parts = []
- for (var j = 0; j < item.parts.length; j++) {
- parts.push(addStyle(item.parts[j]))
- }
- stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
- }
- }
- }
- function createStyleElement () {
- var styleElement = document.createElement('style')
- styleElement.type = 'text/css'
- head.appendChild(styleElement)
- return styleElement
- }
- function addStyle (obj /* StyleObjectPart */) {
- var update, remove
- var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
- if (styleElement) {
- if (isProduction) {
- // has SSR styles and in production mode.
- // simply do nothing.
- return noop
- } else {
- // has SSR styles but in dev mode.
- // for some reason Chrome can't handle source map in server-rendered
- // style tags - source maps in <style> only works if the style tag is
- // created and inserted dynamically. So we remove the server rendered
- // styles and inject new ones.
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- if (isOldIE) {
- // use singleton mode for IE9.
- var styleIndex = singletonCounter++
- styleElement = singletonElement || (singletonElement = createStyleElement())
- update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
- remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
- } else {
- // use multi-style-tag mode in all other cases
- styleElement = createStyleElement()
- update = applyToTag.bind(null, styleElement)
- remove = function () {
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- update(obj)
- return function updateStyle (newObj /* StyleObjectPart */) {
- if (newObj) {
- if (newObj.css === obj.css &&
- newObj.media === obj.media &&
- newObj.sourceMap === obj.sourceMap) {
- return
- }
- update(obj = newObj)
- } else {
- remove()
- }
- }
- }
- var replaceText = (function () {
- var textStore = []
- return function (index, replacement) {
- textStore[index] = replacement
- return textStore.filter(Boolean).join('\n')
- }
- })()
- function applyToSingletonTag (styleElement, index, remove, obj) {
- var css = remove ? '' : obj.css
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = replaceText(index, css)
- } else {
- var cssNode = document.createTextNode(css)
- var childNodes = styleElement.childNodes
- if (childNodes[index]) styleElement.removeChild(childNodes[index])
- if (childNodes.length) {
- styleElement.insertBefore(cssNode, childNodes[index])
- } else {
- styleElement.appendChild(cssNode)
- }
- }
- }
- function applyToTag (styleElement, obj) {
- var css = obj.css
- var media = obj.media
- var sourceMap = obj.sourceMap
- if (media) {
- styleElement.setAttribute('media', media)
- }
- if (options.ssrId) {
- styleElement.setAttribute(ssrIdKey, obj.id)
- }
- if (sourceMap) {
- // https://developer.chrome.com/devtools/docs/javascript-debugging
- // this makes source maps inside style tags work properly in Chrome
- css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
- // http://stackoverflow.com/a/26603875
- css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
- }
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = css
- } else {
- while (styleElement.firstChild) {
- styleElement.removeChild(styleElement.firstChild)
- }
- styleElement.appendChild(document.createTextNode(css))
- }
- }
- /***/ }),
- /***/ "4bf8":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__("be13");
- module.exports = function (it) {
- return Object(defined(it));
- };
- /***/ }),
- /***/ "5147":
- /***/ (function(module, exports, __webpack_require__) {
- var MATCH = __webpack_require__("2b4c")('match');
- module.exports = function (KEY) {
- var re = /./;
- try {
- '/./'[KEY](re);
- } catch (e) {
- try {
- re[MATCH] = false;
- return !'/./'[KEY](re);
- } catch (f) { /* empty */ }
- } return true;
- };
- /***/ }),
- /***/ "52a7":
- /***/ (function(module, exports) {
- exports.f = {}.propertyIsEnumerable;
- /***/ }),
- /***/ "5537":
- /***/ (function(module, exports, __webpack_require__) {
- var core = __webpack_require__("8378");
- var global = __webpack_require__("7726");
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || (global[SHARED] = {});
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: core.version,
- mode: __webpack_require__("2d00") ? 'pure' : 'global',
- copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
- });
- /***/ }),
- /***/ "55dd":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $export = __webpack_require__("5ca1");
- var aFunction = __webpack_require__("d8e8");
- var toObject = __webpack_require__("4bf8");
- var fails = __webpack_require__("79e5");
- var $sort = [].sort;
- var test = [1, 2, 3];
- $export($export.P + $export.F * (fails(function () {
- // IE8-
- test.sort(undefined);
- }) || !fails(function () {
- // V8 bug
- test.sort(null);
- // Old WebKit
- }) || !__webpack_require__("2f21")($sort)), 'Array', {
- // 22.1.3.25 Array.prototype.sort(comparefn)
- sort: function sort(comparefn) {
- return comparefn === undefined
- ? $sort.call(toObject(this))
- : $sort.call(toObject(this), aFunction(comparefn));
- }
- });
- /***/ }),
- /***/ "5ca1":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var core = __webpack_require__("8378");
- var hide = __webpack_require__("32e9");
- var redefine = __webpack_require__("2aba");
- var ctx = __webpack_require__("9b43");
- var PROTOTYPE = 'prototype';
- var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
- var key, own, out, exp;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- // export native or passed
- out = (own ? target : source)[key];
- // bind timers to global for call from export context
- exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // extend global
- if (target) redefine(target, key, out, type & $export.U);
- // export
- if (exports[key] != out) hide(exports, key, exp);
- if (IS_PROTO && expProto[key] != out) expProto[key] = out;
- }
- };
- global.core = core;
- // type bitmap
- $export.F = 1; // forced
- $export.G = 2; // global
- $export.S = 4; // static
- $export.P = 8; // proto
- $export.B = 16; // bind
- $export.W = 32; // wrap
- $export.U = 64; // safe
- $export.R = 128; // real proto method for `library`
- module.exports = $export;
- /***/ }),
- /***/ "5dbc":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- var setPrototypeOf = __webpack_require__("8b97").set;
- module.exports = function (that, target, C) {
- var S = target.constructor;
- var P;
- if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
- setPrototypeOf(that, P);
- } return that;
- };
- /***/ }),
- /***/ "613b":
- /***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__("5537")('keys');
- var uid = __webpack_require__("ca5a");
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
- /***/ }),
- /***/ "626a":
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__("2d95");
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
- /***/ }),
- /***/ "6762":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // https://github.com/tc39/Array.prototype.includes
- var $export = __webpack_require__("5ca1");
- var $includes = __webpack_require__("c366")(true);
- $export($export.P, 'Array', {
- includes: function includes(el /* , fromIndex = 0 */) {
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- __webpack_require__("9c6c")('includes');
- /***/ }),
- /***/ "6821":
- /***/ (function(module, exports, __webpack_require__) {
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__("626a");
- var defined = __webpack_require__("be13");
- module.exports = function (it) {
- return IObject(defined(it));
- };
- /***/ }),
- /***/ "69a8":
- /***/ (function(module, exports) {
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
- /***/ }),
- /***/ "6a99":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__("d3f4");
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
- /***/ }),
- /***/ "7726":
- /***/ (function(module, exports) {
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
- /***/ }),
- /***/ "77f1":
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__("4588");
- var max = Math.max;
- var min = Math.min;
- module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
- };
- /***/ }),
- /***/ "79e5":
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
- /***/ }),
- /***/ "7f7f":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("86cc").f;
- var FProto = Function.prototype;
- var nameRE = /^\s*function ([^ (]*)/;
- var NAME = 'name';
- // 19.2.4.2 name
- NAME in FProto || __webpack_require__("9e1e") && dP(FProto, NAME, {
- configurable: true,
- get: function () {
- try {
- return ('' + this).match(nameRE)[1];
- } catch (e) {
- return '';
- }
- }
- });
- /***/ }),
- /***/ "8378":
- /***/ (function(module, exports) {
- var core = module.exports = { version: '2.5.7' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
- /***/ }),
- /***/ "860a":
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__("c9ce");
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__("499e").default
- var update = add("7df7169e", content, true, {"sourceMap":false,"shadowMode":false});
- /***/ }),
- /***/ "86cc":
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__("cb7c");
- var IE8_DOM_DEFINE = __webpack_require__("c69a");
- var toPrimitive = __webpack_require__("6a99");
- var dP = Object.defineProperty;
- exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
- /***/ }),
- /***/ "8b97":
- /***/ (function(module, exports, __webpack_require__) {
- // Works with __proto__ only. Old v8 can't work with null proto objects.
- /* eslint-disable no-proto */
- var isObject = __webpack_require__("d3f4");
- var anObject = __webpack_require__("cb7c");
- var check = function (O, proto) {
- anObject(O);
- if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
- };
- module.exports = {
- set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
- function (test, buggy, set) {
- try {
- set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2);
- set(test, []);
- buggy = !(test instanceof Array);
- } catch (e) { buggy = true; }
- return function setPrototypeOf(O, proto) {
- check(O, proto);
- if (buggy) O.__proto__ = proto;
- else set(O, proto);
- return O;
- };
- }({}, false) : undefined),
- check: check
- };
- /***/ }),
- /***/ "9093":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__("ce10");
- var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype');
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
- };
- /***/ }),
- /***/ "9b43":
- /***/ (function(module, exports, __webpack_require__) {
- // optional / simple context binding
- var aFunction = __webpack_require__("d8e8");
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
- /***/ }),
- /***/ "9c6c":
- /***/ (function(module, exports, __webpack_require__) {
- // 22.1.3.31 Array.prototype[@@unscopables]
- var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
- var ArrayProto = Array.prototype;
- if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
- module.exports = function (key) {
- ArrayProto[UNSCOPABLES][key] = true;
- };
- /***/ }),
- /***/ "9def":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.15 ToLength
- var toInteger = __webpack_require__("4588");
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
- /***/ }),
- /***/ "9e1e":
- /***/ (function(module, exports, __webpack_require__) {
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__("79e5")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "aa77":
- /***/ (function(module, exports, __webpack_require__) {
- var $export = __webpack_require__("5ca1");
- var defined = __webpack_require__("be13");
- var fails = __webpack_require__("79e5");
- var spaces = __webpack_require__("fdef");
- var space = '[' + spaces + ']';
- var non = '\u200b\u0085';
- var ltrim = RegExp('^' + space + space + '*');
- var rtrim = RegExp(space + space + '*$');
- var exporter = function (KEY, exec, ALIAS) {
- var exp = {};
- var FORCE = fails(function () {
- return !!spaces[KEY]() || non[KEY]() != non;
- });
- var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
- if (ALIAS) exp[ALIAS] = fn;
- $export($export.P + $export.F * FORCE, 'String', exp);
- };
- // 1 -> String#trimLeft
- // 2 -> String#trimRight
- // 3 -> String#trim
- var trim = exporter.trim = function (string, TYPE) {
- string = String(defined(string));
- if (TYPE & 1) string = string.replace(ltrim, '');
- if (TYPE & 2) string = string.replace(rtrim, '');
- return string;
- };
- module.exports = exporter;
- /***/ }),
- /***/ "aae3":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.2.8 IsRegExp(argument)
- var isObject = __webpack_require__("d3f4");
- var cof = __webpack_require__("2d95");
- var MATCH = __webpack_require__("2b4c")('match');
- module.exports = function (it) {
- var isRegExp;
- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
- };
- /***/ }),
- /***/ "be13":
- /***/ (function(module, exports) {
- // 7.2.1 RequireObjectCoercible(argument)
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
- /***/ }),
- /***/ "bfd8":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Crontab_vue_vue_type_style_index_0_id_0cc91000_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("860a");
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Crontab_vue_vue_type_style_index_0_id_0cc91000_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Crontab_vue_vue_type_style_index_0_id_0cc91000_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
- /* unused harmony reexport * */
- /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Crontab_vue_vue_type_style_index_0_id_0cc91000_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /***/ "c366":
- /***/ (function(module, exports, __webpack_require__) {
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__("6821");
- var toLength = __webpack_require__("9def");
- var toAbsoluteIndex = __webpack_require__("77f1");
- module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
- /***/ }),
- /***/ "c5f6":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var global = __webpack_require__("7726");
- var has = __webpack_require__("69a8");
- var cof = __webpack_require__("2d95");
- var inheritIfRequired = __webpack_require__("5dbc");
- var toPrimitive = __webpack_require__("6a99");
- var fails = __webpack_require__("79e5");
- var gOPN = __webpack_require__("9093").f;
- var gOPD = __webpack_require__("11e9").f;
- var dP = __webpack_require__("86cc").f;
- var $trim = __webpack_require__("aa77").trim;
- var NUMBER = 'Number';
- var $Number = global[NUMBER];
- var Base = $Number;
- var proto = $Number.prototype;
- // Opera ~12 has broken Object#toString
- var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER;
- var TRIM = 'trim' in String.prototype;
- // 7.1.3 ToNumber(argument)
- var toNumber = function (argument) {
- var it = toPrimitive(argument, false);
- if (typeof it == 'string' && it.length > 2) {
- it = TRIM ? it.trim() : $trim(it, 3);
- var first = it.charCodeAt(0);
- var third, radix, maxCode;
- if (first === 43 || first === 45) {
- third = it.charCodeAt(2);
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
- } else if (first === 48) {
- switch (it.charCodeAt(1)) {
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
- default: return +it;
- }
- for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
- code = digits.charCodeAt(i);
- // parseInt parses a string to a first unavailable symbol
- // but ToNumber should return NaN if a string contains unavailable symbols
- if (code < 48 || code > maxCode) return NaN;
- } return parseInt(digits, radix);
- }
- } return +it;
- };
- if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
- $Number = function Number(value) {
- var it = arguments.length < 1 ? 0 : value;
- var that = this;
- return that instanceof $Number
- // check on 1..constructor(foo) case
- && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
- ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
- };
- for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : (
- // ES3:
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
- // ES6 (in case, if modules with ES6 Number statics required before):
- 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
- 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
- ).split(','), j = 0, key; keys.length > j; j++) {
- if (has(Base, key = keys[j]) && !has($Number, key)) {
- dP($Number, key, gOPD(Base, key));
- }
- }
- $Number.prototype = proto;
- proto.constructor = $Number;
- __webpack_require__("2aba")(global, NUMBER, $Number);
- }
- /***/ }),
- /***/ "c69a":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
- return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "c9ce":
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__("2350")(false);
- // imports
- // module
- exports.push([module.i, "\n.pop_btn[data-v-0cc91000]{text-align:center;margin-top:20px\n}\n.popup-main[data-v-0cc91000]{position:relative;margin:10px auto;background:#fff;border-radius:5px;font-size:12px;overflow:hidden\n}\n.popup-title[data-v-0cc91000]{overflow:hidden;line-height:34px;padding-top:6px;background:#f2f2f2\n}\n.popup-result[data-v-0cc91000]{-webkit-box-sizing:border-box;box-sizing:border-box;line-height:24px;margin:25px auto;padding:15px 10px 10px;border:1px solid #ccc;position:relative\n}\n.popup-result .title[data-v-0cc91000]{position:absolute;top:-28px;left:50%;width:140px;font-size:14px;margin-left:-70px;text-align:center;line-height:30px;background:#fff\n}\n.popup-result table[data-v-0cc91000]{text-align:center;width:100%;margin:0 auto\n}\n.popup-result table span[data-v-0cc91000]{display:block;width:100%;font-family:arial;line-height:30px;height:30px;white-space:nowrap;overflow:hidden;border:1px solid #e8e8e8\n}\n.popup-result-scroll[data-v-0cc91000]{font-size:12px;line-height:24px;height:10em;overflow-y:auto\n}", ""]);
- // exports
- /***/ }),
- /***/ "ca5a":
- /***/ (function(module, exports) {
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
- /***/ }),
- /***/ "cb7c":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
- /***/ }),
- /***/ "ce10":
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__("69a8");
- var toIObject = __webpack_require__("6821");
- var arrayIndexOf = __webpack_require__("c366")(false);
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
- /***/ }),
- /***/ "d2c8":
- /***/ (function(module, exports, __webpack_require__) {
- // helper for String#{startsWith, endsWith, includes}
- var isRegExp = __webpack_require__("aae3");
- var defined = __webpack_require__("be13");
- module.exports = function (that, searchString, NAME) {
- if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
- return String(defined(that));
- };
- /***/ }),
- /***/ "d3f4":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
- /***/ }),
- /***/ "d8e8":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
- /***/ }),
- /***/ "e11e":
- /***/ (function(module, exports) {
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
- /***/ }),
- /***/ "fab2":
- /***/ (function(module, exports, __webpack_require__) {
- var document = __webpack_require__("7726").document;
- module.exports = document && document.documentElement;
- /***/ }),
- /***/ "fb15":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
- // This file is imported into lib/wc client bundles.
- if (typeof window !== 'undefined') {
- var setPublicPath_i
- if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
- __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line
- }
- }
- // Indicate to webpack that this file can be concatenated
- /* harmony default export */ var setPublicPath = (null);
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js
- var es6_function_name = __webpack_require__("7f7f");
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"0f87e5ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab.vue?vue&type=template&id=0cc91000&scoped=true&
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-tabs',{attrs:{"type":"border-card"}},[(_vm.shouldHide('second'))?_c('el-tab-pane',{attrs:{"label":"秒"}},[_c('CrontabSecond',{ref:"cronsecond",attrs:{"check":_vm.checkNumber},on:{"update":_vm.updateContabValue}})],1):_vm._e(),(_vm.shouldHide('min'))?_c('el-tab-pane',{attrs:{"label":"分钟"}},[_c('CrontabMin',{ref:"cronmin",attrs:{"check":_vm.checkNumber,"cron":_vm.contabValueObj},on:{"update":_vm.updateContabValue}})],1):_vm._e(),(_vm.shouldHide('hour'))?_c('el-tab-pane',{attrs:{"label":"小时"}},[_c('CrontabHour',{ref:"cronhour",attrs:{"check":_vm.checkNumber,"cron":_vm.contabValueObj},on:{"update":_vm.updateContabValue}})],1):_vm._e(),(_vm.shouldHide('day'))?_c('el-tab-pane',{attrs:{"label":"日"}},[_c('CrontabDay',{ref:"cronday",attrs:{"check":_vm.checkNumber,"cron":_vm.contabValueObj},on:{"update":_vm.updateContabValue}})],1):_vm._e(),(_vm.shouldHide('mouth'))?_c('el-tab-pane',{attrs:{"label":"月"}},[_c('CrontabMouth',{ref:"cronmouth",attrs:{"check":_vm.checkNumber,"cron":_vm.contabValueObj},on:{"update":_vm.updateContabValue}})],1):_vm._e(),(_vm.shouldHide('week'))?_c('el-tab-pane',{attrs:{"label":"周"}},[_c('CrontabWeek',{ref:"cronweek",attrs:{"check":_vm.checkNumber,"cron":_vm.contabValueObj},on:{"update":_vm.updateContabValue}})],1):_vm._e(),(_vm.shouldHide('year'))?_c('el-tab-pane',{attrs:{"label":"年"}},[_c('CrontabYear',{ref:"cronyear",attrs:{"check":_vm.checkNumber,"cron":_vm.contabValueObj},on:{"update":_vm.updateContabValue}})],1):_vm._e()],1),_c('div',{staticClass:"popup-main"},[_c('div',{staticClass:"popup-result"},[_c('p',{staticClass:"title"},[_vm._v("时间表达式")]),_c('table',[_c('thead',[_vm._l((_vm.tabTitles),function(item){return _c('th',{key:item,attrs:{"width":"40"}},[_vm._v(_vm._s(item))])}),_c('th',[_vm._v("crontab完整表达式")])],2),_c('tbody',[_c('td',[_c('span',[_vm._v(_vm._s(_vm.contabValueObj.second))])]),_c('td',[_c('span',[_vm._v(_vm._s(_vm.contabValueObj.min))])]),_c('td',[_c('span',[_vm._v(_vm._s(_vm.contabValueObj.hour))])]),_c('td',[_c('span',[_vm._v(_vm._s(_vm.contabValueObj.day))])]),_c('td',[_c('span',[_vm._v(_vm._s(_vm.contabValueObj.mouth))])]),_c('td',[_c('span',[_vm._v(_vm._s(_vm.contabValueObj.week))])]),_c('td',[_c('span',[_vm._v(_vm._s(_vm.contabValueObj.year))])]),_c('td',[_c('span',[_vm._v(_vm._s(_vm.contabValueString))])])])])]),_c('CrontabResult',{attrs:{"ex":_vm.contabValueString}}),_c('div',{staticClass:"pop_btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.submitFill}},[_vm._v("确定")]),_c('el-button',{attrs:{"size":"small","type":"warning"},on:{"click":_vm.clearCron}},[_vm._v("重置")]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.hidePopup}},[_vm._v("取消")])],1)],1)],1)}
- var staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Crontab.vue?vue&type=template&id=0cc91000&scoped=true&
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js
- function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
- var ownKeys = Object.keys(source);
- if (typeof Object.getOwnPropertySymbols === 'function') {
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
- }));
- }
- ownKeys.forEach(function (key) {
- _defineProperty(target, key, source[key]);
- });
- }
- return target;
- }
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js
- var es6_regexp_split = __webpack_require__("28a5");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js
- var es7_array_includes = __webpack_require__("6762");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js
- var es6_string_includes = __webpack_require__("2fdb");
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"0f87e5ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Second.vue?vue&type=template&id=5b1f7c2e&
- var Crontab_Secondvue_type_template_id_5b1f7c2e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{attrs:{"size":"small"}},[_c('el-form-item',[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t秒,允许的通配符[, - * /]\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":2},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t周期从\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 秒\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":3},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t从\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 秒开始,每\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 秒执行一次\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":4},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t指定\n\t\t\t"),_c('el-select',{staticStyle:{"width":"100%"},attrs:{"clearable":"","placeholder":"可多选","multiple":""},model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((60),function(item){return _c('el-option',{key:item,attrs:{"value":item-1}},[_vm._v(_vm._s(item-1))])}))],1)],1)],1)}
- var Crontab_Secondvue_type_template_id_5b1f7c2e_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Crontab-Second.vue?vue&type=template&id=5b1f7c2e&
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Second.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var Crontab_Secondvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- radioValue: 1,
- cycle01: 1,
- cycle02: 2,
- average01: 0,
- average02: 1,
- checkboxList: [],
- checkNum: this.$options.propsData.check
- };
- },
- name: 'crontab-second',
- props: ['check', 'radioParent'],
- methods: {
- // 单选按钮值变化时
- radioChange: function radioChange() {
- switch (this.radioValue) {
- case 1:
- this.$emit('update', 'second', '*', 'second');
- this.$emit('update', 'min', '*', 'second');
- break;
- case 2:
- this.$emit('update', 'second', this.cycle01 + '-' + this.cycle02);
- break;
- case 3:
- this.$emit('update', 'second', this.average01 + '/' + this.average02);
- break;
- case 4:
- this.$emit('update', 'second', this.checkboxString);
- break;
- }
- },
- // 周期两个值变化时
- cycleChange: function cycleChange() {
- if (this.radioValue == '2') {
- this.$emit('update', 'second', this.cycleTotal);
- }
- },
- // 平均两个值变化时
- averageChange: function averageChange() {
- if (this.radioValue == '3') {
- this.$emit('update', 'second', this.averageTotal);
- }
- },
- // checkbox值变化时
- checkboxChange: function checkboxChange() {
- if (this.radioValue == '4') {
- this.$emit('update', 'second', this.checkboxString);
- }
- },
- othChange: function othChange() {
- //反解析
- var ins = this.cron.second('反解析 second', ins);
- if (ins === '*') {
- this.radioValue = 1;
- } else if (ins.indexOf('-') > -1) {
- this.radioValue = 2;
- } else if (ins.indexOf('/') > -1) {
- this.radioValue = 3;
- } else {
- this.radioValue = 4;
- this.checkboxList = ins.split(',');
- }
- }
- },
- watch: {
- "radioValue": "radioChange",
- 'cycleTotal': 'cycleChange',
- 'averageTotal': 'averageChange',
- 'checkboxString': 'checkboxChange',
- radioParent: function radioParent() {
- this.radioValue = this.radioParent;
- }
- },
- computed: {
- // 计算两个周期值
- cycleTotal: function cycleTotal() {
- this.cycle01 = this.checkNum(this.cycle01, 0, 59);
- this.cycle02 = this.checkNum(this.cycle02, 0, 59);
- return this.cycle01 + '-' + this.cycle02;
- },
- // 计算平均用到的值
- averageTotal: function averageTotal() {
- this.average01 = this.checkNum(this.average01, 0, 59);
- this.average02 = this.checkNum(this.average02, 1, 59);
- return this.average01 + '/' + this.average02;
- },
- // 计算勾选的checkbox值合集
- checkboxString: function checkboxString() {
- var str = this.checkboxList.join();
- return str == '' ? '*' : str;
- }
- }
- });
- // CONCATENATED MODULE: ./src/components/Crontab-Second.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Crontab_Secondvue_type_script_lang_js_ = (Crontab_Secondvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- // CONCATENATED MODULE: ./src/components/Crontab-Second.vue
- /* normalize component */
- var component = normalizeComponent(
- components_Crontab_Secondvue_type_script_lang_js_,
- Crontab_Secondvue_type_template_id_5b1f7c2e_render,
- Crontab_Secondvue_type_template_id_5b1f7c2e_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- component.options.__file = "Crontab-Second.vue"
- /* harmony default export */ var Crontab_Second = (component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"0f87e5ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Min.vue?vue&type=template&id=ae99cce2&
- var Crontab_Minvue_type_template_id_ae99cce2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{attrs:{"size":"small"}},[_c('el-form-item',[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t分钟,允许的通配符[, - * /]\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":2},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t周期从\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 分钟\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":3},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t从\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 分钟开始,每\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 分钟执行一次\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":4},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t指定\n\t\t\t"),_c('el-select',{staticStyle:{"width":"100%"},attrs:{"clearable":"","placeholder":"可多选","multiple":""},model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((60),function(item){return _c('el-option',{key:item,attrs:{"value":item-1}},[_vm._v(_vm._s(item-1))])}))],1)],1)],1)}
- var Crontab_Minvue_type_template_id_ae99cce2_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Crontab-Min.vue?vue&type=template&id=ae99cce2&
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Min.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var Crontab_Minvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- radioValue: 1,
- cycle01: 1,
- cycle02: 2,
- average01: 0,
- average02: 1,
- checkboxList: [],
- checkNum: this.$options.propsData.check
- };
- },
- name: 'crontab-min',
- props: ['check', 'cron'],
- methods: {
- // 单选按钮值变化时
- radioChange: function radioChange() {
- if (this.radioValue !== 1 && this.cron.second === '*') {
- this.$emit('update', 'second', '0', 'min');
- }
- switch (this.radioValue) {
- case 1:
- this.$emit('update', 'min', '*', 'min');
- this.$emit('update', 'hour', '*', 'min');
- break;
- case 2:
- this.$emit('update', 'min', this.cycle01 + '-' + this.cycle02, 'min');
- break;
- case 3:
- this.$emit('update', 'min', this.average01 + '/' + this.average02, 'min');
- break;
- case 4:
- this.$emit('update', 'min', this.checkboxString, 'min');
- break;
- }
- },
- // 周期两个值变化时
- cycleChange: function cycleChange() {
- if (this.radioValue == '2') {
- this.$emit('update', 'min', this.cycleTotal, 'min');
- }
- },
- // 平均两个值变化时
- averageChange: function averageChange() {
- if (this.radioValue == '3') {
- this.$emit('update', 'min', this.averageTotal, 'min');
- }
- },
- // checkbox值变化时
- checkboxChange: function checkboxChange() {
- if (this.radioValue == '4') {
- this.$emit('update', 'min', this.checkboxString, 'min');
- }
- }
- },
- watch: {
- "radioValue": "radioChange",
- 'cycleTotal': 'cycleChange',
- 'averageTotal': 'averageChange',
- 'checkboxString': 'checkboxChange'
- },
- computed: {
- // 计算两个周期值
- cycleTotal: function cycleTotal() {
- this.cycle01 = this.checkNum(this.cycle01, 0, 59);
- this.cycle02 = this.checkNum(this.cycle02, 0, 59);
- return this.cycle01 + '-' + this.cycle02;
- },
- // 计算平均用到的值
- averageTotal: function averageTotal() {
- this.average01 = this.checkNum(this.average01, 0, 59);
- this.average02 = this.checkNum(this.average02, 1, 59);
- return this.average01 + '/' + this.average02;
- },
- // 计算勾选的checkbox值合集
- checkboxString: function checkboxString() {
- var str = this.checkboxList.join();
- return str == '' ? '*' : str;
- }
- }
- });
- // CONCATENATED MODULE: ./src/components/Crontab-Min.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Crontab_Minvue_type_script_lang_js_ = (Crontab_Minvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Crontab-Min.vue
- /* normalize component */
- var Crontab_Min_component = normalizeComponent(
- components_Crontab_Minvue_type_script_lang_js_,
- Crontab_Minvue_type_template_id_ae99cce2_render,
- Crontab_Minvue_type_template_id_ae99cce2_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- Crontab_Min_component.options.__file = "Crontab-Min.vue"
- /* harmony default export */ var Crontab_Min = (Crontab_Min_component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"0f87e5ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Hour.vue?vue&type=template&id=14dc1c80&
- var Crontab_Hourvue_type_template_id_14dc1c80_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{attrs:{"size":"small"}},[_c('el-form-item',[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t小时,允许的通配符[, - * /]\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":2},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t周期从\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 小时\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":3},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t从\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 小时开始,每\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":60},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 小时执行一次\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":4},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t指定\n\t\t\t"),_c('el-select',{staticStyle:{"width":"100%"},attrs:{"clearable":"","placeholder":"可多选","multiple":""},model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((60),function(item){return _c('el-option',{key:item,attrs:{"value":item-1}},[_vm._v(_vm._s(item-1))])}))],1)],1)],1)}
- var Crontab_Hourvue_type_template_id_14dc1c80_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Crontab-Hour.vue?vue&type=template&id=14dc1c80&
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Hour.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var Crontab_Hourvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- radioValue: 1,
- cycle01: 0,
- cycle02: 1,
- average01: 0,
- average02: 1,
- checkboxList: [],
- checkNum: this.$options.propsData.check
- };
- },
- name: 'crontab-hour',
- props: ['check', 'cron'],
- methods: {
- // 单选按钮值变化时
- radioChange: function radioChange() {
- if (this.radioValue === 1) {
- this.$emit('update', 'hour', '*', 'hour');
- this.$emit('update', 'day', '*', 'hour');
- } else {
- if (this.cron.min === '*') {
- this.$emit('update', 'min', '0', 'hour');
- }
- if (this.cron.second === '*') {
- this.$emit('update', 'second', '0', 'hour');
- }
- }
- switch (this.radioValue) {
- case 2:
- this.$emit('update', 'hour', this.cycle01 + '-' + this.cycle02);
- break;
- case 3:
- this.$emit('update', 'hour', this.average01 + '/' + this.average02);
- break;
- case 4:
- this.$emit('update', 'hour', this.checkboxString);
- break;
- }
- },
- // 周期两个值变化时
- cycleChange: function cycleChange() {
- if (this.radioValue == '2') {
- this.$emit('update', 'hour', this.cycleTotal);
- }
- },
- // 平均两个值变化时
- averageChange: function averageChange() {
- if (this.radioValue == '3') {
- this.$emit('update', 'hour', this.averageTotal);
- }
- },
- // checkbox值变化时
- checkboxChange: function checkboxChange() {
- if (this.radioValue == '4') {
- this.$emit('update', 'hour', this.checkboxString);
- }
- }
- },
- watch: {
- "radioValue": "radioChange",
- 'cycleTotal': 'cycleChange',
- 'averageTotal': 'averageChange',
- 'checkboxString': 'checkboxChange'
- },
- computed: {
- // 计算两个周期值
- cycleTotal: function cycleTotal() {
- this.cycle01 = this.checkNum(this.cycle01, 0, 23);
- this.cycle02 = this.checkNum(this.cycle02, 0, 23);
- return this.cycle01 + '-' + this.cycle02;
- },
- // 计算平均用到的值
- averageTotal: function averageTotal() {
- this.average01 = this.checkNum(this.average01, 0, 23);
- this.average02 = this.checkNum(this.average02, 1, 23);
- return this.average01 + '/' + this.average02;
- },
- // 计算勾选的checkbox值合集
- checkboxString: function checkboxString() {
- var str = this.checkboxList.join();
- return str == '' ? '*' : str;
- }
- }
- });
- // CONCATENATED MODULE: ./src/components/Crontab-Hour.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Crontab_Hourvue_type_script_lang_js_ = (Crontab_Hourvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Crontab-Hour.vue
- /* normalize component */
- var Crontab_Hour_component = normalizeComponent(
- components_Crontab_Hourvue_type_script_lang_js_,
- Crontab_Hourvue_type_template_id_14dc1c80_render,
- Crontab_Hourvue_type_template_id_14dc1c80_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- Crontab_Hour_component.options.__file = "Crontab-Hour.vue"
- /* harmony default export */ var Crontab_Hour = (Crontab_Hour_component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"0f87e5ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Day.vue?vue&type=template&id=22b348b8&
- var Crontab_Dayvue_type_template_id_22b348b8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{attrs:{"size":"small"}},[_c('el-form-item',[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t日,允许的通配符[, - * / L M]\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":2},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t不指定\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":3},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t周期从\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":31},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":31},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 日\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":4},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t从\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":31},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 号开始,每\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":31},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 日执行一次\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":5},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t每月\n\t\t\t"),_c('el-input-number',{attrs:{"min":0,"max":31},model:{value:(_vm.workday),callback:function ($$v) {_vm.workday=$$v},expression:"workday"}}),_vm._v(" 号最近的那个工作日\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":6},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t本月最后一天\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":7},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t指定\n\t\t\t"),_c('el-select',{staticStyle:{"width":"100%"},attrs:{"clearable":"","placeholder":"可多选","multiple":""},model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((31),function(item){return _c('el-option',{key:item,attrs:{"value":item}},[_vm._v(_vm._s(item))])}))],1)],1)],1)}
- var Crontab_Dayvue_type_template_id_22b348b8_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Crontab-Day.vue?vue&type=template&id=22b348b8&
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Day.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var Crontab_Dayvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- radioValue: 1,
- workday: 1,
- cycle01: 1,
- cycle02: 2,
- average01: 1,
- average02: 1,
- checkboxList: [],
- checkNum: this.$options.propsData.check
- };
- },
- name: 'crontab-day',
- props: ['check', 'cron'],
- methods: {
- // 单选按钮值变化时
- radioChange: function radioChange() {
- 'day rachange';
- if (this.radioValue === 1) {
- this.$emit('update', 'day', '*', 'day');
- this.$emit('update', 'week', '?', 'day');
- this.$emit('update', 'mouth', '*', 'day');
- } else {
- if (this.cron.hour === '*') {
- this.$emit('update', 'hour', '0', 'day');
- }
- if (this.cron.min === '*') {
- this.$emit('update', 'min', '0', 'day');
- }
- if (this.cron.second === '*') {
- this.$emit('update', 'second', '0', 'day');
- }
- }
- switch (this.radioValue) {
- case 2:
- this.$emit('update', 'day', '?');
- break;
- case 3:
- this.$emit('update', 'day', this.cycle01 + '-' + this.cycle02);
- break;
- case 4:
- this.$emit('update', 'day', this.average01 + '/' + this.average02);
- break;
- case 5:
- this.$emit('update', 'day', this.workday + 'W');
- break;
- case 6:
- this.$emit('update', 'day', 'L');
- break;
- case 7:
- this.$emit('update', 'day', this.checkboxString);
- break;
- }
- 'day rachange end';
- },
- // 周期两个值变化时
- cycleChange: function cycleChange() {
- if (this.radioValue == '3') {
- this.$emit('update', 'day', this.cycleTotal);
- }
- },
- // 平均两个值变化时
- averageChange: function averageChange() {
- if (this.radioValue == '4') {
- this.$emit('update', 'day', this.averageTotal);
- }
- },
- // 最近工作日值变化时
- workdayChange: function workdayChange() {
- if (this.radioValue == '5') {
- this.$emit('update', 'day', this.workday + 'W');
- }
- },
- // checkbox值变化时
- checkboxChange: function checkboxChange() {
- if (this.radioValue == '7') {
- this.$emit('update', 'day', this.checkboxString);
- }
- },
- // 父组件传递的week发生变化触发
- weekChange: function weekChange() {
- //判断week值与day不能同时为“?”
- if (this.cron.week == '?' && this.radioValue == '2') {
- this.radioValue = '1';
- } else if (this.cron.week !== '?' && this.radioValue != '2') {
- this.radioValue = '2';
- }
- }
- },
- watch: {
- "radioValue": "radioChange",
- 'cycleTotal': 'cycleChange',
- 'averageTotal': 'averageChange',
- 'workdayCheck': 'workdayChange',
- 'checkboxString': 'checkboxChange'
- },
- computed: {
- // 计算两个周期值
- cycleTotal: function cycleTotal() {
- this.cycle01 = this.checkNum(this.cycle01, 1, 31);
- this.cycle02 = this.checkNum(this.cycle02, 1, 31);
- return this.cycle01 + '-' + this.cycle02;
- },
- // 计算平均用到的值
- averageTotal: function averageTotal() {
- this.average01 = this.checkNum(this.average01, 1, 31);
- this.average02 = this.checkNum(this.average02, 1, 31);
- return this.average01 + '/' + this.average02;
- },
- // 计算工作日格式
- workdayCheck: function workdayCheck() {
- this.workday = this.checkNum(this.workday, 1, 31);
- return this.workday;
- },
- // 计算勾选的checkbox值合集
- checkboxString: function checkboxString() {
- var str = this.checkboxList.join();
- return str == '' ? '*' : str;
- }
- }
- });
- // CONCATENATED MODULE: ./src/components/Crontab-Day.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Crontab_Dayvue_type_script_lang_js_ = (Crontab_Dayvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Crontab-Day.vue
- /* normalize component */
- var Crontab_Day_component = normalizeComponent(
- components_Crontab_Dayvue_type_script_lang_js_,
- Crontab_Dayvue_type_template_id_22b348b8_render,
- Crontab_Dayvue_type_template_id_22b348b8_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- Crontab_Day_component.options.__file = "Crontab-Day.vue"
- /* harmony default export */ var Crontab_Day = (Crontab_Day_component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"0f87e5ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Mouth.vue?vue&type=template&id=75a4513e&
- var Crontab_Mouthvue_type_template_id_75a4513e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{attrs:{"size":"small"}},[_c('el-form-item',[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t月,允许的通配符[, - * /]\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":2},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t周期从\n\t\t\t"),_c('el-input-number',{attrs:{"min":1,"max":12},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t"),_c('el-input-number',{attrs:{"min":1,"max":12},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}}),_vm._v(" 月\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":3},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t从\n\t\t\t"),_c('el-input-number',{attrs:{"min":1,"max":12},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 月开始,每\n\t\t\t"),_c('el-input-number',{attrs:{"min":1,"max":12},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 月月执行一次\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":4},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t指定\n\t\t\t"),_c('el-select',{staticStyle:{"width":"100%"},attrs:{"clearable":"","placeholder":"可多选","multiple":""},model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((12),function(item){return _c('el-option',{key:item,attrs:{"value":item}},[_vm._v(_vm._s(item))])}))],1)],1)],1)}
- var Crontab_Mouthvue_type_template_id_75a4513e_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Crontab-Mouth.vue?vue&type=template&id=75a4513e&
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Mouth.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var Crontab_Mouthvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- radioValue: 1,
- cycle01: 1,
- cycle02: 2,
- average01: 1,
- average02: 1,
- checkboxList: [],
- checkNum: this.check
- };
- },
- name: 'crontab-mouth',
- props: ['check', 'cron'],
- methods: {
- // 单选按钮值变化时
- radioChange: function radioChange() {
- if (this.radioValue === 1) {
- this.$emit('update', 'mouth', '*');
- this.$emit('update', 'year', '*');
- } else {
- if (this.cron.day === '*') {
- this.$emit('update', 'day', '0', 'mouth');
- }
- if (this.cron.hour === '*') {
- this.$emit('update', 'hour', '0', 'mouth');
- }
- if (this.cron.min === '*') {
- this.$emit('update', 'min', '0', 'mouth');
- }
- if (this.cron.second === '*') {
- this.$emit('update', 'second', '0', 'mouth');
- }
- }
- switch (this.radioValue) {
- case 2:
- this.$emit('update', 'mouth', this.cycle01 + '-' + this.cycle02);
- break;
- case 3:
- this.$emit('update', 'mouth', this.average01 + '/' + this.average02);
- break;
- case 4:
- this.$emit('update', 'mouth', this.checkboxString);
- break;
- }
- },
- // 周期两个值变化时
- cycleChange: function cycleChange() {
- if (this.radioValue == '2') {
- this.$emit('update', 'mouth', this.cycleTotal);
- }
- },
- // 平均两个值变化时
- averageChange: function averageChange() {
- if (this.radioValue == '3') {
- this.$emit('update', 'mouth', this.averageTotal);
- }
- },
- // checkbox值变化时
- checkboxChange: function checkboxChange() {
- if (this.radioValue == '4') {
- this.$emit('update', 'mouth', this.checkboxString);
- }
- }
- },
- watch: {
- "radioValue": "radioChange",
- 'cycleTotal': 'cycleChange',
- 'averageTotal': 'averageChange',
- 'checkboxString': 'checkboxChange'
- },
- computed: {
- // 计算两个周期值
- cycleTotal: function cycleTotal() {
- this.cycle01 = this.checkNum(this.cycle01, 1, 12);
- this.cycle02 = this.checkNum(this.cycle02, 1, 12);
- return this.cycle01 + '-' + this.cycle02;
- },
- // 计算平均用到的值
- averageTotal: function averageTotal() {
- this.average01 = this.checkNum(this.average01, 1, 12);
- this.average02 = this.checkNum(this.average02, 1, 12);
- return this.average01 + '/' + this.average02;
- },
- // 计算勾选的checkbox值合集
- checkboxString: function checkboxString() {
- var str = this.checkboxList.join();
- return str == '' ? '*' : str;
- }
- }
- });
- // CONCATENATED MODULE: ./src/components/Crontab-Mouth.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Crontab_Mouthvue_type_script_lang_js_ = (Crontab_Mouthvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Crontab-Mouth.vue
- /* normalize component */
- var Crontab_Mouth_component = normalizeComponent(
- components_Crontab_Mouthvue_type_script_lang_js_,
- Crontab_Mouthvue_type_template_id_75a4513e_render,
- Crontab_Mouthvue_type_template_id_75a4513e_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- Crontab_Mouth_component.options.__file = "Crontab-Mouth.vue"
- /* harmony default export */ var Crontab_Mouth = (Crontab_Mouth_component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"0f87e5ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Week.vue?vue&type=template&id=99435928&
- var Crontab_Weekvue_type_template_id_99435928_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{attrs:{"size":"small"}},[_c('el-form-item',[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t周,允许的通配符[, - * / L #]\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":2},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t不指定\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":3},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t周期从星期\n\t\t\t"),_c('el-input-number',{attrs:{"min":1,"max":7},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t"),_c('el-input-number',{attrs:{"min":1,"max":7},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}})],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":4},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t第\n\t\t\t"),_c('el-input-number',{attrs:{"min":1,"max":4},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 周的星期\n\t\t\t"),_c('el-input-number',{attrs:{"min":1,"max":7},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}})],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":5},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t本月最后一个星期\n\t\t\t"),_c('el-input-number',{attrs:{"min":1,"max":7},model:{value:(_vm.weekday),callback:function ($$v) {_vm.weekday=$$v},expression:"weekday"}})],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":6},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t指定\n\t\t\t"),_c('el-select',{staticStyle:{"width":"100%"},attrs:{"clearable":"","placeholder":"可多选","multiple":""},model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((_vm.weekList),function(item,index){return _c('el-option',{key:index,attrs:{"value":index+1}},[_vm._v(_vm._s(item))])}))],1)],1)],1)}
- var Crontab_Weekvue_type_template_id_99435928_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Crontab-Week.vue?vue&type=template&id=99435928&
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Week.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var Crontab_Weekvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- radioValue: 2,
- weekday: 1,
- cycle01: 1,
- cycle02: 2,
- average01: 1,
- average02: 1,
- checkboxList: [],
- weekList: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
- checkNum: this.$options.propsData.check
- };
- },
- name: 'crontab-week',
- props: ['check', 'cron'],
- methods: {
- // 单选按钮值变化时
- radioChange: function radioChange() {
- if (this.radioValue === 1) {
- this.$emit('update', 'week', '*');
- this.$emit('update', 'year', '*');
- } else {
- if (this.cron.mouth === '*') {
- this.$emit('update', 'mouth', '0', 'week');
- }
- if (this.cron.day === '*') {
- this.$emit('update', 'day', '0', 'week');
- }
- if (this.cron.hour === '*') {
- this.$emit('update', 'hour', '0', 'week');
- }
- if (this.cron.min === '*') {
- this.$emit('update', 'min', '0', 'week');
- }
- if (this.cron.second === '*') {
- this.$emit('update', 'second', '0', 'week');
- }
- }
- switch (this.radioValue) {
- case 2:
- this.$emit('update', 'week', '?');
- break;
- case 3:
- this.$emit('update', 'week', this.cycle01 + '-' + this.cycle02);
- break;
- case 4:
- this.$emit('update', 'week', this.average01 + '#' + this.average02);
- break;
- case 5:
- this.$emit('update', 'week', this.weekday + 'L');
- break;
- case 6:
- this.$emit('update', 'week', this.checkboxString);
- break;
- }
- },
- // 根据互斥事件,更改radio的值
- // 周期两个值变化时
- cycleChange: function cycleChange() {
- if (this.radioValue == '3') {
- this.$emit('update', 'week', this.cycleTotal);
- }
- },
- // 平均两个值变化时
- averageChange: function averageChange() {
- if (this.radioValue == '4') {
- this.$emit('update', 'week', this.averageTotal);
- }
- },
- // 最近工作日值变化时
- weekdayChange: function weekdayChange() {
- if (this.radioValue == '5') {
- this.$emit('update', 'week', this.weekday + 'L');
- }
- },
- // checkbox值变化时
- checkboxChange: function checkboxChange() {
- if (this.radioValue == '6') {
- this.$emit('update', 'week', this.checkboxString);
- }
- }
- },
- watch: {
- "radioValue": "radioChange",
- 'cycleTotal': 'cycleChange',
- 'averageTotal': 'averageChange',
- 'weekdayCheck': 'weekdayChange',
- 'checkboxString': 'checkboxChange'
- },
- computed: {
- // 计算两个周期值
- cycleTotal: function cycleTotal() {
- this.cycle01 = this.checkNum(this.cycle01, 1, 7);
- this.cycle02 = this.checkNum(this.cycle02, 1, 7);
- return this.cycle01 + '-' + this.cycle02;
- },
- // 计算平均用到的值
- averageTotal: function averageTotal() {
- this.average01 = this.checkNum(this.average01, 1, 4);
- this.average02 = this.checkNum(this.average02, 1, 7);
- return this.average01 + '#' + this.average02;
- },
- // 最近的工作日(格式)
- weekdayCheck: function weekdayCheck() {
- this.weekday = this.checkNum(this.weekday, 1, 7);
- return this.weekday;
- },
- // 计算勾选的checkbox值合集
- checkboxString: function checkboxString() {
- var str = this.checkboxList.join();
- return str == '' ? '*' : str;
- }
- }
- });
- // CONCATENATED MODULE: ./src/components/Crontab-Week.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Crontab_Weekvue_type_script_lang_js_ = (Crontab_Weekvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Crontab-Week.vue
- /* normalize component */
- var Crontab_Week_component = normalizeComponent(
- components_Crontab_Weekvue_type_script_lang_js_,
- Crontab_Weekvue_type_template_id_99435928_render,
- Crontab_Weekvue_type_template_id_99435928_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- Crontab_Week_component.options.__file = "Crontab-Week.vue"
- /* harmony default export */ var Crontab_Week = (Crontab_Week_component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"0f87e5ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Year.vue?vue&type=template&id=7012bd07&
- var Crontab_Yearvue_type_template_id_7012bd07_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{attrs:{"size":"small"}},[_c('el-form-item',[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t不填,允许的通配符[, - * /]\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":2},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t每年\n\t\t")])],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":3},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t周期从\n\t\t\t"),_c('el-input-number',{attrs:{"min":_vm.fullYear},model:{value:(_vm.cycle01),callback:function ($$v) {_vm.cycle01=$$v},expression:"cycle01"}}),_vm._v(" -\n\t\t\t"),_c('el-input-number',{attrs:{"min":_vm.fullYear},model:{value:(_vm.cycle02),callback:function ($$v) {_vm.cycle02=$$v},expression:"cycle02"}})],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":4},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t从\n\t\t\t"),_c('el-input-number',{attrs:{"min":_vm.fullYear},model:{value:(_vm.average01),callback:function ($$v) {_vm.average01=$$v},expression:"average01"}}),_vm._v(" 年开始,每\n\t\t\t"),_c('el-input-number',{attrs:{"min":_vm.fullYear},model:{value:(_vm.average02),callback:function ($$v) {_vm.average02=$$v},expression:"average02"}}),_vm._v(" 年执行一次\n\t\t")],1)],1),_c('el-form-item',[_c('el-radio',{attrs:{"label":5},model:{value:(_vm.radioValue),callback:function ($$v) {_vm.radioValue=$$v},expression:"radioValue"}},[_vm._v("\n\t\t\t指定\n\t\t\t"),_c('el-select',{attrs:{"clearable":"","placeholder":"可多选","multiple":""},model:{value:(_vm.checkboxList),callback:function ($$v) {_vm.checkboxList=$$v},expression:"checkboxList"}},_vm._l((9),function(item){return _c('el-option',{key:item,attrs:{"value":item - 1 + _vm.fullYear,"label":item -1 + _vm.fullYear}})}))],1)],1)],1)}
- var Crontab_Yearvue_type_template_id_7012bd07_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Crontab-Year.vue?vue&type=template&id=7012bd07&
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
- var es6_number_constructor = __webpack_require__("c5f6");
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Year.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var Crontab_Yearvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- fullYear: 0,
- radioValue: 1,
- cycle01: 0,
- cycle02: 0,
- average01: 0,
- average02: 1,
- checkboxList: [],
- checkNum: this.$options.propsData.check
- };
- },
- name: 'crontab-year',
- props: ['check', 'mouth', 'cron'],
- methods: {
- // 单选按钮值变化时
- radioChange: function radioChange() {
- if (this.cron.mouth === '*') {
- this.$emit('update', 'mouth', '0', 'year');
- }
- if (this.cron.day === '*') {
- this.$emit('update', 'day', '0', 'year');
- }
- if (this.cron.hour === '*') {
- this.$emit('update', 'hour', '0', 'year');
- }
- if (this.cron.min === '*') {
- this.$emit('update', 'min', '0', 'year');
- }
- if (this.cron.second === '*') {
- this.$emit('update', 'second', '0', 'year');
- }
- switch (this.radioValue) {
- case 1:
- this.$emit('update', 'year', '');
- break;
- case 2:
- this.$emit('update', 'year', '*');
- break;
- case 3:
- this.$emit('update', 'year', this.cycle01 + '-' + this.cycle02);
- break;
- case 4:
- this.$emit('update', 'year', this.average01 + '/' + this.average02);
- break;
- case 5:
- this.$emit('update', 'year', this.checkboxString);
- break;
- }
- },
- // 周期两个值变化时
- cycleChange: function cycleChange() {
- if (this.radioValue == '3') {
- this.$emit('update', 'year', this.cycleTotal);
- }
- },
- // 平均两个值变化时
- averageChange: function averageChange() {
- if (this.radioValue == '4') {
- this.$emit('update', 'year', this.averageTotal);
- }
- },
- // checkbox值变化时
- checkboxChange: function checkboxChange() {
- if (this.radioValue == '5') {
- this.$emit('update', 'year', this.checkboxString);
- }
- }
- },
- watch: {
- "radioValue": "radioChange",
- 'cycleTotal': 'cycleChange',
- 'averageTotal': 'averageChange',
- 'checkboxString': 'checkboxChange'
- },
- computed: {
- // 计算两个周期值
- cycleTotal: function cycleTotal() {
- this.cycle01 = this.checkNum(this.cycle01, this.fullYear, this.fullYear + 100);
- this.cycle02 = this.checkNum(this.cycle02, this.fullYear + 1, this.fullYear + 101);
- return this.cycle01 + '-' + this.cycle02;
- },
- // 计算平均用到的值
- averageTotal: function averageTotal() {
- this.average01 = this.checkNum(this.average01, this.fullYear, this.fullYear + 100);
- this.average02 = this.checkNum(this.average02, 1, 10);
- return this.average01 + '/' + this.average02;
- },
- // 计算勾选的checkbox值合集
- checkboxString: function checkboxString() {
- var str = this.checkboxList.join();
- return str;
- }
- },
- mounted: function mounted() {
- // 仅获取当前年份
- this.fullYear = Number(new Date().getFullYear());
- }
- });
- // CONCATENATED MODULE: ./src/components/Crontab-Year.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Crontab_Yearvue_type_script_lang_js_ = (Crontab_Yearvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Crontab-Year.vue
- /* normalize component */
- var Crontab_Year_component = normalizeComponent(
- components_Crontab_Yearvue_type_script_lang_js_,
- Crontab_Yearvue_type_template_id_7012bd07_render,
- Crontab_Yearvue_type_template_id_7012bd07_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- Crontab_Year_component.options.__file = "Crontab-Year.vue"
- /* harmony default export */ var Crontab_Year = (Crontab_Year_component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"0f87e5ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Result.vue?vue&type=template&id=baad7cd8&
- var Crontab_Resultvue_type_template_id_baad7cd8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"popup-result"},[_c('p',{staticClass:"title"},[_vm._v("最近5次运行时间")]),_c('ul',{staticClass:"popup-result-scroll"},[(_vm.isShow)?_vm._l((_vm.resultList),function(item){return _c('li',{key:item},[_vm._v(_vm._s(item))])}):_c('li',[_vm._v("计算结果中...")])],2)])}
- var Crontab_Resultvue_type_template_id_baad7cd8_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Crontab-Result.vue?vue&type=template&id=baad7cd8&
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.sort.js
- var es6_array_sort = __webpack_require__("55dd");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.match.js
- var es6_regexp_match = __webpack_require__("4917");
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab-Result.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var Crontab_Resultvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- dayRule: '',
- dayRuleSup: '',
- dateArr: [],
- resultList: [],
- isShow: false
- };
- },
- name: 'crontab-result',
- methods: {
- // 表达式值变化时,开始去计算结果
- expressionChange: function expressionChange() {
- // 计算开始-隐藏结果
- this.isShow = false; // 获取规则数组[0秒、1分、2时、3日、4月、5星期、6年]
- var ruleArr = this.$options.propsData.ex.split(' '); // 用于记录进入循环的次数
- var nums = 0; // 用于暂时存符号时间规则结果的数组
- var resultArr = []; // 获取当前时间精确至[年、月、日、时、分、秒]
- var nTime = new Date();
- var nYear = nTime.getFullYear();
- var nMouth = nTime.getMonth() + 1;
- var nDay = nTime.getDate();
- var nHour = nTime.getHours();
- var nMin = nTime.getMinutes();
- var nSecond = nTime.getSeconds(); // 根据规则获取到近100年可能年数组、月数组等等
- this.getSecondArr(ruleArr[0]);
- this.getMinArr(ruleArr[1]);
- this.getHourArr(ruleArr[2]);
- this.getDayArr(ruleArr[3]);
- this.getMouthArr(ruleArr[4]);
- this.getWeekArr(ruleArr[5]);
- this.getYearArr(ruleArr[6], nYear); // 将获取到的数组赋值-方便使用
- var sDate = this.dateArr[0];
- var mDate = this.dateArr[1];
- var hDate = this.dateArr[2];
- var DDate = this.dateArr[3];
- var MDate = this.dateArr[4];
- var YDate = this.dateArr[5]; // 获取当前时间在数组中的索引
- var sIdx = this.getIndex(sDate, nSecond);
- var mIdx = this.getIndex(mDate, nMin);
- var hIdx = this.getIndex(hDate, nHour);
- var DIdx = this.getIndex(DDate, nDay);
- var MIdx = this.getIndex(MDate, nMouth);
- var YIdx = this.getIndex(YDate, nYear); // 重置月日时分秒的函数(后面用的比较多)
- var resetSecond = function resetSecond() {
- sIdx = 0;
- nSecond = sDate[sIdx];
- };
- var resetMin = function resetMin() {
- mIdx = 0;
- nMin = mDate[mIdx];
- resetSecond();
- };
- var resetHour = function resetHour() {
- hIdx = 0;
- nHour = hDate[hIdx];
- resetMin();
- };
- var resetDay = function resetDay() {
- DIdx = 0;
- nDay = DDate[DIdx];
- resetHour();
- };
- var resetMouth = function resetMouth() {
- MIdx = 0;
- nMouth = MDate[MIdx];
- resetDay();
- }; // 如果当前年份不为数组中当前值
- if (nYear !== YDate[YIdx]) {
- resetMouth();
- } // 如果当前月份不为数组中当前值
- if (nMouth !== MDate[MIdx]) {
- resetDay();
- } // 如果当前“日”不为数组中当前值
- if (nDay !== DDate[DIdx]) {
- resetHour();
- } // 如果当前“时”不为数组中当前值
- if (nHour !== hDate[hIdx]) {
- resetMin();
- } // 如果当前“分”不为数组中当前值
- if (nMin !== mDate[mIdx]) {
- resetSecond();
- } // 循环年份数组
- goYear: for (var Yi = YIdx; Yi < YDate.length; Yi++) {
- var YY = YDate[Yi]; // 如果到达最大值时
- if (nMouth > MDate[MDate.length - 1]) {
- resetMouth();
- continue;
- } // 循环月份数组
- goMouth: for (var Mi = MIdx; Mi < MDate.length; Mi++) {
- // 赋值、方便后面运算
- var MM = MDate[Mi];
- MM = MM < 10 ? '0' + MM : MM; // 如果到达最大值时
- if (nDay > DDate[DDate.length - 1]) {
- resetDay();
- if (Mi == MDate.length - 1) {
- resetMouth();
- continue goYear;
- }
- continue;
- } // 循环日期数组
- goDay: for (var Di = DIdx; Di < DDate.length; Di++) {
- // 赋值、方便后面运算
- var DD = DDate[Di];
- var thisDD = DD < 10 ? '0' + DD : DD; // 如果到达最大值时
- if (nHour > hDate[hDate.length - 1]) {
- resetHour();
- if (Di == DDate.length - 1) {
- resetDay();
- if (Mi == MDate.length - 1) {
- resetMouth();
- continue goYear;
- }
- continue goMouth;
- }
- continue;
- } // 判断日期的合法性,不合法的话也是跳出当前循环
- if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true && this.dayRule !== 'workDay' && this.dayRule !== 'lastWeek' && this.dayRule !== 'lastDay') {
- resetDay();
- continue goMouth;
- } // 如果日期规则中有值时
- if (this.dayRule == 'lastDay') {
- //如果不是合法日期则需要将前将日期调到合法日期即月末最后一天
- if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) {
- while (DD > 0 && this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) {
- DD--;
- thisDD = DD < 10 ? '0' + DD : DD;
- }
- }
- } else if (this.dayRule == 'workDay') {
- //校验并调整如果是2月30号这种日期传进来时需调整至正常月底
- if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) {
- while (DD > 0 && this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) {
- DD--;
- thisDD = DD < 10 ? '0' + DD : DD;
- }
- } // 获取达到条件的日期是星期X
- var thisWeek = this.formatDate(new Date(YY + '-' + MM + '-' + thisDD + ' 00:00:00'), 'week'); // 当星期日时
- if (thisWeek == 0) {
- //先找下一个日,并判断是否为月底
- DD++;
- thisDD = DD < 10 ? '0' + DD : DD; //判断下一日已经不是合法日期
- if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) {
- DD -= 3;
- }
- } else if (thisWeek == 6) {
- //当星期6时只需判断不是1号就可进行操作
- if (this.dayRuleSup !== 1) {
- DD--;
- } else {
- DD += 2;
- }
- }
- } else if (this.dayRule == 'weekDay') {
- //如果指定了是星期几
- //获取当前日期是属于星期几
- var _thisWeek = this.formatDate(new Date(YY + '-' + MM + '-' + DD + ' 00:00:00'), 'week'); //校验当前星期是否在星期池(dayRuleSup)中
- if (Array.indexOf(this.dayRuleSup, _thisWeek) < 0) {
- // 如果到达最大值时
- if (Di == DDate.length - 1) {
- resetDay();
- if (Mi == MDate.length - 1) {
- resetMouth();
- continue goYear;
- }
- continue goMouth;
- }
- continue;
- }
- } else if (this.dayRule == 'assWeek') {
- //如果指定了是第几周的星期几
- //获取每月1号是属于星期几
- var _thisWeek2 = this.formatDate(new Date(YY + '-' + MM + '-' + DD + ' 00:00:00'), 'week');
- if (this.dayRuleSup[1] >= _thisWeek2) {
- DD = (this.dayRuleSup[0] - 1) * 7 + this.dayRuleSup[1] - _thisWeek2 + 1;
- } else {
- DD = this.dayRuleSup[0] * 7 + this.dayRuleSup[1] - _thisWeek2 + 1;
- }
- } else if (this.dayRule == 'lastWeek') {
- //如果指定了每月最后一个星期几
- //校验并调整如果是2月30号这种日期传进来时需调整至正常月底
- if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) {
- while (DD > 0 && this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) {
- DD--;
- thisDD = DD < 10 ? '0' + DD : DD;
- }
- } //获取月末最后一天是星期几
- var _thisWeek3 = this.formatDate(new Date(YY + '-' + MM + '-' + thisDD + ' 00:00:00'), 'week'); //找到要求中最近的那个星期几
- if (this.dayRuleSup < _thisWeek3) {
- DD -= _thisWeek3 - this.dayRuleSup;
- } else if (this.dayRuleSup > _thisWeek3) {
- DD -= 7 - (this.dayRuleSup - _thisWeek3);
- }
- } // 判断时间值是否小于10置换成“05”这种格式
- DD = DD < 10 ? '0' + DD : DD; // 循环“时”数组
- goHour: for (var hi = hIdx; hi < hDate.length; hi++) {
- var hh = hDate[hi] < 10 ? '0' + hDate[hi] : hDate[hi]; // 如果到达最大值时
- if (nMin > mDate[mDate.length - 1]) {
- resetMin();
- if (hi == hDate.length - 1) {
- resetHour();
- if (Di == DDate.length - 1) {
- resetDay();
- if (Mi == MDate.length - 1) {
- resetMouth();
- continue goYear;
- }
- continue goMouth;
- }
- continue goDay;
- }
- continue;
- } // 循环"分"数组
- goMin: for (var mi = mIdx; mi < mDate.length; mi++) {
- var mm = mDate[mi] < 10 ? '0' + mDate[mi] : mDate[mi]; // 如果到达最大值时
- if (nSecond > sDate[sDate.length - 1]) {
- resetSecond();
- if (mi == mDate.length - 1) {
- resetMin();
- if (hi == hDate.length - 1) {
- resetHour();
- if (Di == DDate.length - 1) {
- resetDay();
- if (Mi == MDate.length - 1) {
- resetMouth();
- continue goYear;
- }
- continue goMouth;
- }
- continue goDay;
- }
- continue goHour;
- }
- continue;
- } // 循环"秒"数组
- goSecond: for (var si = sIdx; si <= sDate.length - 1; si++) {
- var ss = sDate[si] < 10 ? '0' + sDate[si] : sDate[si]; // 添加当前时间(时间合法性在日期循环时已经判断)
- if (MM !== '00' && DD !== '00') {
- resultArr.push(YY + '-' + MM + '-' + DD + ' ' + hh + ':' + mm + ':' + ss);
- nums++;
- } //如果条数满了就退出循环
- if (nums == 5) break goYear; //如果到达最大值时
- if (si == sDate.length - 1) {
- resetSecond();
- if (mi == mDate.length - 1) {
- resetMin();
- if (hi == hDate.length - 1) {
- resetHour();
- if (Di == DDate.length - 1) {
- resetDay();
- if (Mi == MDate.length - 1) {
- resetMouth();
- continue goYear;
- }
- continue goMouth;
- }
- continue goDay;
- }
- continue goHour;
- }
- continue goMin;
- }
- } //goSecond
- } //goMin
- } //goHour
- } //goDay
- } //goMouth
- } // 判断100年内的结果条数
- if (resultArr.length == 0) {
- this.resultList = ['没有达到条件的结果!'];
- } else {
- this.resultList = resultArr;
- if (resultArr.length !== 5) {
- this.resultList.push('最近100年内只有上面' + resultArr.length + '条结果!');
- }
- } // 计算完成-显示结果
- this.isShow = true;
- },
- //用于计算某位数字在数组中的索引
- getIndex: function getIndex(arr, value) {
- if (value <= arr[0] || value > arr[arr.length - 1]) {
- return 0;
- } else {
- for (var i = 0; i < arr.length - 1; i++) {
- if (value > arr[i] && value <= arr[i + 1]) {
- return i + 1;
- }
- }
- }
- },
- // 获取"年"数组
- getYearArr: function getYearArr(rule, year) {
- this.dateArr[5] = this.getOrderArr(year, year + 100);
- if (rule !== undefined) {
- if (rule.indexOf('-') >= 0) {
- this.dateArr[5] = this.getCycleArr(rule, year + 100, false);
- } else if (rule.indexOf('/') >= 0) {
- this.dateArr[5] = this.getAverageArr(rule, year + 100);
- } else if (rule !== '*') {
- this.dateArr[5] = this.getAssignArr(rule);
- }
- }
- },
- // 获取"月"数组
- getMouthArr: function getMouthArr(rule) {
- this.dateArr[4] = this.getOrderArr(1, 12);
- if (rule.indexOf('-') >= 0) {
- this.dateArr[4] = this.getCycleArr(rule, 12, false);
- } else if (rule.indexOf('/') >= 0) {
- this.dateArr[4] = this.getAverageArr(rule, 12);
- } else if (rule !== '*') {
- this.dateArr[4] = this.getAssignArr(rule);
- }
- },
- // 获取"日"数组-主要为日期规则
- getWeekArr: function getWeekArr(rule) {
- //只有当日期规则的两个值均为“”时则表达日期是有选项的
- if (this.dayRule == '' && this.dayRuleSup == '') {
- if (rule.indexOf('-') >= 0) {
- this.dayRule = 'weekDay';
- this.dayRuleSup = this.getCycleArr(rule, 7, false);
- } else if (rule.indexOf('#') >= 0) {
- this.dayRule = 'assWeek';
- var matchRule = rule.match(/[0-9]{1}/g);
- this.dayRuleSup = [Number(matchRule[0]), Number(matchRule[1])];
- this.dateArr[3] = [1];
- if (this.dayRuleSup[1] == 7) {
- this.dayRuleSup[1] = 0;
- }
- } else if (rule.indexOf('L') >= 0) {
- this.dayRule = 'lastWeek';
- this.dayRuleSup = Number(rule.match(/[0-9]{1,2}/g)[0]);
- this.dateArr[3] = [31];
- if (this.dayRuleSup == 7) {
- this.dayRuleSup = 0;
- }
- } else if (rule !== '*' && rule !== '?') {
- this.dayRule = 'weekDay';
- this.dayRuleSup = this.getAssignArr(rule);
- } //如果weekDay时将7调整为0【week值0即是星期日】
- if (this.dayRule == 'weekDay') {
- for (var i = 0; i < this.dayRuleSup.length; i++) {
- if (this.dayRuleSup[i] == 7) {
- this.dayRuleSup[i] = 0;
- }
- }
- }
- }
- },
- // 获取"日"数组-少量为日期规则
- getDayArr: function getDayArr(rule) {
- this.dateArr[3] = this.getOrderArr(1, 31);
- this.dayRule = '';
- this.dayRuleSup = '';
- if (rule.indexOf('-') >= 0) {
- this.dateArr[3] = this.getCycleArr(rule, 31, false);
- this.dayRuleSup = 'null';
- } else if (rule.indexOf('/') >= 0) {
- this.dateArr[3] = this.getAverageArr(rule, 31);
- this.dayRuleSup = 'null';
- } else if (rule.indexOf('W') >= 0) {
- this.dayRule = 'workDay';
- this.dayRuleSup = Number(rule.match(/[0-9]{1,2}/g)[0]);
- this.dateArr[3] = [this.dayRuleSup];
- } else if (rule.indexOf('L') >= 0) {
- this.dayRule = 'lastDay';
- this.dayRuleSup = 'null';
- this.dateArr[3] = [31];
- } else if (rule !== '*' && rule !== '?') {
- this.dateArr[3] = this.getAssignArr(rule);
- this.dayRuleSup = 'null';
- } else if (rule == '*') {
- this.dayRuleSup = 'null';
- }
- },
- // 获取"时"数组
- getHourArr: function getHourArr(rule) {
- this.dateArr[2] = this.getOrderArr(0, 23);
- if (rule.indexOf('-') >= 0) {
- this.dateArr[2] = this.getCycleArr(rule, 24, true);
- } else if (rule.indexOf('/') >= 0) {
- this.dateArr[2] = this.getAverageArr(rule, 23);
- } else if (rule !== '*') {
- this.dateArr[2] = this.getAssignArr(rule);
- }
- },
- // 获取"分"数组
- getMinArr: function getMinArr(rule) {
- this.dateArr[1] = this.getOrderArr(0, 59);
- if (rule.indexOf('-') >= 0) {
- this.dateArr[1] = this.getCycleArr(rule, 60, true);
- } else if (rule.indexOf('/') >= 0) {
- this.dateArr[1] = this.getAverageArr(rule, 59);
- } else if (rule !== '*') {
- this.dateArr[1] = this.getAssignArr(rule);
- }
- },
- // 获取"秒"数组
- getSecondArr: function getSecondArr(rule) {
- this.dateArr[0] = this.getOrderArr(0, 59);
- if (rule.indexOf('-') >= 0) {
- this.dateArr[0] = this.getCycleArr(rule, 60, true);
- } else if (rule.indexOf('/') >= 0) {
- this.dateArr[0] = this.getAverageArr(rule, 59);
- } else if (rule !== '*') {
- this.dateArr[0] = this.getAssignArr(rule);
- }
- },
- // 根据传进来的min-max返回一个顺序的数组
- getOrderArr: function getOrderArr(min, max) {
- var arr = [];
- for (var i = min; i <= max; i++) {
- arr.push(i);
- }
- return arr;
- },
- // 根据规则中指定的零散值返回一个数组
- getAssignArr: function getAssignArr(rule) {
- var arr = [];
- var assiginArr = rule.split(',');
- for (var i = 0; i < assiginArr.length; i++) {
- arr[i] = Number(assiginArr[i]);
- }
- arr.sort(this.compare);
- return arr;
- },
- // 根据一定算术规则计算返回一个数组
- getAverageArr: function getAverageArr(rule, limit) {
- var arr = [];
- var agArr = rule.split('/');
- var min = Number(agArr[0]);
- var step = Number(agArr[1]);
- while (min <= limit) {
- arr.push(min);
- min += step;
- }
- return arr;
- },
- // 根据规则返回一个具有周期性的数组
- getCycleArr: function getCycleArr(rule, limit, status) {
- //status--表示是否从0开始(则从1开始)
- var arr = [];
- var cycleArr = rule.split('-');
- var min = Number(cycleArr[0]);
- var max = Number(cycleArr[1]);
- if (min > max) {
- max += limit;
- }
- for (var i = min; i <= max; i++) {
- var add = 0;
- if (status == false && i % limit == 0) {
- add = limit;
- }
- arr.push(Math.round(i % limit + add));
- }
- arr.sort(this.compare);
- return arr;
- },
- //比较数字大小(用于Array.sort)
- compare: function compare(value1, value2) {
- if (value2 - value1 > 0) {
- return -1;
- } else {
- return 1;
- }
- },
- // 格式化日期格式如:2017-9-19 18:04:33
- formatDate: function formatDate(value, type) {
- // 计算日期相关值
- var time = typeof value == 'number' ? new Date(value) : value;
- var Y = time.getFullYear();
- var M = time.getMonth() + 1;
- var D = time.getDate();
- var h = time.getHours();
- var m = time.getMinutes();
- var s = time.getSeconds();
- var week = time.getDay(); // 如果传递了type的话
- if (type == undefined) {
- return Y + '-' + (M < 10 ? '0' + M : M) + '-' + (D < 10 ? '0' + D : D) + ' ' + (h < 10 ? '0' + h : h) + ':' + (m < 10 ? '0' + m : m) + ':' + (s < 10 ? '0' + s : s);
- } else if (type == 'week') {
- return week;
- }
- },
- // 检查日期是否存在
- checkDate: function checkDate(value) {
- var time = new Date(value);
- var format = this.formatDate(time);
- return value == format ? true : false;
- }
- },
- watch: {
- 'ex': 'expressionChange'
- },
- props: ['ex'],
- mounted: function mounted() {
- // 初始化 获取一次结果
- this.expressionChange();
- }
- });
- // CONCATENATED MODULE: ./src/components/Crontab-Result.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Crontab_Resultvue_type_script_lang_js_ = (Crontab_Resultvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Crontab-Result.vue
- /* normalize component */
- var Crontab_Result_component = normalizeComponent(
- components_Crontab_Resultvue_type_script_lang_js_,
- Crontab_Resultvue_type_template_id_baad7cd8_render,
- Crontab_Resultvue_type_template_id_baad7cd8_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- Crontab_Result_component.options.__file = "Crontab-Result.vue"
- /* harmony default export */ var Crontab_Result = (Crontab_Result_component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Crontab.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var Crontabvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- tabTitles: ["秒", "分钟", "小时", "日", "月", "周", "年"],
- tabActive: 0,
- myindex: 0,
- contabValueObj: {
- second: "*",
- min: "*",
- hour: "*",
- day: "*",
- mouth: "*",
- week: "?",
- year: ""
- }
- };
- },
- name: "vcrontab",
- props: ["expression", "hideComponent"],
- methods: {
- shouldHide: function shouldHide(key) {
- if (this.hideComponent && this.hideComponent.includes(key)) return false;
- return true;
- },
- resolveExp: function resolveExp() {
- //反解析 表达式
- if (this.expression) {
- var arr = this.expression.split(" ");
- if (arr.length >= 6) {
- //6 位以上是合法表达式
- var obj = {
- second: arr[0],
- min: arr[1],
- hour: arr[2],
- day: arr[3],
- mouth: arr[4],
- week: arr[5],
- year: arr[6] ? arr[6] : ""
- };
- this.contabValueObj = _objectSpread({}, obj);
- for (var i in obj) {
- if (obj[i]) this.changeRadio(i, obj[i]);
- }
- }
- } else {
- //没有传入的表达式 则还原
- this.clearCron();
- }
- },
- // tab切换值
- tabCheck: function tabCheck(index) {
- this.tabActive = index;
- },
- // 由子组件触发,更改表达式组成的字段值
- updateContabValue: function updateContabValue(name, value, from) {
- "updateContabValue", name, value, from;
- this.contabValueObj[name] = value;
- if (from && from !== name) {
- console.log("\u6765\u81EA\u7EC4\u4EF6 ".concat(from, " \u6539\u53D8\u4E86 ").concat(name, " ").concat(value));
- this.changeRadio(name, value);
- }
- },
- //赋值到组件
- changeRadio: function changeRadio(name, value) {
- var arr = ["second", "min", "hour", "mouth"],
- refName = "cron" + name,
- insVlaue;
- if (!this.$refs[refName]) return;
- if (arr.includes(name)) {
- if (value === "*") {
- insVlaue = 1;
- } else if (value.indexOf("-") > -1) {
- var indexArr = value.split("-");
- isNaN(indexArr[0]) ? this.$refs[refName].cycle01 = 0 : this.$refs[refName].cycle01 = indexArr[0];
- this.$refs[refName].cycle02 = indexArr[1];
- insVlaue = 2;
- } else if (value.indexOf("/") > -1) {
- var _indexArr = value.split("/");
- isNaN(_indexArr[0]) ? this.$refs[refName].average01 = 0 : this.$refs[refName].average01 = _indexArr[0];
- this.$refs[refName].average02 = _indexArr[1];
- insVlaue = 3;
- } else {
- insVlaue = 4;
- this.$refs[refName].checkboxList = value.split(",");
- }
- } else if (name == "day") {
- if (value === "*") {
- insVlaue = 1;
- } else if (value == "?") {
- insVlaue = 2;
- } else if (value.indexOf("-") > -1) {
- var _indexArr2 = value.split("-");
- isNaN(_indexArr2[0]) ? this.$refs[refName].cycle01 = 0 : this.$refs[refName].cycle01 = _indexArr2[0];
- this.$refs[refName].cycle02 = _indexArr2[1];
- insVlaue = 3;
- } else if (value.indexOf("/") > -1) {
- var _indexArr3 = value.split("/");
- isNaN(_indexArr3[0]) ? this.$refs[refName].average01 = 0 : this.$refs[refName].average01 = _indexArr3[0];
- this.$refs[refName].average02 = _indexArr3[1];
- insVlaue = 4;
- } else if (value.indexOf("W") > -1) {
- var _indexArr4 = value.split("W");
- isNaN(_indexArr4[0]) ? this.$refs[refName].workday = 0 : this.$refs[refName].workday = _indexArr4[0];
- insVlaue = 5;
- } else if (value === "L") {
- insVlaue = 6;
- } else {
- this.$refs[refName].checkboxList = value.split(",");
- insVlaue = 7;
- }
- } else if (name == "week") {
- if (value === "*") {
- insVlaue = 1;
- } else if (value == "?") {
- insVlaue = 2;
- } else if (value.indexOf("-") > -1) {
- var _indexArr5 = value.split("-");
- isNaN(_indexArr5[0]) ? this.$refs[refName].cycle01 = 0 : this.$refs[refName].cycle01 = _indexArr5[0];
- this.$refs[refName].cycle02 = _indexArr5[1];
- insVlaue = 3;
- } else if (value.indexOf("#") > -1) {
- var _indexArr6 = value.split("#");
- isNaN(_indexArr6[0]) ? this.$refs[refName].average01 = 1 : this.$refs[refName].average01 = _indexArr6[0];
- this.$refs[refName].average02 = _indexArr6[1];
- insVlaue = 4;
- } else if (value.indexOf("L") > -1) {
- var _indexArr7 = value.split("L");
- isNaN(_indexArr7[0]) ? this.$refs[refName].weekday = 1 : this.$refs[refName].weekday = _indexArr7[0];
- insVlaue = 5;
- } else {
- this.$refs[refName].checkboxList = value.split(",");
- insVlaue = 7;
- }
- } else if (name == "year") {
- if (value == "") {
- insVlaue = 1;
- } else if (value == "*") {
- insVlaue = 2;
- } else if (value.indexOf("-") > -1) {
- insVlaue = 3;
- } else if (value.indexOf("/") > -1) {
- insVlaue = 4;
- } else {
- this.$refs[refName].checkboxList = value.split(",");
- insVlaue = 5;
- }
- }
- this.$refs[refName].radioValue = insVlaue;
- },
- // 表单选项的子组件校验数字格式(通过-props传递)
- checkNumber: function checkNumber(value, minLimit, maxLimit) {
- //检查必须为整数
- value = Math.floor(value);
- if (value < minLimit) {
- value = minLimit;
- } else if (value > maxLimit) {
- value = maxLimit;
- }
- return value;
- },
- // 隐藏弹窗
- hidePopup: function hidePopup() {
- this.$emit("hide");
- },
- // 填充表达式
- submitFill: function submitFill() {
- this.$emit("fill", this.contabValueString);
- this.hidePopup();
- },
- clearCron: function clearCron() {
- // 还原选择项
- "准备还原";
- this.contabValueObj = {
- second: "*",
- min: "*",
- hour: "*",
- day: "*",
- mouth: "*",
- week: "?",
- year: ""
- };
- for (var j in this.contabValueObj) {
- this.changeRadio(j, this.contabValueObj[j]);
- }
- }
- },
- computed: {
- contabValueString: function contabValueString() {
- var obj = this.contabValueObj;
- var str = obj.second + " " + obj.min + " " + obj.hour + " " + obj.day + " " + obj.mouth + " " + obj.week + (obj.year == "" ? "" : " " + obj.year);
- return str;
- }
- },
- components: {
- CrontabSecond: Crontab_Second,
- CrontabMin: Crontab_Min,
- CrontabHour: Crontab_Hour,
- CrontabDay: Crontab_Day,
- CrontabMouth: Crontab_Mouth,
- CrontabWeek: Crontab_Week,
- CrontabYear: Crontab_Year,
- CrontabResult: Crontab_Result
- },
- watch: {
- expression: "resolveExp",
- hideComponent: function hideComponent(value) {// 隐藏部分组件
- }
- },
- mounted: function mounted() {
- this.resolveExp();
- }
- });
- // CONCATENATED MODULE: ./src/components/Crontab.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Crontabvue_type_script_lang_js_ = (Crontabvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./src/components/Crontab.vue?vue&type=style&index=0&id=0cc91000&scoped=true&lang=css&
- var Crontabvue_type_style_index_0_id_0cc91000_scoped_true_lang_css_ = __webpack_require__("bfd8");
- // CONCATENATED MODULE: ./src/components/Crontab.vue
- /* normalize component */
- var Crontab_component = normalizeComponent(
- components_Crontabvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- "0cc91000",
- null
-
- )
- Crontab_component.options.__file = "Crontab.vue"
- /* harmony default export */ var Crontab = (Crontab_component.exports);
- // CONCATENATED MODULE: ./src/index.js
- Crontab.install = function (Vue) {
- return Vue.component(Crontab.name, Crontab);
- };
- /* harmony default export */ var src = (Crontab);
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src);
- /***/ }),
- /***/ "fdef":
- /***/ (function(module, exports) {
- module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
- '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
- /***/ })
- /******/ });
- });
|