Поиск
This commit is contained in:
1 parent
7cafcacc1f
commit
78f52780be
3 files changed
+27
-24
No files matched your search
@@ -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})
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user