设置当前日期之前不可选择
This commit is contained in:
@@ -174,10 +174,11 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="add-form-item" label="会议时间:">
|
<el-form-item class="picker_style" style="margin-bottom: 0;min-height: 50px;line-height: 50px;border-bottom: 1px dashed #e5e5e5;" label="会议时间:">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="editMeetForm.date"
|
v-model="editMeetForm.date"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
|
:picker-options="datePicker"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
placeholder="选择日期时间"
|
placeholder="选择日期时间"
|
||||||
align="right">
|
align="right">
|
||||||
@@ -339,7 +340,13 @@ export default {
|
|||||||
// 议题选中时储存数组
|
// 议题选中时储存数组
|
||||||
deleteTable: [],
|
deleteTable: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
dialogTitle: ''
|
dialogTitle: '',
|
||||||
|
|
||||||
|
datePicker: {
|
||||||
|
disabledDate(date) {
|
||||||
|
return date.getTime() < Date.now() - 24 * 60 * 60 * 1000
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -819,6 +826,19 @@ export default {
|
|||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
|
||||||
.standCalendar {
|
.standCalendar {
|
||||||
|
.content_form {
|
||||||
|
/deep/.el-input--suffix .el-input__inner {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
label-input-form {
|
||||||
|
.picker_style {
|
||||||
|
margin-bottom: 0;
|
||||||
|
min-height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
border-bottom: 1px dashed #e5e5e5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.date-picker {
|
.date-picker {
|
||||||
.item {
|
.item {
|
||||||
/deep/ .el-input {
|
/deep/ .el-input {
|
||||||
@@ -874,6 +894,7 @@ export default {
|
|||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.card_info {
|
.card_info {
|
||||||
height: 190px;
|
height: 190px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="ch_pageData.meetingStartTime"
|
v-model="ch_pageData.meetingStartTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
|
:picker-options="datePicker"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
placeholder="选择日期时间"
|
placeholder="选择日期时间"
|
||||||
align="right">
|
align="right">
|
||||||
@@ -453,7 +454,13 @@ export default {
|
|||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
commentInfo: '',
|
commentInfo: '',
|
||||||
bpnId: ''
|
bpnId: '',
|
||||||
|
// 设置当前日期之前不可选择
|
||||||
|
datePicker: {
|
||||||
|
disabledDate(date) {
|
||||||
|
return date.getTime() < Date.now() - 24 * 60 * 60 * 1000
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user