mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
远程管理错误修复
This commit is contained in:
parent
822736c806
commit
6e27f4e6fe
|
@ -42,7 +42,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="right-content">
|
<div class="right-content">
|
||||||
<div class="week-calendar">
|
<div class="week-calendar">
|
||||||
<WeekCalendar/>
|
<WeekCalendar @dataChange="planChange"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="system-logs" v-if="showLogMod">
|
<div class="system-logs" v-if="showLogMod">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
@ -97,7 +97,12 @@ function init() {
|
||||||
loadMsg();
|
loadMsg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function planChange() {
|
||||||
|
getTodoCount()
|
||||||
|
}
|
||||||
|
|
||||||
function getTodoCount() {
|
function getTodoCount() {
|
||||||
|
console.log(111111)
|
||||||
dailyPlanApi.getTodoCountByDate(dateFormater("yyyy-MM-dd", new Date())).then((res: any) => {
|
dailyPlanApi.getTodoCountByDate(dateFormater("yyyy-MM-dd", new Date())).then((res: any) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
todoTotal.value = res.data;
|
todoTotal.value = res.data;
|
||||||
|
|
|
@ -76,6 +76,8 @@ const recordWeek = ref([] as any);
|
||||||
const record = ref([] as any);
|
const record = ref([] as any);
|
||||||
const currentDate = ref<Date>(new Date());
|
const currentDate = ref<Date>(new Date());
|
||||||
|
|
||||||
|
const emits = defineEmits(["dataChange"])
|
||||||
|
|
||||||
onMounted(init)
|
onMounted(init)
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
@ -173,6 +175,7 @@ const remoteRecord = (item: any, index: number) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
ElMessage.success('删除成功!');
|
ElMessage.success('删除成功!');
|
||||||
setDate(item.date);
|
setDate(item.date);
|
||||||
|
emits("dataChange")
|
||||||
} else {
|
} else {
|
||||||
ElMessage.error(res.msg);
|
ElMessage.error(res.msg);
|
||||||
}
|
}
|
||||||
|
@ -183,6 +186,7 @@ const remoteRecord = (item: any, index: number) => {
|
||||||
}
|
}
|
||||||
const saveData = (e: any) => {
|
const saveData = (e: any) => {
|
||||||
setDate(new Date(e.date));
|
setDate(new Date(e.date));
|
||||||
|
emits("dataChange")
|
||||||
}
|
}
|
||||||
|
|
||||||
const planRemoveEvent = () => {
|
const planRemoveEvent = () => {
|
||||||
|
|
|
@ -373,6 +373,7 @@ function sliderSuccess() {
|
||||||
redirect: "/home"
|
redirect: "/home"
|
||||||
})
|
})
|
||||||
router.replace('/home')
|
router.replace('/home')
|
||||||
|
loading.value = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user