Commit 1ca5dd7e9364a0c5ca0f891194477e8cd3906620

Authored by gaoxiaoniu
1 parent 891ed3d0

Crontab组件radio的label类型不一致

yudao-ui-admin/src/components/Crontab/day.vue
... ... @@ -103,25 +103,25 @@ export default {
103 103 },
104 104 // 周期两个值变化时
105 105 cycleChange() {
106   - if (this.radioValue === '3') {
  106 + if (this.radioValue === 3) {
107 107 this.$emit('update', 'day', this.cycleTotal);
108 108 }
109 109 },
110 110 // 平均两个值变化时
111 111 averageChange() {
112   - if (this.radioValue === '4') {
  112 + if (this.radioValue === 4) {
113 113 this.$emit('update', 'day', this.averageTotal);
114 114 }
115 115 },
116 116 // 最近工作日值变化时
117 117 workdayChange() {
118   - if (this.radioValue === '5') {
  118 + if (this.radioValue === 5) {
119 119 this.$emit('update', 'day', this.workdayCheck + 'W');
120 120 }
121 121 },
122 122 // checkbox值变化时
123 123 checkboxChange() {
124   - if (this.radioValue === '7') {
  124 + if (this.radioValue === 7) {
125 125 this.$emit('update', 'day', this.checkboxString);
126 126 }
127 127 }
... ...
yudao-ui-admin/src/components/Crontab/hour.vue
... ... @@ -68,19 +68,19 @@ export default {
68 68 },
69 69 // 周期两个值变化时
70 70 cycleChange() {
71   - if (this.radioValue === '2') {
  71 + if (this.radioValue === 2) {
72 72 this.$emit('update', 'hour', this.cycleTotal);
73 73 }
74 74 },
75 75 // 平均两个值变化时
76 76 averageChange() {
77   - if (this.radioValue === '3') {
  77 + if (this.radioValue === 3) {
78 78 this.$emit('update', 'hour', this.averageTotal);
79 79 }
80 80 },
81 81 // checkbox值变化时
82 82 checkboxChange() {
83   - if (this.radioValue === '4') {
  83 + if (this.radioValue === 4) {
84 84 this.$emit('update', 'hour', this.checkboxString);
85 85 }
86 86 }
... ...
yudao-ui-admin/src/components/Crontab/min.vue
... ... @@ -69,19 +69,19 @@ export default {
69 69 },
70 70 // 周期两个值变化时
71 71 cycleChange() {
72   - if (this.radioValue === '2') {
  72 + if (this.radioValue === 2) {
73 73 this.$emit('update', 'min', this.cycleTotal, 'min');
74 74 }
75 75 },
76 76 // 平均两个值变化时
77 77 averageChange() {
78   - if (this.radioValue === '3') {
  78 + if (this.radioValue === 3) {
79 79 this.$emit('update', 'min', this.averageTotal, 'min');
80 80 }
81 81 },
82 82 // checkbox值变化时
83 83 checkboxChange() {
84   - if (this.radioValue === '4') {
  84 + if (this.radioValue === 4) {
85 85 this.$emit('update', 'min', this.checkboxString, 'min');
86 86 }
87 87 },
... ...
yudao-ui-admin/src/components/Crontab/month.vue
... ... @@ -68,19 +68,19 @@ export default {
68 68 },
69 69 // 周期两个值变化时
70 70 cycleChange() {
71   - if (this.radioValue === '2') {
  71 + if (this.radioValue === 2) {
72 72 this.$emit('update', 'month', this.cycleTotal);
73 73 }
74 74 },
75 75 // 平均两个值变化时
76 76 averageChange() {
77   - if (this.radioValue === '3') {
  77 + if (this.radioValue === 3) {
78 78 this.$emit('update', 'month', this.averageTotal);
79 79 }
80 80 },
81 81 // checkbox值变化时
82 82 checkboxChange() {
83   - if (this.radioValue === '4') {
  83 + if (this.radioValue === 4) {
84 84 this.$emit('update', 'month', this.checkboxString);
85 85 }
86 86 }
... ...
yudao-ui-admin/src/components/Crontab/second.vue
... ... @@ -68,19 +68,19 @@ export default {
68 68 },
69 69 // 周期两个值变化时
70 70 cycleChange() {
71   - if (this.radioValue === '2') {
  71 + if (this.radioValue === 2) {
72 72 this.$emit('update', 'second', this.cycleTotal);
73 73 }
74 74 },
75 75 // 平均两个值变化时
76 76 averageChange() {
77   - if (this.radioValue === '3') {
  77 + if (this.radioValue === 3) {
78 78 this.$emit('update', 'second', this.averageTotal);
79 79 }
80 80 },
81 81 // checkbox值变化时
82 82 checkboxChange() {
83   - if (this.radioValue === '4') {
  83 + if (this.radioValue === 4) {
84 84 this.$emit('update', 'second', this.checkboxString);
85 85 }
86 86 }
... ...
yudao-ui-admin/src/components/Crontab/week.vue
... ... @@ -144,25 +144,25 @@ export default {
144 144  
145 145 // 周期两个值变化时
146 146 cycleChange() {
147   - if (this.radioValue === '3') {
  147 + if (this.radioValue === 3) {
148 148 this.$emit('update', 'week', this.cycleTotal);
149 149 }
150 150 },
151 151 // 平均两个值变化时
152 152 averageChange() {
153   - if (this.radioValue === '4') {
  153 + if (this.radioValue === 4) {
154 154 this.$emit('update', 'week', this.averageTotal);
155 155 }
156 156 },
157 157 // 最近工作日值变化时
158 158 weekdayChange() {
159   - if (this.radioValue === '5') {
  159 + if (this.radioValue === 5) {
160 160 this.$emit('update', 'week', this.weekday + 'L');
161 161 }
162 162 },
163 163 // checkbox值变化时
164 164 checkboxChange() {
165   - if (this.radioValue === '6') {
  165 + if (this.radioValue === 6) {
166 166 this.$emit('update', 'week', this.checkboxString);
167 167 }
168 168 },
... ...
yudao-ui-admin/src/components/Crontab/year.vue
... ... @@ -79,19 +79,19 @@ export default {
79 79 },
80 80 // 周期两个值变化时
81 81 cycleChange() {
82   - if (this.radioValue === '3') {
  82 + if (this.radioValue === 3) {
83 83 this.$emit('update', 'year', this.cycleTotal);
84 84 }
85 85 },
86 86 // 平均两个值变化时
87 87 averageChange() {
88   - if (this.radioValue === '4') {
  88 + if (this.radioValue === 4) {
89 89 this.$emit('update', 'year', this.averageTotal);
90 90 }
91 91 },
92 92 // checkbox值变化时
93 93 checkboxChange() {
94   - if (this.radioValue === '5') {
  94 + if (this.radioValue === 5) {
95 95 this.$emit('update', 'year', this.checkboxString);
96 96 }
97 97 }
... ...