fixed bug แจ้งเตือนขยายเวลาวินัย สืสวน สอบสวน
This commit is contained in:
parent
6b07c9694c
commit
42253e05df
2 changed files with 3 additions and 3 deletions
|
|
@ -139,7 +139,7 @@ const formData = reactive<FormData>({
|
||||||
const rows = ref([]);
|
const rows = ref([]);
|
||||||
const dateEndInputStyle = computed(() => {
|
const dateEndInputStyle = computed(() => {
|
||||||
if(formData.investigationDateStart){
|
if(formData.investigationDateStart){
|
||||||
const currentDate = new Date(formData.investigationDateStart as Date);
|
const currentDate = new Date();
|
||||||
const investigationDateEnd = new Date(formData.investigationDateEnd as Date);
|
const investigationDateEnd = new Date(formData.investigationDateEnd as Date);
|
||||||
|
|
||||||
const isInNext7Days =
|
const isInNext7Days =
|
||||||
|
|
|
||||||
|
|
@ -180,9 +180,9 @@ const emit = defineEmits(["submit:disciplinary"]);
|
||||||
|
|
||||||
const dateEndInputStyle = computed(() => {
|
const dateEndInputStyle = computed(() => {
|
||||||
if (formData.disciplinaryDateStart) {
|
if (formData.disciplinaryDateStart) {
|
||||||
const currentDate = new Date(formData.disciplinaryDateStart as Date);
|
const currentDate = new Date();
|
||||||
const investigationDateEnd = new Date(formData.disciplinaryDateEnd as Date);
|
const investigationDateEnd = new Date(formData.disciplinaryDateEnd as Date);
|
||||||
|
|
||||||
const isInNext7Days =
|
const isInNext7Days =
|
||||||
investigationDateEnd >= currentDate &&
|
investigationDateEnd >= currentDate &&
|
||||||
investigationDateEnd <=
|
investigationDateEnd <=
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue