Поиск

This commit is contained in:
iriska-gri committed 2023-10-30 13:56:39 +03:00
1 parent 7cafcacc1f
commit 78f52780be
3 files changed
+27 -24

No files matched your search

+12 -2
View File
@@ -266,13 +266,23 @@ import {checkremote} from '@/utils/universal_functions'
const accountStore = useAccountStore()
watch(()=> searchname.value,(newValue,oldValue)=>{
console.log(newValue,'newValue', oldValue,'oldValue');
if(newValue){
axiosApiInstance.get(`api/general_vacation/dailyload/?id=${idpos.value}&searchname=${newValue}`)
.then(data => {
console.log(newValue);
// t_daily.value = data.data.daily
console.log(data.data);
t_dailyRound.value = data.data
})
}
else {
axiosApiInstance.get(`api/general_vacation/dailyload/?id=${idpos.value}`)
.then(data => {
console.log(data.data, '-----------------');
t_dailyRound.value = data.data
})
}
}, {deep:true})