修改日历信息
This commit is contained in:
parent
0c08cc27cb
commit
98334cc2bb
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue