fix:日志开始/结束时间选择时不能超过当前时间
This commit is contained in:
parent
e6b945b152
commit
cc0c0bc6d4
|
@ -112,6 +112,7 @@
|
||||||
type="datetime"
|
type="datetime"
|
||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
:disabledDate="disabledDateFn"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -123,6 +124,7 @@
|
||||||
type="datetime"
|
type="datetime"
|
||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
:disabledDate="disabledDateFn"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -225,9 +227,10 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
title() {
|
title() {
|
||||||
return this.titleMap[this.mode];
|
return this.titleMap[this.mode];
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
emits: ["success", "closed"],
|
emits: ["success", "closed"],
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
@ -290,9 +293,12 @@ export default {
|
||||||
this.getEquipment();
|
this.getEquipment();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
disabledDateFn(time) {
|
||||||
|
return time.getTime() > new Date().getTime();
|
||||||
|
},
|
||||||
//获取
|
//获取
|
||||||
getUser() {
|
getUser() {
|
||||||
this.$API.system.user.list.req({depts: this.dept}).then((res) => {
|
this.$API.system.user.list.req({ depts: this.dept }).then((res) => {
|
||||||
this.userOptions = res.results;
|
this.userOptions = res.results;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue