修改日历信息

This commit is contained in:
yangjun 2025-01-09 15:54:17 +08:00
parent 0c08cc27cb
commit 98334cc2bb
2 changed files with 19 additions and 15 deletions

View File

@ -35,10 +35,10 @@ const getListData = (value: Dayjs) => {
const onPanelChange = (value: Dayjs) => { const onPanelChange = (value: Dayjs) => {
tday.value = dateFormat(value, "yyyy-MM"); tday.value = dateFormat(value, "yyyy-MM");
getRiliList(tday.value)
}; };
// //
function handleKecheng(record) { function handleKecheng(record) {
console.log(`🚀 ~ openKecheng ~ record:`, record);
var jgh = record.jgh.split(",")[0]; var jgh = record.jgh.split(",")[0];
// defHttp.post({ url: '/zyDbtx/zyDbtx/deleteByRwbhCreate', params: { rwbh: record.rwbh, fbr: jgh } }).then((res) => { // defHttp.post({ url: '/zyDbtx/zyDbtx/deleteByRwbhCreate', params: { rwbh: record.rwbh, fbr: jgh } }).then((res) => {
// loaddata(); // loaddata();
@ -46,15 +46,20 @@ function handleKecheng(record) {
var url = '/stuzy/StudentGonggaoList?rwbh=' + record.rwbh + '&xqxn=' + record.xnxq + "&teano=" + record.jgh; var url = '/stuzy/StudentGonggaoList?rwbh=' + record.rwbh + '&xqxn=' + record.xnxq + "&teano=" + record.jgh;
window.open(url, '_blank'); window.open(url, '_blank');
} }
//
// function getRiliList(skrq){
onMounted(() => { studentKclist.value = []
tday.value = dateFormat(new Date(), "yyyy-MM"); defHttp.get({ url: '/ktgl/kcKetangbiao/getStudentRiliKclist' ,params:{skrq}}).then((res) => {
defHttp.get({ url: '/ktgl/kcKetangbiao/getStudentRiliKclist' }).then((res) => {
res.forEach(element => { res.forEach(element => {
studentKclist.value.push(element) studentKclist.value.push(element)
}); });
}); });
}
//
onMounted(() => {
tday.value = dateFormat(new Date(), "yyyy-MM");
getRiliList(tday.value)
}); });
</script> </script>

View File

@ -3,15 +3,15 @@
<div style="margin-top: 20px"> <div style="margin-top: 20px">
<span style="margin-left: 30px; font-size: 24px; font-weight: 600">我的课程</span> <span style="margin-left: 30px; font-size: 24px; font-weight: 600">我的课程</span>
</div> </div>
<!-- <div>
<studentRili></studentRili>
</div> -->
<div style="text-align: right; width: 100%; padding-right:20px;margin-top:30px"> <div style="text-align: right; width: 100%; padding-right:20px;margin-top:30px">
<a-switch style="margin-top:-60px" v-model:checked="checked1" checkedChildren="卡片" unCheckedChildren="列表" /> <a-switch style="margin-top:-60px" v-model:checked="checked1" checkedChildren="日历" unCheckedChildren="卡片" />
</div> </div>
<div v-if="checked1"> <div v-if="checked1">
<studentRili></studentRili>
</div>
<div v-if="!checked1">
<div style="min-height: 200px"> <div style="min-height: 200px">
<a-row> <a-row>
<a-col <a-col
@ -68,9 +68,8 @@
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
</div>
<div v-if="!checked1"> <!-- <div style="min-height: 200px">
<div style="min-height: 200px">
<a-row> <a-row>
<a-col :span="24" style="padding: 0 10px; margin-bottom: 10px" v-for="(item, index2) in dataSource" :key="index2"> <a-col :span="24" style="padding: 0 10px; margin-bottom: 10px" v-for="(item, index2) in dataSource" :key="index2">
<a-row> <a-row>
@ -87,7 +86,7 @@
<a-empty /> <a-empty />
</a-col> </a-col>
</a-row> </a-row>
</div> </div> -->
</div> </div>
</div> </div>
</template> </template>