Browse Source

日期表格哼

lwx_v27
herenshan112 3 months ago
parent
commit
fc3b5d17a5
  1. 8
      src/components/DesignForm/app/calendar/calendar1/dayPage.vue
  2. 8
      src/components/DesignForm/app/calendar/calendar1/monthPage.vue
  3. 6
      src/components/DesignForm/app/calendar/calendar1/weekPage.vue
  4. 2
      src/components/DesignForm/app/index.vue

8
src/components/DesignForm/app/calendar/calendar1/dayPage.vue

@ -62,7 +62,7 @@ onMounted(()=>{
watch(()=>props.taDay,(val:any)=>{ watch(()=>props.taDay,(val:any)=>{
dayInfo.value = Calendar.gainOneDay(val[0],val[1],val[2]) dayInfo.value = Calendar.gainOneDay(val[0],val[1],val[2])
// console.log("",dayInfo.value) console.log("监听变化",dayInfo.value)
searchatDayList(props.searchSend) searchatDayList(props.searchSend)
},{ },{
deep: true, deep: true,
@ -104,9 +104,9 @@ const searchatDayList = (val:any) => {
}) })
.finally(()=>{ loadDay.value = false }) .finally(()=>{ loadDay.value = false })
} }
defineExpose({ // defineExpose({
searchatDayList // searchatDayList
}) // })
</script> </script>
<template> <template>
<div class="monthCalendarBox" :style="'height:calc(100vh - '+ drawingBoardHeight +'px)'"> <div class="monthCalendarBox" :style="'height:calc(100vh - '+ drawingBoardHeight +'px)'">

8
src/components/DesignForm/app/calendar/calendar1/monthPage.vue

@ -41,7 +41,7 @@ const TBody = ref<any[]>([]);
const loadMonth = ref(false); const loadMonth = ref(false);
onMounted(() => { onMounted(() => {
TBody.value = Calendar.table(props.taDay); TBody.value = Calendar.table(props.taDay);
searchatMonthList(props.searchSend); // searchatMonthList(props.searchSend);
nextTick(() => { nextTick(() => {
selectedTime.value = selectedTime.value =
props.taDay[0] + props.taDay[0] +
@ -114,9 +114,9 @@ const searchatMonthList = (val: any) => {
}); });
}; };
defineExpose({ // defineExpose({
searchatMonthList, // searchatMonthList,
}); // });
</script> </script>
<template> <template>
<div <div

6
src/components/DesignForm/app/calendar/calendar1/weekPage.vue

@ -105,9 +105,9 @@ watch(()=>props.taDay,(val:any)=>{
deep: true, deep: true,
}) })
defineExpose({ // defineExpose({
searchatWeekList // searchatWeekList
}) // })
</script> </script>
<template> <template>
<div class="monthCalendarBox" :style="'height:calc(100vh - '+ drawingBoardHeight +'px)'"> <div class="monthCalendarBox" :style="'height:calc(100vh - '+ drawingBoardHeight +'px)'">

2
src/components/DesignForm/app/index.vue

@ -1814,7 +1814,7 @@ const tableChildren = (field:string,dataList:any) => {
if(Array.isArray(dataList)){ if(Array.isArray(dataList)){
dataList.forEach((item:any,key:string) => { dataList.forEach((item:any,key:string) => {
console.log("表头label长度-item--->",field, item); // console.log("label-item--->",field, item);
if(isObject(item)){ if(isObject(item)){
for (let key in item) { for (let key in item) {

Loading…
Cancel
Save