diff --git a/src/db.sqlite3 b/src/db.sqlite3 index cfe7579c4..71ca0c67b 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..ad688cc38 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.26", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "front", - "version": "0.0.24", + "version": "0.0.26", "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..a784d873c 100644 --- a/src/front/package.json +++ b/src/front/package.json @@ -1,6 +1,6 @@ { "name": "front", - "version": "0.0.24", + "version": "0.0.26", "scripts": { "dev": "vite", "build": "vite build", diff --git a/src/front/src/components/dialog-search.vue b/src/front/src/components/dialog-search.vue new file mode 100644 index 000000000..3d9460dc8 --- /dev/null +++ b/src/front/src/components/dialog-search.vue @@ -0,0 +1,189 @@ + + + + + \ No newline at end of file diff --git a/src/front/src/components/digital-letna.vue b/src/front/src/components/digital-letna.vue index 928e71fdb..c005779de 100644 --- a/src/front/src/components/digital-letna.vue +++ b/src/front/src/components/digital-letna.vue @@ -22,9 +22,10 @@ {{x.position__name}} + - + + @@ -152,12 +158,12 @@ class="px-3" > Закрыть - + --> - @@ -165,7 +171,7 @@ class="px-3" > :menuGetUserDialog="menuGetUserDialog" :loging="iduser" @menusClose="menuGetUserDialog = false" /> - + --> @@ -179,35 +185,44 @@ class="px-3" > import {checkremote} from '@/utils/universal_functions' import { spravURL } from '@/utils/axios-api' import CardUsers from '@/components/cardUsers.vue' +import DialogSearch from './dialog-search.vue' export default { components: { - CardUsers + CardUsers, + DialogSearch }, setup(){ const t_baseCriteria = ref([]) const t_daily = ref('') const idpos = ref('') + const namepos = ref('') const dialogDetailRound = ref(false) - const t_dailyRound = ref('') - const dailyfiles = ref('') + const t_dailyRound = ref({}) + const dailyfiles = ref([]) const info = ref({}) const searchname = ref('') const menuGetUserDialog = ref(false) const iduser = ref('') + const result = ref({}) + const getcard = async (idus) => { menuGetUserDialog.value = true iduser.value = idus } - const detailRound = (pos) => { + const detailRound = (pos, name) => { idpos.value=pos + namepos.value=name dialogDetailRound.value=!dialogDetailRound.value - axiosApiInstance.get(`api/general_vacation/dailyload/?id=${pos}`).then(data => { + axiosApiInstance.get(`api/general_vacation/dailyload/?id=${pos}`).then(data => { t_dailyRound.value = data.data + + result.value=JSON.parse(JSON.stringify(data.data.daily)) + }) } @@ -237,25 +252,38 @@ export default { } - watch(()=> searchname.value,(newValue,oldValue)=>{ - - if(newValue){ - - axiosApiInstance.get(`api/general_vacation/dailyload/?id=${idpos.value}&searchname=${newValue}`) - .then(data => { - - t_dailyRound.value = data.data - }) - } - else { - axiosApiInstance.get(`api/general_vacation/dailyload/?id=${idpos.value}`) - .then(data => { - - t_dailyRound.value = data.data - }) +// const filterItems = (query) => { +// console.log(t_dailyRound.value['daily'], '----------t_dailyRound.value'); - } - }, {deep:true}) + +// 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())) + +// if(myarr.length>0) +// { +// result.value[el1] = myarr +// } + + + +// } +// ) + +// } + +// watch(()=> searchname.value,(newValue,oldValue)=>{ + +// if(newValue){ +// filterItems(newValue) + +// } +// else { +// result.value = JSON.parse(JSON.stringify(t_dailyRound.value['daily'])) + + +// } +// }, {deep:true}) onMounted(() => { @@ -275,7 +303,10 @@ export default { spravURL, menuGetUserDialog, iduser, - getcard + getcard, + result, + idpos, + namepos } } diff --git a/src/front/src/components/load-round.vue b/src/front/src/components/load-round.vue index d913cc52d..b323875d1 100644 --- a/src/front/src/components/load-round.vue +++ b/src/front/src/components/load-round.vue @@ -5,7 +5,7 @@ - + -
+
+ + :href="x.link" + color="app_bar" + :target="x.link?'_blank':''" + >