修改日历信息

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

View File

@ -3,15 +3,15 @@
<div style="margin-top: 20px">
<span style="margin-left: 30px; font-size: 24px; font-weight: 600">我的课程</span>
</div>
<!-- <div>
<studentRili></studentRili>
</div> -->
<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 v-if="checked1">
<studentRili></studentRili>
</div>
<div v-if="!checked1">
<div style="min-height: 200px">
<a-row>
<a-col
@ -68,9 +68,8 @@
</a-col>
</a-row>
</div>
</div>
<div v-if="!checked1">
<div style="min-height: 200px">
<!-- <div style="min-height: 200px">
<a-row>
<a-col :span="24" style="padding: 0 10px; margin-bottom: 10px" v-for="(item, index2) in dataSource" :key="index2">
<a-row>
@ -87,7 +86,7 @@
<a-empty />
</a-col>
</a-row>
</div>
</div> -->
</div>
</div>
</template>