| | |
| | | if (this.radioValue === 1) {
|
| | | this.$emit('update', 'day', '*', 'day');
|
| | | this.$emit('update', 'week', '?', 'day');
|
| | | this.$emit('update', 'mouth', '*', 'day');
|
| | | this.$emit('update', 'month', '*', 'day'); |
| | | } else {
|
| | | if (this.cron.hour === '*') {
|
| | | this.$emit('update', 'hour', '0', 'day');
|
| | |
| | | <div>
|
| | | <el-tabs type="border-card">
|
| | | <el-tab-pane label="ç§" v-if="shouldHide('second')">
|
| | | <CrontabSecond @update="updateContabValue" :check="checkNumber" ref="cronsecond" />
|
| | | <CrontabSecond @update="updateCrontabValue" :check="checkNumber" ref="cronsecond" /> |
| | | </el-tab-pane>
|
| | |
|
| | | <el-tab-pane label="åé" v-if="shouldHide('min')">
|
| | | <CrontabMin
|
| | | @update="updateContabValue"
|
| | | @update="updateCrontabValue" |
| | | :check="checkNumber"
|
| | | :cron="contabValueObj"
|
| | | :cron="crontabValueObj" |
| | | ref="cronmin"
|
| | | />
|
| | | </el-tab-pane>
|
| | |
|
| | | <el-tab-pane label="å°æ¶" v-if="shouldHide('hour')">
|
| | | <CrontabHour
|
| | | @update="updateContabValue"
|
| | | @update="updateCrontabValue" |
| | | :check="checkNumber"
|
| | | :cron="contabValueObj"
|
| | | :cron="crontabValueObj" |
| | | ref="cronhour"
|
| | | />
|
| | | </el-tab-pane>
|
| | |
|
| | | <el-tab-pane label="æ¥" v-if="shouldHide('day')">
|
| | | <CrontabDay
|
| | | @update="updateContabValue"
|
| | | @update="updateCrontabValue" |
| | | :check="checkNumber"
|
| | | :cron="contabValueObj"
|
| | | :cron="crontabValueObj" |
| | | ref="cronday"
|
| | | />
|
| | | </el-tab-pane>
|
| | |
|
| | | <el-tab-pane label="æ" v-if="shouldHide('mouth')">
|
| | | <CrontabMouth
|
| | | @update="updateContabValue"
|
| | | <el-tab-pane label="æ" v-if="shouldHide('month')"> |
| | | <CrontabMonth |
| | | @update="updateCrontabValue" |
| | | :check="checkNumber"
|
| | | :cron="contabValueObj"
|
| | | ref="cronmouth"
|
| | | :cron="crontabValueObj" |
| | | ref="cronmonth" |
| | | />
|
| | | </el-tab-pane>
|
| | |
|
| | | <el-tab-pane label="å¨" v-if="shouldHide('week')">
|
| | | <CrontabWeek
|
| | | @update="updateContabValue"
|
| | | @update="updateCrontabValue" |
| | | :check="checkNumber"
|
| | | :cron="contabValueObj"
|
| | | :cron="crontabValueObj" |
| | | ref="cronweek"
|
| | | />
|
| | | </el-tab-pane>
|
| | |
|
| | | <el-tab-pane label="å¹´" v-if="shouldHide('year')">
|
| | | <CrontabYear
|
| | | @update="updateContabValue"
|
| | | @update="updateCrontabValue" |
| | | :check="checkNumber"
|
| | | :cron="contabValueObj"
|
| | | :cron="crontabValueObj" |
| | | ref="cronyear"
|
| | | />
|
| | | </el-tab-pane>
|
| | |
| | | </thead>
|
| | | <tbody>
|
| | | <td>
|
| | | <span>{{contabValueObj.second}}</span>
|
| | | <span>{{crontabValueObj.second}}</span> |
| | | </td>
|
| | | <td>
|
| | | <span>{{contabValueObj.min}}</span>
|
| | | <span>{{crontabValueObj.min}}</span> |
| | | </td>
|
| | | <td>
|
| | | <span>{{contabValueObj.hour}}</span>
|
| | | <span>{{crontabValueObj.hour}}</span> |
| | | </td>
|
| | | <td>
|
| | | <span>{{contabValueObj.day}}</span>
|
| | | <span>{{crontabValueObj.day}}</span> |
| | | </td>
|
| | | <td>
|
| | | <span>{{contabValueObj.mouth}}</span>
|
| | | <span>{{crontabValueObj.month}}</span> |
| | | </td>
|
| | | <td>
|
| | | <span>{{contabValueObj.week}}</span>
|
| | | <span>{{crontabValueObj.week}}</span> |
| | | </td>
|
| | | <td>
|
| | | <span>{{contabValueObj.year}}</span>
|
| | | <span>{{crontabValueObj.year}}</span> |
| | | </td>
|
| | | <td>
|
| | | <span>{{contabValueString}}</span>
|
| | | <span>{{crontabValueString}}</span> |
| | | </td>
|
| | | </tbody>
|
| | | </table>
|
| | | </div>
|
| | | <CrontabResult :ex="contabValueString"></CrontabResult>
|
| | | <CrontabResult :ex="crontabValueString"></CrontabResult> |
| | |
|
| | | <div class="pop_btn">
|
| | | <el-button size="small" type="primary" @click="submitFill">ç¡®å®</el-button>
|
| | |
| | | import CrontabMin from "./min.vue";
|
| | | import CrontabHour from "./hour.vue";
|
| | | import CrontabDay from "./day.vue";
|
| | | import CrontabMouth from "./mouth.vue";
|
| | | import CrontabMonth from "./month.vue"; |
| | | import CrontabWeek from "./week.vue";
|
| | | import CrontabYear from "./year.vue";
|
| | | import CrontabResult from "./result.vue";
|
| | |
| | | tabTitles: ["ç§", "åé", "å°æ¶", "æ¥", "æ", "å¨", "å¹´"],
|
| | | tabActive: 0,
|
| | | myindex: 0,
|
| | | contabValueObj: {
|
| | | crontabValueObj: { |
| | | second: "*",
|
| | | min: "*",
|
| | | hour: "*",
|
| | | day: "*",
|
| | | mouth: "*",
|
| | | month: "*", |
| | | week: "?",
|
| | | year: "",
|
| | | },
|
| | |
| | | min: arr[1],
|
| | | hour: arr[2],
|
| | | day: arr[3],
|
| | | mouth: arr[4],
|
| | | month: arr[4], |
| | | week: arr[5],
|
| | | year: arr[6] ? arr[6] : "",
|
| | | };
|
| | | this.contabValueObj = {
|
| | | this.crontabValueObj = { |
| | | ...obj,
|
| | | };
|
| | | for (let i in obj) {
|
| | |
| | | this.tabActive = index;
|
| | | },
|
| | | // ç±åç»ä»¶è§¦åï¼æ´æ¹è¡¨è¾¾å¼ç»æçåæ®µå¼
|
| | | updateContabValue(name, value, from) {
|
| | | "updateContabValue", name, value, from;
|
| | | this.contabValueObj[name] = value;
|
| | | updateCrontabValue(name, value, from) { |
| | | "updateCrontabValue", name, value, from; |
| | | this.crontabValueObj[name] = value; |
| | | if (from && from !== name) {
|
| | | console.log(`æ¥èªç»ä»¶ ${from} æ¹åäº ${name} ${value}`);
|
| | | this.changeRadio(name, value);
|
| | |
| | | },
|
| | | //èµå¼å°ç»ä»¶
|
| | | changeRadio(name, value) {
|
| | | let arr = ["second", "min", "hour", "mouth"],
|
| | | let arr = ["second", "min", "hour", "month"], |
| | | refName = "cron" + name,
|
| | | insVlaue;
|
| | | insValue; |
| | |
|
| | | if (!this.$refs[refName]) return;
|
| | |
|
| | | if (arr.includes(name)) {
|
| | | if (value === "*") {
|
| | | insVlaue = 1;
|
| | | insValue = 1; |
| | | } else if (value.indexOf("-") > -1) {
|
| | | let 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;
|
| | | insValue = 2; |
| | | } else if (value.indexOf("/") > -1) {
|
| | | let 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;
|
| | | insValue = 3; |
| | | } else {
|
| | | insVlaue = 4;
|
| | | insValue = 4; |
| | | this.$refs[refName].checkboxList = value.split(",");
|
| | | }
|
| | | } else if (name == "day") {
|
| | | if (value === "*") {
|
| | | insVlaue = 1;
|
| | | insValue = 1; |
| | | } else if (value == "?") {
|
| | | insVlaue = 2;
|
| | | insValue = 2; |
| | | } else if (value.indexOf("-") > -1) {
|
| | | let indexArr = value.split("-");
|
| | | isNaN(indexArr[0])
|
| | | ? (this.$refs[refName].cycle01 = 0)
|
| | | : (this.$refs[refName].cycle01 = indexArr[0]);
|
| | | this.$refs[refName].cycle02 = indexArr[1];
|
| | | insVlaue = 3;
|
| | | insValue = 3; |
| | | } else if (value.indexOf("/") > -1) {
|
| | | let indexArr = value.split("/");
|
| | | isNaN(indexArr[0])
|
| | | ? (this.$refs[refName].average01 = 0)
|
| | | : (this.$refs[refName].average01 = indexArr[0]);
|
| | | this.$refs[refName].average02 = indexArr[1];
|
| | | insVlaue = 4;
|
| | | insValue = 4; |
| | | } else if (value.indexOf("W") > -1) {
|
| | | let indexArr = value.split("W");
|
| | | isNaN(indexArr[0])
|
| | | ? (this.$refs[refName].workday = 0)
|
| | | : (this.$refs[refName].workday = indexArr[0]);
|
| | | insVlaue = 5;
|
| | | insValue = 5; |
| | | } else if (value === "L") {
|
| | | insVlaue = 6;
|
| | | insValue = 6; |
| | | } else {
|
| | | this.$refs[refName].checkboxList = value.split(",");
|
| | | insVlaue = 7;
|
| | | insValue = 7; |
| | | }
|
| | | } else if (name == "week") {
|
| | | if (value === "*") {
|
| | | insVlaue = 1;
|
| | | insValue = 1; |
| | | } else if (value == "?") {
|
| | | insVlaue = 2;
|
| | | insValue = 2; |
| | | } else if (value.indexOf("-") > -1) {
|
| | | let indexArr = value.split("-");
|
| | | isNaN(indexArr[0])
|
| | | ? (this.$refs[refName].cycle01 = 0)
|
| | | : (this.$refs[refName].cycle01 = indexArr[0]);
|
| | | this.$refs[refName].cycle02 = indexArr[1];
|
| | | insVlaue = 3;
|
| | | insValue = 3; |
| | | } else if (value.indexOf("#") > -1) {
|
| | | let indexArr = value.split("#");
|
| | | isNaN(indexArr[0])
|
| | | ? (this.$refs[refName].average01 = 1)
|
| | | : (this.$refs[refName].average01 = indexArr[0]);
|
| | | this.$refs[refName].average02 = indexArr[1];
|
| | | insVlaue = 4;
|
| | | insValue = 4; |
| | | } else if (value.indexOf("L") > -1) {
|
| | | let indexArr = value.split("L");
|
| | | isNaN(indexArr[0])
|
| | | ? (this.$refs[refName].weekday = 1)
|
| | | : (this.$refs[refName].weekday = indexArr[0]);
|
| | | insVlaue = 5;
|
| | | insValue = 5; |
| | | } else {
|
| | | this.$refs[refName].checkboxList = value.split(",");
|
| | | insVlaue = 7;
|
| | | insValue = 7; |
| | | }
|
| | | } else if (name == "year") {
|
| | | if (value == "") {
|
| | | insVlaue = 1;
|
| | | insValue = 1; |
| | | } else if (value == "*") {
|
| | | insVlaue = 2;
|
| | | insValue = 2; |
| | | } else if (value.indexOf("-") > -1) {
|
| | | insVlaue = 3;
|
| | | insValue = 3; |
| | | } else if (value.indexOf("/") > -1) {
|
| | | insVlaue = 4;
|
| | | insValue = 4; |
| | | } else {
|
| | | this.$refs[refName].checkboxList = value.split(",");
|
| | | insVlaue = 5;
|
| | | insValue = 5; |
| | | }
|
| | | }
|
| | | this.$refs[refName].radioValue = insVlaue;
|
| | | this.$refs[refName].radioValue = insValue; |
| | | },
|
| | | // 表åé项çåç»ä»¶æ ¡éªæ°åæ ¼å¼ï¼éè¿-propsä¼ éï¼
|
| | | checkNumber(value, minLimit, maxLimit) {
|
| | |
| | | },
|
| | | // å¡«å
表达å¼
|
| | | submitFill() {
|
| | | this.$emit("fill", this.contabValueString);
|
| | | this.$emit("fill", this.crontabValueString); |
| | | this.hidePopup();
|
| | | },
|
| | | clearCron() {
|
| | | // è¿å鿩项
|
| | | ("åå¤è¿å");
|
| | | this.contabValueObj = {
|
| | | this.crontabValueObj = { |
| | | second: "*",
|
| | | min: "*",
|
| | | hour: "*",
|
| | | day: "*",
|
| | | mouth: "*",
|
| | | month: "*", |
| | | week: "?",
|
| | | year: "",
|
| | | };
|
| | | for (let j in this.contabValueObj) {
|
| | | this.changeRadio(j, this.contabValueObj[j]);
|
| | | for (let j in this.crontabValueObj) { |
| | | this.changeRadio(j, this.crontabValueObj[j]); |
| | | }
|
| | | },
|
| | | },
|
| | | computed: {
|
| | | contabValueString: function() {
|
| | | let obj = this.contabValueObj;
|
| | | crontabValueString: function() { |
| | | let obj = this.crontabValueObj; |
| | | let str =
|
| | | obj.second +
|
| | | " " +
|
| | |
| | | " " +
|
| | | obj.day +
|
| | | " " +
|
| | | obj.mouth +
|
| | | obj.month + |
| | | " " +
|
| | | obj.week +
|
| | | (obj.year == "" ? "" : " " + obj.year);
|
| | |
| | | CrontabMin,
|
| | | CrontabHour,
|
| | | CrontabDay,
|
| | | CrontabMouth,
|
| | | CrontabMonth, |
| | | CrontabWeek,
|
| | | CrontabYear,
|
| | | CrontabResult,
|
ÎļþÃû´Ó ruoyi-ui/src/components/Crontab/mouth.vue ÐÞ¸Ä |
| | |
| | | checkNum: this.check
|
| | | }
|
| | | },
|
| | | name: 'crontab-mouth',
|
| | | name: 'crontab-month', |
| | | props: ['check', 'cron'],
|
| | | methods: {
|
| | | // åéæé®å¼ååæ¶
|
| | | radioChange() {
|
| | | if (this.radioValue === 1) {
|
| | | this.$emit('update', 'mouth', '*');
|
| | | this.$emit('update', 'month', '*'); |
| | | this.$emit('update', 'year', '*');
|
| | | } else {
|
| | | if (this.cron.day === '*') {
|
| | | this.$emit('update', 'day', '0', 'mouth');
|
| | | this.$emit('update', 'day', '0', 'month'); |
| | | }
|
| | | if (this.cron.hour === '*') {
|
| | | this.$emit('update', 'hour', '0', 'mouth');
|
| | | this.$emit('update', 'hour', '0', 'month'); |
| | | }
|
| | | if (this.cron.min === '*') {
|
| | | this.$emit('update', 'min', '0', 'mouth');
|
| | | this.$emit('update', 'min', '0', 'month'); |
| | | }
|
| | | if (this.cron.second === '*') {
|
| | | this.$emit('update', 'second', '0', 'mouth');
|
| | | this.$emit('update', 'second', '0', 'month'); |
| | | }
|
| | | }
|
| | | switch (this.radioValue) {
|
| | | case 2:
|
| | | this.$emit('update', 'mouth', this.cycle01 + '-' + this.cycle02);
|
| | | this.$emit('update', 'month', this.cycle01 + '-' + this.cycle02); |
| | | break;
|
| | | case 3:
|
| | | this.$emit('update', 'mouth', this.average01 + '/' + this.average02);
|
| | | this.$emit('update', 'month', this.average01 + '/' + this.average02); |
| | | break;
|
| | | case 4:
|
| | | this.$emit('update', 'mouth', this.checkboxString);
|
| | | this.$emit('update', 'month', this.checkboxString); |
| | | break;
|
| | | }
|
| | | },
|
| | | // å¨æä¸¤ä¸ªå¼ååæ¶
|
| | | cycleChange() {
|
| | | if (this.radioValue == '2') {
|
| | | this.$emit('update', 'mouth', this.cycleTotal);
|
| | | this.$emit('update', 'month', this.cycleTotal); |
| | | }
|
| | | },
|
| | | // å¹³å两个å¼ååæ¶
|
| | | averageChange() {
|
| | | if (this.radioValue == '3') {
|
| | | this.$emit('update', 'mouth', this.averageTotal);
|
| | | this.$emit('update', 'month', this.averageTotal); |
| | | }
|
| | | },
|
| | | // checkboxå¼ååæ¶
|
| | | checkboxChange() {
|
| | | if (this.radioValue == '4') {
|
| | | this.$emit('update', 'mouth', this.checkboxString);
|
| | | this.$emit('update', 'month', this.checkboxString); |
| | | }
|
| | | }
|
| | | },
|
| | |
| | | // è·åå½åæ¶é´ç²¾ç¡®è³[å¹´ãæãæ¥ãæ¶ãåãç§]
|
| | | let nTime = new Date();
|
| | | let nYear = nTime.getFullYear();
|
| | | let nMouth = nTime.getMonth() + 1;
|
| | | let nMonth = nTime.getMonth() + 1; |
| | | let nDay = nTime.getDate();
|
| | | let nHour = nTime.getHours();
|
| | | let nMin = nTime.getMinutes();
|
| | |
| | | this.getMinArr(ruleArr[1]);
|
| | | this.getHourArr(ruleArr[2]);
|
| | | this.getDayArr(ruleArr[3]);
|
| | | this.getMouthArr(ruleArr[4]);
|
| | | this.getMonthArr(ruleArr[4]); |
| | | this.getWeekArr(ruleArr[5]);
|
| | | this.getYearArr(ruleArr[6], nYear);
|
| | | // å°è·åå°çæ°ç»èµå¼-æ¹ä¾¿ä½¿ç¨
|
| | |
| | | let mIdx = this.getIndex(mDate, nMin);
|
| | | let hIdx = this.getIndex(hDate, nHour);
|
| | | let DIdx = this.getIndex(DDate, nDay);
|
| | | let MIdx = this.getIndex(MDate, nMouth);
|
| | | let MIdx = this.getIndex(MDate, nMonth); |
| | | let YIdx = this.getIndex(YDate, nYear);
|
| | | // éç½®ææ¥æ¶åç§ç彿°(åé¢ç¨çæ¯è¾å¤)
|
| | | const resetSecond = function () {
|
| | |
| | | nDay = DDate[DIdx]
|
| | | resetHour();
|
| | | }
|
| | | const resetMouth = function () {
|
| | | const resetMonth = function () { |
| | | MIdx = 0;
|
| | | nMouth = MDate[MIdx]
|
| | | nMonth = MDate[MIdx] |
| | | resetDay();
|
| | | }
|
| | | // 妿å½å年份ä¸ä¸ºæ°ç»ä¸å½åå¼
|
| | | if (nYear !== YDate[YIdx]) {
|
| | | resetMouth();
|
| | | resetMonth(); |
| | | }
|
| | | // 妿å½åæä»½ä¸ä¸ºæ°ç»ä¸å½åå¼
|
| | | if (nMouth !== MDate[MIdx]) {
|
| | | if (nMonth !== MDate[MIdx]) { |
| | | resetDay();
|
| | | }
|
| | | // 妿å½åâæ¥âä¸ä¸ºæ°ç»ä¸å½åå¼
|
| | |
| | | goYear: for (let Yi = YIdx; Yi < YDate.length; Yi++) {
|
| | | let YY = YDate[Yi];
|
| | | // 妿å°è¾¾æå¤§å¼æ¶
|
| | | if (nMouth > MDate[MDate.length - 1]) {
|
| | | resetMouth();
|
| | | if (nMonth > MDate[MDate.length - 1]) { |
| | | resetMonth(); |
| | | continue;
|
| | | }
|
| | | // å¾ªç¯æä»½æ°ç»
|
| | | goMouth: for (let Mi = MIdx; Mi < MDate.length; Mi++) {
|
| | | goMonth: for (let Mi = MIdx; Mi < MDate.length; Mi++) { |
| | | // èµå¼ãæ¹ä¾¿åé¢è¿ç®
|
| | | let MM = MDate[Mi];
|
| | | MM = MM < 10 ? '0' + MM : MM;
|
| | |
| | | if (nDay > DDate[DDate.length - 1]) {
|
| | | resetDay();
|
| | | if (Mi == MDate.length - 1) {
|
| | | resetMouth();
|
| | | resetMonth(); |
| | | continue goYear;
|
| | | }
|
| | | continue;
|
| | |
| | | if (Di == DDate.length - 1) {
|
| | | resetDay();
|
| | | if (Mi == MDate.length - 1) {
|
| | | resetMouth();
|
| | | resetMonth(); |
| | | continue goYear;
|
| | | }
|
| | | continue goMouth;
|
| | | continue goMonth; |
| | | }
|
| | | continue;
|
| | | }
|
| | |
| | | // å¤ææ¥æçåæ³æ§ï¼ä¸åæ³çè¯ä¹æ¯è·³åºå½å循ç¯
|
| | | if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true && this.dayRule !== 'workDay' && this.dayRule !== 'lastWeek' && this.dayRule !== 'lastDay') {
|
| | | resetDay();
|
| | | continue goMouth;
|
| | | continue goMonth; |
| | | }
|
| | | // å¦ææ¥æè§å䏿弿¶
|
| | | if (this.dayRule == 'lastDay') {
|
| | |
| | | if (Di == DDate.length - 1) {
|
| | | resetDay();
|
| | | if (Mi == MDate.length - 1) {
|
| | | resetMouth();
|
| | | resetMonth(); |
| | | continue goYear;
|
| | | }
|
| | | continue goMouth;
|
| | | continue goMonth; |
| | | }
|
| | | continue;
|
| | | }
|
| | |
| | | if (Di == DDate.length - 1) {
|
| | | resetDay();
|
| | | if (Mi == MDate.length - 1) {
|
| | | resetMouth();
|
| | | resetMonth(); |
| | | continue goYear;
|
| | | }
|
| | | continue goMouth;
|
| | | continue goMonth; |
| | | }
|
| | | continue goDay;
|
| | | }
|
| | |
| | | if (Di == DDate.length - 1) {
|
| | | resetDay();
|
| | | if (Mi == MDate.length - 1) {
|
| | | resetMouth();
|
| | | resetMonth(); |
| | | continue goYear;
|
| | | }
|
| | | continue goMouth;
|
| | | continue goMonth; |
| | | }
|
| | | continue goDay;
|
| | | }
|
| | |
| | | if (Di == DDate.length - 1) {
|
| | | resetDay();
|
| | | if (Mi == MDate.length - 1) {
|
| | | resetMouth();
|
| | | resetMonth(); |
| | | continue goYear;
|
| | | }
|
| | | continue goMouth;
|
| | | continue goMonth; |
| | | }
|
| | | continue goDay;
|
| | | }
|
| | |
| | | } //goMin
|
| | | }//goHour
|
| | | }//goDay
|
| | | }//goMouth
|
| | | }//goMonth |
| | | }
|
| | | // 夿100å¹´å
çç»ææ¡æ°
|
| | | if (resultArr.length == 0) {
|
| | |
| | | }
|
| | | },
|
| | | // è·å"æ"æ°ç»
|
| | | getMouthArr(rule) {
|
| | | getMonthArr(rule) { |
| | | this.dateArr[4] = this.getOrderArr(1, 12);
|
| | | if (rule.indexOf('-') >= 0) {
|
| | | this.dateArr[4] = this.getCycleArr(rule, 12, false)
|
| | |
| | | this.$emit('update', 'week', '*');
|
| | | this.$emit('update', 'year', '*');
|
| | | } else {
|
| | | if (this.cron.mouth === '*') {
|
| | | this.$emit('update', 'mouth', '0', 'week');
|
| | | if (this.cron.month === '*') { |
| | | this.$emit('update', 'month', '0', 'week'); |
| | | }
|
| | | if (this.cron.day === '*') {
|
| | | this.$emit('update', 'day', '0', 'week');
|
| | |
| | | }
|
| | | },
|
| | | name: 'crontab-year',
|
| | | props: ['check', 'mouth', 'cron'],
|
| | | props: ['check', 'month', 'cron'], |
| | | methods: {
|
| | | // åéæé®å¼ååæ¶
|
| | | radioChange() {
|
| | | if (this.cron.mouth === '*') {
|
| | | this.$emit('update', 'mouth', '0', 'year');
|
| | | if (this.cron.month === '*') { |
| | | this.$emit('update', 'month', '0', 'year'); |
| | | }
|
| | | if (this.cron.day === '*') {
|
| | | this.$emit('update', 'day', '0', 'year');
|