diff --git a/src/db.sqlite3 b/src/db.sqlite3
index 95ef41b8b..fc2bc1727 100644
Binary files a/src/db.sqlite3 and b/src/db.sqlite3 differ
diff --git a/src/front/package-lock.json b/src/front/package-lock.json
index cd6b08baf..a85c72627 100644
--- a/src/front/package-lock.json
+++ b/src/front/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "front",
- "version": "0.0.24",
+ "version": "0.0.25",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "front",
- "version": "0.0.24",
+ "version": "0.0.25",
"dependencies": {
"@fullcalendar/core": "^6.1.8",
"@fullcalendar/daygrid": "^6.1.8",
diff --git a/src/front/package.json b/src/front/package.json
index 0de8bdc87..1180841b2 100644
--- a/src/front/package.json
+++ b/src/front/package.json
@@ -1,6 +1,6 @@
{
"name": "front",
- "version": "0.0.24",
+ "version": "0.0.25",
"scripts": {
"dev": "vite",
"build": "vite build",
diff --git a/src/front/src/components/dialog-search.vue b/src/front/src/components/dialog-search.vue
index 60f171897..f36417dd4 100644
--- a/src/front/src/components/dialog-search.vue
+++ b/src/front/src/components/dialog-search.vue
@@ -15,7 +15,7 @@
- {{t_dailyRound.position}}
+ {{namepos}}
@@ -93,6 +93,10 @@ export default {
idpos: {
type: Number,
default: ''
+ },
+ namepos: {
+ type: Text,
+ default: ''
}
@@ -101,7 +105,7 @@ export default {
setup(props, {emit}){
const t_dailyRound = ref({})
- const result = ref({})
+ // const result = ref({})
const searchname = ref('')
@@ -111,53 +115,37 @@ export default {
}
onMounted(() => {
- detailRound(props.idpos)
+ axiosApiInstance.get(`api/general_vacation/dailyload/?id=${props.idpos}`).then(data => {
+ console.log(data.data);
+ t_dailyRound.value = data.data.daily
+
+
})
- const detailRound = (pos) => {
-
-
- axiosApiInstance.get(`api/general_vacation/dailyload/?id=${pos}`).then(data => {
- t_dailyRound.value = data.data
-
- result.value=JSON.parse(JSON.stringify(data.data.daily))
-
})
- }
-
- const filterItems = (query) => {
- console.log(props.idpos, '33333333333333333333333333333');
-
- result.value={}
- Object.keys(t_dailyRound.value['daily']).map(el1 => {
- let myarr = t_dailyRound.value['daily'][el1].filter((el) =>el.fio.toLowerCase().includes(query.toLowerCase()))
+
+
+
+ const result = computed({
+ get() {
+ let ob={}
+ Object.keys(t_dailyRound.value).map(el1 => {
+ let myarr = t_dailyRound.value[el1].filter((el) =>el.fio.toLowerCase().includes(searchname.value.toLowerCase()))
if(myarr.length>0)
{
- result.value[el1] = myarr
+ ob[el1] = myarr
}
-
-
-
+
}
)
-
- }
-
- watch(()=> searchname.value,(newValue,oldValue)=>{
-
- if(newValue){
- filterItems(newValue)
-
+ return ob
}
- else {
- result.value = JSON.parse(JSON.stringify(t_dailyRound.value['daily']))
-
+ })
- }
- }, {deep:true})
+
return {
onSubmit,
diff --git a/src/front/src/components/digital-letna.vue b/src/front/src/components/digital-letna.vue
index 8a8b379ed..48218304e 100644
--- a/src/front/src/components/digital-letna.vue
+++ b/src/front/src/components/digital-letna.vue
@@ -22,9 +22,10 @@
{{x.position__name}}
+