modified: .gitignore

This commit is contained in:
brusnitsyn
2026-04-21 10:08:14 +09:00
parent 0e8b6f61b4
commit 2041ab54ea
74 changed files with 7533 additions and 1544 deletions

View File

@@ -4,7 +4,6 @@ import ReportForm from "./Components/ReportForm.vue";
import {useReportStore} from "../../Stores/report.js";
import {computed, onMounted, watch} from "vue";
import {useAuthStore} from "../../Stores/auth.js";
import {NTag, NNumberAnimation} from 'naive-ui'
import StatisticRecipientPlanOfYear from "../../Layouts/Components/Statistic/StatisticRecipientPlanOfYear.vue";
const props = defineProps({
@@ -23,49 +22,19 @@ const props = defineProps({
dates: {
type: Object,
default: {}
},
patients: {
type: Object,
default: () => ({})
}
})
const reportStore = useReportStore()
const authStore = useAuthStore()
onMounted(() => {
const queryString = window.location.search
const params = new URLSearchParams(queryString)
const userId = params.get('userId')
const syncPageProps = () => reportStore.initializeFromPage(props)
reportStore.reportInfo.userId = userId
reportStore.reportInfo = {
...reportStore.reportInfo,
...props
}
reportStore.reportForm.metrika_item_3 = props.department.recipientCount
reportStore.reportForm.metrika_item_7 = props.department.extractCount
reportStore.reportForm.metrika_item_8 = props.department.currentCount
reportStore.reportForm.metrika_item_9 = props.department.deadCount
reportStore.reportForm.metrika_item_10 = props.department.surgicalCount[1]
reportStore.reportForm.metrika_item_11 = props.department.surgicalCount[0]
reportStore.reportForm.metrika_item_17 = props.department.countStaff
reportStore.unwantedEvents = props.report.unwantedEvents
if (props.report.isHeadOrAdmin) {
reportStore.timestampCurrentRange = [
props.dates.startAt,
props.dates.endAt,
]
} else {
reportStore.timestampCurrentRange = [
props.dates.endAt,
props.dates.endAt
]
}
// reportStore.getReportInfo()
})
onMounted(syncPageProps)
// reportStore.getReportInfo()
@@ -76,39 +45,10 @@ const mode = computed(() => {
})
watch(() => props, (newProps) => {
reportStore.reportInfo = {
...reportStore.reportInfo,
...newProps
}
if (newProps.report.isHeadOrAdmin) {
reportStore.reportInfo.userId = newProps.report.userId
}
reportStore.reportForm.metrika_item_3 = newProps.department.recipientCount
reportStore.reportForm.metrika_item_7 = newProps.department.extractCount
reportStore.reportForm.metrika_item_8 = newProps.department.currentCount
reportStore.reportForm.metrika_item_9 = newProps.department.deadCount
reportStore.reportForm.metrika_item_10 = newProps.department.surgicalCount[1]
reportStore.reportForm.metrika_item_11 = newProps.department.surgicalCount[0]
reportStore.unwantedEvents = newProps.report.unwantedEvents
if (props.report.isHeadOrAdmin) {
reportStore.timestampCurrentRange = [
props.dates.startAt,
props.dates.endAt,
]
} else {
reportStore.timestampCurrentRange = [
props.dates.endAt,
props.dates.endAt
]
}
reportStore.initializeFromPage(newProps)
}, {
deep: true, // важно для глубокого отслеживания
immediate: true // выполнить сразу при создании
deep: true,
immediate: true
})