JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_fix: bug

This commit is contained in:
杨航
2026-03-09 18:56:46 +08:00
parent de3e58758b
commit 874e07eab2
3 changed files with 13 additions and 4 deletions
+4 -2
View File
@@ -106,11 +106,13 @@
}
return _arr
})
onMounted(() => {
const initDate = () => {
nowDate.value = new Date()
activeDate.value = formatDate(nowDate.value, 'yyyy-MM-dd')
todayWeek.value = nowDate.value.getDay()
})
}
defineExpose({ initDate })
onMounted(() => {})
</script>
<style lang="scss" scoped>
+6 -1
View File
@@ -7,7 +7,7 @@
</view>
<view class="cont-box">
<!-- {{activeDate}} -->
<calendarCom @change="changeDate" />
<calendarCom ref="calendarComRef" @change="changeDate" />
<view class="table-list">
<todoItem
v-for="(item, index) in tableData"
@@ -38,6 +38,7 @@
page: 1,
limit: 10
});
const calendarComRef = ref(null)
const changeDate = (date) => {
activeDate.value = date;
getDataList(date, 1);
@@ -49,6 +50,9 @@
pageObj.value.page += 1;
getDataList(activeDate.value);
};
const initCalendar = () => {
calendarComRef.value && calendarComRef.value.initDate()
}
const getDataList = (date, flag) => {
common.loading();
if (flag === 1) {
@@ -151,6 +155,7 @@
});
}
};
defineExpose({initCalendar})
</script>
<style lang="scss" scoped>
+3 -1
View File
@@ -143,7 +143,7 @@
</view>
<classScroll :ref="(el) => (classScrollRef[1] = el)" name="recommend_class"></classScroll>
<classScroll :ref="(el) => (classScrollRef[2] = el)" name="new_class"></classScroll>
<toDoCom></toDoCom>
<toDoCom ref="toduRef"></toDoCom>
<view class="bottom_line">
<uv-divider text="我是有底线的" lineColor="#9cB0DC" :hairline="true"></uv-divider>
</view>
@@ -180,6 +180,7 @@
const no_read_message_num = ref(0);
const classScrollRef = ref([]);
const toduRef = ref(null)
// 处理显示的消息数量文本
const messageDisplayText = computed(() => {
return no_read_message_num.value > 99 ? '99+' : no_read_message_num.value;
@@ -333,6 +334,7 @@
statistics_data['get_statistics_data'](); // 获取统计数据
nextTick(() => {
classScrollRef.value.forEach((item) => item?.get_data());
toduRef.value.initCalendar()
});
noticeMessageCount().then((res) => {
no_read_message_num.value = res.body;