MCPcopy Create free account
hub / github.com/CoderOpen/waimai / setMultiple

Method setMultiple

front/components/uni-calendar/util.js:280–304  ·  view source on GitHub ↗

* 获取多选状态

(fullDate)

Source from the content-addressed store, hash-verified

278 * 获取多选状态
279 */
280 setMultiple(fullDate) {
281 let {
282 before,
283 after
284 } = this.multipleStatus
285
286 if (!this.range) return
287 if (before && after) {
288 this.multipleStatus.before = ''
289 this.multipleStatus.after = ''
290 this.multipleStatus.data = []
291 } else {
292 if (!before) {
293 this.multipleStatus.before = fullDate
294 } else {
295 this.multipleStatus.after = fullDate
296 if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
297 this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
298 } else {
299 this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
300 }
301 }
302 }
303 this._getWeek(fullDate)
304 }
305
306 /**
307 * 获取每周数据

Callers

nothing calls this directly

Calls 3

dateCompareMethod · 0.95
geDateAllMethod · 0.95
_getWeekMethod · 0.95

Tested by

no test coverage detected