|
@@ -120,8 +120,7 @@
|
120
|
120
|
type="daterange"
|
121
|
121
|
range-separator="至"
|
122
|
122
|
start-placeholder="开始日期"
|
123
|
|
- end-placeholder="结束日期"
|
124
|
|
- :picker-options="pickerOptions">
|
|
123
|
+ end-placeholder="结束日期">
|
125
|
124
|
</el-date-picker>
|
126
|
125
|
</div>
|
127
|
126
|
</div>
|
|
@@ -285,17 +284,17 @@ export default {
|
285
|
284
|
defaultCaseId: x => x.app.cases.default,
|
286
|
285
|
OrgId: x => x.app.user.OrgId,
|
287
|
286
|
}),
|
288
|
|
- pickerOptions () {
|
289
|
|
- const courseId = this.cardInfo.Targets[0].TargetId
|
290
|
|
- const couse = (this.courseList || []).filter(x => x.CourseId === courseId)[0] || {}
|
291
|
|
- const beginDate = new Date(couse.BeginDate).getTime()
|
292
|
|
- const endDate = new Date(couse.EndDate).getTime()
|
293
|
|
- return {
|
294
|
|
- disabledDate (time) {
|
295
|
|
- return time.getTime() < beginDate || time.getTime() > endDate
|
296
|
|
- }
|
297
|
|
- }
|
298
|
|
- },
|
|
287
|
+ // pickerOptions () {
|
|
288
|
+ // const courseId = this.cardInfo.Targets[0].TargetId
|
|
289
|
+ // const couse = (this.courseList || []).filter(x => x.CourseId === courseId)[0] || {}
|
|
290
|
+ // const beginDate = new Date(couse.BeginDate).getTime()
|
|
291
|
+ // const endDate = new Date(couse.EndDate).getTime()
|
|
292
|
+ // return {
|
|
293
|
+ // disabledDate (time) {
|
|
294
|
+ // return time.getTime() < beginDate || time.getTime() > endDate
|
|
295
|
+ // }
|
|
296
|
+ // }
|
|
297
|
+ // },
|
299
|
298
|
CaseId: {
|
300
|
299
|
get () {
|
301
|
300
|
return this.postData.caseid || this.defaultCaseId
|