n20-common-lib 2.12.4 → 2.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -154,7 +154,9 @@ export default {
|
|
|
154
154
|
},
|
|
155
155
|
get() {
|
|
156
156
|
if (this.value) {
|
|
157
|
-
return `${dayjs(this.value.startDate).year()} 年
|
|
157
|
+
return `${dayjs(this.value.startDate).year()} 年 第${this.getChinese(
|
|
158
|
+
dayjs(this.value.endDate).quarter()
|
|
159
|
+
)}季度`
|
|
158
160
|
} else {
|
|
159
161
|
return this.value
|
|
160
162
|
}
|
|
@@ -166,6 +168,26 @@ export default {
|
|
|
166
168
|
// this.getDefaultTime()
|
|
167
169
|
},
|
|
168
170
|
methods: {
|
|
171
|
+
getChinese(val) {
|
|
172
|
+
let value = ''
|
|
173
|
+
switch (val) {
|
|
174
|
+
case 1:
|
|
175
|
+
value = '一'
|
|
176
|
+
break
|
|
177
|
+
case 2:
|
|
178
|
+
value = '二'
|
|
179
|
+
break
|
|
180
|
+
case 3:
|
|
181
|
+
value = '三'
|
|
182
|
+
break
|
|
183
|
+
case 4:
|
|
184
|
+
value = '四'
|
|
185
|
+
break
|
|
186
|
+
default:
|
|
187
|
+
break
|
|
188
|
+
}
|
|
189
|
+
return value
|
|
190
|
+
},
|
|
169
191
|
prev() {
|
|
170
192
|
this.year = this.year * 1 - 1
|
|
171
193
|
},
|