修正完了error

This commit is contained in:
2020-10-22 11:04:04 +08:00
parent 854ce7191c
commit ff85285fb4
22 changed files with 303 additions and 295 deletions

View File

@@ -219,14 +219,13 @@ export default defineComponent({
const week = ref<any>(getweek());
const userid = store.state.userinfo.memberid;
console.log(week.value);
getdates(userid);
function getdates(userid: number){
getdatelist(week.value.start, week.value.end, userid).then((res: any)=>{
console.log(res)
for(let i in res){
for(const i in res){
const day = getDay(res[i].dateline)
console.log(day)
for(let j in week.value.date){
for(const j in week.value.date){
console.log(getDay(week.value.date[j].day))
if(day == getDay(week.value.date[j].day)){
console.log("fuzhi")
@@ -240,6 +239,9 @@ export default defineComponent({
console.log(week.value)
})
}
getdates(userid);
watch(zhou, (value) => {
week.value = getweek(value);
console.log(week.value);