Добавлена структура инспекции на VueFlow
This commit is contained in:
1 parent
45d86dde41
commit
5b5694a72a
11 files changed
+626
-19
No files matched your search
Generated
+247
@@ -10,6 +10,11 @@
|
||||
"dependencies": {
|
||||
"-": "^0.0.1",
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vue-flow/background": "^1.3.0",
|
||||
"@vue-flow/controls": "^1.1.1",
|
||||
"@vue-flow/core": "^1.33.5",
|
||||
"@vue-flow/minimap": "^1.4.0",
|
||||
"@vue-flow/node-resizer": "^1.3.6",
|
||||
"@vuelidate/core": "^2.0.3",
|
||||
"@vuelidate/validators": "^2.0.3",
|
||||
"adapter": "^1.0.0-beta.10",
|
||||
@@ -3578,6 +3583,11 @@
|
||||
"integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/web-bluetooth": {
|
||||
"version": "0.0.20",
|
||||
"resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz",
|
||||
"integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow=="
|
||||
},
|
||||
"node_modules/@types/yargs": {
|
||||
"version": "17.0.26",
|
||||
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.26.tgz",
|
||||
@@ -3783,6 +3793,64 @@
|
||||
"vue": "^3.2.25"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue-flow/background": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@vue-flow/background/-/background-1.3.0.tgz",
|
||||
"integrity": "sha512-fu/8s9wzSOQIitnSTI10XT3bzTtagh4h8EF2SWwtlDklOZjAaKy75lqv4htHa3wigy/r4LGCOGwLw3Pk88/AxA==",
|
||||
"peerDependencies": {
|
||||
"@vue-flow/core": "^1.23.0",
|
||||
"vue": "^3.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue-flow/controls": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue-flow/controls/-/controls-1.1.1.tgz",
|
||||
"integrity": "sha512-TCoRD5aYZQsM/N7QlPJcIILg1Gxm0O/zoUikxaeadcom1OlKFHutY72agsySJEWM6fTlyb7w8DYCbB4T8YbFoQ==",
|
||||
"peerDependencies": {
|
||||
"@vue-flow/core": "^1.23.0",
|
||||
"vue": "^3.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue-flow/core": {
|
||||
"version": "1.33.5",
|
||||
"resolved": "https://registry.npmjs.org/@vue-flow/core/-/core-1.33.5.tgz",
|
||||
"integrity": "sha512-Obo+KHmcww/NYGARMqVH1dhd42QeFzV+TNwytrjVgYCoMVCNjs/blCh437TYTsNy4vgX1NKpNwTbQrS+keurgA==",
|
||||
"dependencies": {
|
||||
"@vueuse/core": "^10.5.0",
|
||||
"d3-drag": "^3.0.0",
|
||||
"d3-selection": "^3.0.0",
|
||||
"d3-zoom": "^3.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vue": "^3.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue-flow/minimap": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@vue-flow/minimap/-/minimap-1.4.0.tgz",
|
||||
"integrity": "sha512-GetmN8uOQxIx4ja85VDnIwpZO5SnGIOfYSqUw8MRMbc8CdACun2M2e3FRaMZRaWapclU2ssXms4xHMWrA3YWpw==",
|
||||
"dependencies": {
|
||||
"d3-selection": "^3.0.0",
|
||||
"d3-zoom": "^3.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vue-flow/core": "^1.23.0",
|
||||
"vue": "^3.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue-flow/node-resizer": {
|
||||
"version": "1.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@vue-flow/node-resizer/-/node-resizer-1.3.6.tgz",
|
||||
"integrity": "sha512-xiq8wtuOYW+NqF+DVRvBXeUPwBS/RCBgBSv5N4Ahf1DlbePgXBYdFCJeyApj3uSiTI+JkBx7pl82ojnbeefOBg==",
|
||||
"dependencies": {
|
||||
"d3-drag": "^3.0.0",
|
||||
"d3-selection": "^3.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vue-flow/core": "^1.23.0",
|
||||
"vue": "^3.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue-leaflet/vue-leaflet": {
|
||||
"version": "0.10.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue-leaflet/vue-leaflet/-/vue-leaflet-0.10.1.tgz",
|
||||
@@ -4064,6 +4132,89 @@
|
||||
"vuetify": "^3.0.0-beta.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@vueuse/core": {
|
||||
"version": "10.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.9.0.tgz",
|
||||
"integrity": "sha512-/1vjTol8SXnx6xewDEKfS0Ra//ncg4Hb0DaZiwKf7drgfMsKFExQ+FnnENcN6efPen+1kIzhLQoGSy0eDUVOMg==",
|
||||
"dependencies": {
|
||||
"@types/web-bluetooth": "^0.0.20",
|
||||
"@vueuse/metadata": "10.9.0",
|
||||
"@vueuse/shared": "10.9.0",
|
||||
"vue-demi": ">=0.14.7"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/antfu"
|
||||
}
|
||||
},
|
||||
"node_modules/@vueuse/core/node_modules/vue-demi": {
|
||||
"version": "0.14.7",
|
||||
"resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.7.tgz",
|
||||
"integrity": "sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==",
|
||||
"hasInstallScript": true,
|
||||
"bin": {
|
||||
"vue-demi-fix": "bin/vue-demi-fix.js",
|
||||
"vue-demi-switch": "bin/vue-demi-switch.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/antfu"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vue/composition-api": "^1.0.0-rc.1",
|
||||
"vue": "^3.0.0-0 || ^2.6.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@vue/composition-api": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@vueuse/metadata": {
|
||||
"version": "10.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.9.0.tgz",
|
||||
"integrity": "sha512-iddNbg3yZM0X7qFY2sAotomgdHK7YJ6sKUvQqbvwnf7TmaVPxS4EJydcNsVejNdS8iWCtDk+fYXr7E32nyTnGA==",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/antfu"
|
||||
}
|
||||
},
|
||||
"node_modules/@vueuse/shared": {
|
||||
"version": "10.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.9.0.tgz",
|
||||
"integrity": "sha512-Uud2IWncmAfJvRaFYzv5OHDli+FbOzxiVEQdLCKQKLyhz94PIyFC3CHcH7EDMwIn8NPtD06+PNbC/PiO0LGLtw==",
|
||||
"dependencies": {
|
||||
"vue-demi": ">=0.14.7"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/antfu"
|
||||
}
|
||||
},
|
||||
"node_modules/@vueuse/shared/node_modules/vue-demi": {
|
||||
"version": "0.14.7",
|
||||
"resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.7.tgz",
|
||||
"integrity": "sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==",
|
||||
"hasInstallScript": true,
|
||||
"bin": {
|
||||
"vue-demi-fix": "bin/vue-demi-fix.js",
|
||||
"vue-demi-switch": "bin/vue-demi-switch.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/antfu"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vue/composition-api": "^1.0.0-rc.1",
|
||||
"vue": "^3.0.0-0 || ^2.6.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@vue/composition-api": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@webassemblyjs/ast": {
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz",
|
||||
@@ -6667,6 +6818,102 @@
|
||||
"resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.2.tgz",
|
||||
"integrity": "sha512-0sVXIohTfLqVIW3kb/0n6IiWF3Ifj5nm2XaSrLq2DI6fKIGa2fYAZdk917rUneaeLVpYfFcyXE2ft0fe3remsA=="
|
||||
},
|
||||
"node_modules/d3-color": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",
|
||||
"integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/d3-dispatch": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz",
|
||||
"integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/d3-drag": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz",
|
||||
"integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==",
|
||||
"dependencies": {
|
||||
"d3-dispatch": "1 - 3",
|
||||
"d3-selection": "3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/d3-ease": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz",
|
||||
"integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/d3-interpolate": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",
|
||||
"integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",
|
||||
"dependencies": {
|
||||
"d3-color": "1 - 3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/d3-selection": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz",
|
||||
"integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/d3-timer": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz",
|
||||
"integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/d3-transition": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz",
|
||||
"integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==",
|
||||
"dependencies": {
|
||||
"d3-color": "1 - 3",
|
||||
"d3-dispatch": "1 - 3",
|
||||
"d3-ease": "1 - 3",
|
||||
"d3-interpolate": "1 - 3",
|
||||
"d3-timer": "1 - 3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"d3-selection": "2 - 3"
|
||||
}
|
||||
},
|
||||
"node_modules/d3-zoom": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz",
|
||||
"integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==",
|
||||
"dependencies": {
|
||||
"d3-dispatch": "1 - 3",
|
||||
"d3-drag": "2 - 3",
|
||||
"d3-interpolate": "1 - 3",
|
||||
"d3-selection": "2 - 3",
|
||||
"d3-transition": "2 - 3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/dash-ast": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz",
|
||||
|
||||
@@ -12,6 +12,11 @@
|
||||
"dependencies": {
|
||||
"-": "^0.0.1",
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vue-flow/background": "^1.3.0",
|
||||
"@vue-flow/controls": "^1.1.1",
|
||||
"@vue-flow/core": "^1.33.5",
|
||||
"@vue-flow/minimap": "^1.4.0",
|
||||
"@vue-flow/node-resizer": "^1.3.6",
|
||||
"@vuelidate/core": "^2.0.3",
|
||||
"@vuelidate/validators": "^2.0.3",
|
||||
"adapter": "^1.0.0-beta.10",
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { VueFlow, useVueFlow } from '@vue-flow/core'
|
||||
import { ControlButton, Controls } from '@vue-flow/controls'
|
||||
import { Background } from '@vue-flow/background'
|
||||
import "@vue-flow/core/dist/style.css"
|
||||
import { initialEdges, initialNodes } from './structure_com/initial-elements'
|
||||
import Icon from './structure_com/Icon.vue'
|
||||
|
||||
/**
|
||||
* useVueFlow provides all event handlers and store properties
|
||||
* You can pass the composable an object that has the same properties as the VueFlow component props
|
||||
*/
|
||||
const { onPaneReady, onNodeDragStop, onConnect, addEdges, setViewport, toObject } = useVueFlow()
|
||||
defineProps(['label'])
|
||||
const nodes = ref(initialNodes)
|
||||
|
||||
const edges = ref(initialEdges)
|
||||
|
||||
// our dark mode toggle flag
|
||||
const dark = ref(false)
|
||||
|
||||
/**
|
||||
* This is a Vue Flow event-hook which can be listened to from anywhere you call the composable, instead of only on the main component
|
||||
* Any event that is available as `@event-name` on the VueFlow component is also available as `onEventName` on the composable and vice versa
|
||||
*
|
||||
* onPaneReady is called when viewpane & nodes have visible dimensions
|
||||
*/
|
||||
onPaneReady(({ fitView }) => {
|
||||
fitView()
|
||||
})
|
||||
|
||||
/**
|
||||
* onNodeDragStop is called when a node is done being dragged
|
||||
*
|
||||
* Node drag events provide you with:
|
||||
* 1. the event object
|
||||
* 2. the nodes array (if multiple nodes are dragged)
|
||||
* 3. the node that initiated the drag
|
||||
* 4. any intersections with other nodes
|
||||
*/
|
||||
onNodeDragStop(({ event, nodes, node, intersections }) => {
|
||||
console.log('Node Drag Stop', { event, nodes, node, intersections })
|
||||
})
|
||||
|
||||
/**
|
||||
* onConnect is called when a new connection is created.
|
||||
*
|
||||
* You can add additional properties to your new edge (like a type or label) or block the creation altogether by not calling `addEdges`
|
||||
*/
|
||||
onConnect((connection) => {
|
||||
addEdges(connection)
|
||||
})
|
||||
|
||||
/**
|
||||
* To update a node or multiple nodes, you can
|
||||
* 1. Mutate the node objects *if* you're using `v-model`
|
||||
* 2. Use the `updateNode` method (from `useVueFlow`) to update the node(s)
|
||||
* 3. Create a new array of nodes and pass it to the `nodes` ref
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Resets the current viewport transformation (zoom & pan)
|
||||
*/
|
||||
function resetTransform() {
|
||||
setViewport({ x: 0, y: 0, zoom: 1 })
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VueFlow :nodes="nodes" :edges="edges" :class="{ dark }" class="basicflow" :default-viewport="{ zoom: 1 }" :min-zoom="1"
|
||||
:max-zoom="1" fit-view-on-init>
|
||||
<Background bgColor="#ffff" />
|
||||
<Controls position="top-right">
|
||||
<ControlButton title="Reset Transform" @click="resetTransform">
|
||||
<Icon name="reset" />
|
||||
</ControlButton>
|
||||
</Controls>
|
||||
</VueFlow>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.up-bosses {
|
||||
width: 300px;
|
||||
border-radius: 5px;
|
||||
background-color: #ffff;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
font-size: .95em;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
|
||||
.bosses {
|
||||
width: 12%;
|
||||
padding: .5%;
|
||||
border-radius: 5px;
|
||||
background-color: #ffff;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
font-size: .95em;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,34 @@
|
||||
<script setup>
|
||||
defineProps({
|
||||
name: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<svg v-if="name === 'reset'" width="16" height="16" viewBox="0 0 32 32">
|
||||
<path d="M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10Z" />
|
||||
</svg>
|
||||
|
||||
<svg v-if="name === 'update'" width="16" height="16" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M14 20v-2h2.6l-3.2-3.2l1.425-1.425L18 16.55V14h2v6Zm-8.6 0L4 18.6L16.6 6H14V4h6v6h-2V7.4Zm3.775-9.425L4 5.4L5.4 4l5.175 5.175Z" />
|
||||
</svg>
|
||||
|
||||
<svg v-if="name === 'sun'" width="16" height="16" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M12 17q-2.075 0-3.537-1.463Q7 14.075 7 12t1.463-3.538Q9.925 7 12 7t3.538 1.462Q17 9.925 17 12q0 2.075-1.462 3.537Q14.075 17 12 17ZM2 13q-.425 0-.712-.288Q1 12.425 1 12t.288-.713Q1.575 11 2 11h2q.425 0 .713.287Q5 11.575 5 12t-.287.712Q4.425 13 4 13Zm18 0q-.425 0-.712-.288Q19 12.425 19 12t.288-.713Q19.575 11 20 11h2q.425 0 .712.287q.288.288.288.713t-.288.712Q22.425 13 22 13Zm-8-8q-.425 0-.712-.288Q11 4.425 11 4V2q0-.425.288-.713Q11.575 1 12 1t.713.287Q13 1.575 13 2v2q0 .425-.287.712Q12.425 5 12 5Zm0 18q-.425 0-.712-.288Q11 22.425 11 22v-2q0-.425.288-.712Q11.575 19 12 19t.713.288Q13 19.575 13 20v2q0 .425-.287.712Q12.425 23 12 23ZM5.65 7.05L4.575 6q-.3-.275-.288-.7q.013-.425.288-.725q.3-.3.725-.3t.7.3L7.05 5.65q.275.3.275.7q0 .4-.275.7q-.275.3-.687.287q-.413-.012-.713-.287ZM18 19.425l-1.05-1.075q-.275-.3-.275-.712q0-.413.275-.688q.275-.3.688-.287q.412.012.712.287L19.425 18q.3.275.288.7q-.013.425-.288.725q-.3.3-.725.3t-.7-.3ZM16.95 7.05q-.3-.275-.287-.688q.012-.412.287-.712L18 4.575q.275-.3.7-.288q.425.013.725.288q.3.3.3.725t-.3.7L18.35 7.05q-.3.275-.7.275q-.4 0-.7-.275ZM4.575 19.425q-.3-.3-.3-.725t.3-.7l1.075-1.05q.3-.275.713-.275q.412 0 .687.275q.3.275.288.688q-.013.412-.288.712L6 19.425q-.275.3-.7.287q-.425-.012-.725-.287Z" />
|
||||
</svg>
|
||||
|
||||
<svg v-if="name === 'moon'" width="16" height="16" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M12 21q-3.75 0-6.375-2.625T3 12q0-3.75 2.625-6.375T12 3q.35 0 .688.025q.337.025.662.075q-1.025.725-1.637 1.887Q11.1 6.15 11.1 7.5q0 2.25 1.575 3.825Q14.25 12.9 16.5 12.9q1.375 0 2.525-.613q1.15-.612 1.875-1.637q.05.325.075.662Q21 11.65 21 12q0 3.75-2.625 6.375T12 21Z" />
|
||||
</svg>
|
||||
|
||||
<svg v-if="name === 'log'" width="16" height="16" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M20 19V7H4v12h16m0-16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16m-7 14v-2h5v2h-5m-3.42-4L5.57 9H8.4l3.3 3.3c.39.39.39 1.03 0 1.42L8.42 17H5.59l3.99-4Z" />
|
||||
</svg>
|
||||
</template>
|
||||
@@ -0,0 +1,109 @@
|
||||
|
||||
|
||||
export const initialNodes = [
|
||||
{
|
||||
id: '1',
|
||||
class: 'up-bosses',
|
||||
label: '<p>Андрей Владимирович Бударин</p><p>Заместитель руководителя Федеральной Налоговой Службы</p>',
|
||||
position: { x: 590, y: 0 }
|
||||
},
|
||||
|
||||
{
|
||||
id: '2',
|
||||
class: 'up-bosses',
|
||||
label: '<p>Борис Борисович Толоко</p><p>Руководитель МИ ФНС России по ЦОД №2</p>',
|
||||
position: { x: 590, y: 100 }
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
class: 'bosses',
|
||||
label: '<p>Андреева Наталья Владимировна</p><p>Заместитель начальника</p>',
|
||||
position: { x: 0, y: 250 }
|
||||
},
|
||||
{
|
||||
id: '4',
|
||||
class: 'bosses',
|
||||
label: '<p>Ахкубеков Мухамат Алиевич</p><p>Заместитель начальника</p>',
|
||||
position: { x: 220, y: 250 }
|
||||
},
|
||||
{
|
||||
id: '5',
|
||||
class: 'bosses',
|
||||
label: '<p>Послухаев Артем Николаевич</p><p>Заместитель начальника</p>',
|
||||
position: { x: 440, y: 250 }
|
||||
},
|
||||
{
|
||||
id: '6',
|
||||
class: 'bosses',
|
||||
label: '<p>Общий отдел</p><p>Золина Татьяна Евгеньевна</p><p>Начальник</p> ',
|
||||
position: { x: 850, y: 250 }
|
||||
},
|
||||
{
|
||||
id: '7',
|
||||
class: 'bosses',
|
||||
label: '<p>Отдел кадров и безопасности</p><p>Фролова Ирина Николаевна</p><p>Начальник</p> ',
|
||||
position: { x: 1070, y: 250 }
|
||||
},
|
||||
{
|
||||
id: '8',
|
||||
class: 'bosses',
|
||||
label: '<p>Отдел управления качеством данных</p><p>Гончаров Церен Викторович</p><p>Начальник</p>',
|
||||
position: { x: 1290, y: 250 }
|
||||
},
|
||||
{
|
||||
id: '9',
|
||||
class: 'bosses',
|
||||
label: '<p>Отдел по сопровождению интернет-сервисов</p><p>Лосева Екатерина Владимировна</p><p>Начальник</p>',
|
||||
position: { x: 970, y: 600 }
|
||||
},
|
||||
|
||||
{
|
||||
id: '10',
|
||||
class: 'bosses',
|
||||
label: '<p>Отдел внедрения технологических процессов</p><p>Туркова Мария Николаевна</p><p>Начальник</p>',
|
||||
position: { x: 1170, y: 600 }
|
||||
},
|
||||
{
|
||||
id: '11',
|
||||
class: 'bosses',
|
||||
label: '<p>Отдел контроля технологических процессов</p><p>Михайлов Виктор Валентинович</p><p>Начальник</p>',
|
||||
position: { x: 680, y: 600 }
|
||||
},
|
||||
{
|
||||
id: '12',
|
||||
class: 'bosses',
|
||||
label: '<p>Отдел ведения ведомственной модели данных</p><p>Щедрин Владимир Дмитриевич</p><p>Начальник</p>',
|
||||
position: { x: 480, y: 600 }
|
||||
},
|
||||
{
|
||||
id: '13',
|
||||
class: 'bosses',
|
||||
label: '<p>Отдел развития личного кабинеита налогоплательщика физического лица</p><p>Романова Марина Александровна</p><p>И.О.начальника</p>',
|
||||
position: { x: 0, y: 600 }
|
||||
},
|
||||
{
|
||||
id: '14',
|
||||
class: 'bosses',
|
||||
label: '<p>Отдел обработки обращений граждан</p><p>Ванюшкина Наталья Николаевна</p><p>Начальник</p>',
|
||||
position: { x: 200, y: 600 }
|
||||
},
|
||||
|
||||
|
||||
]
|
||||
|
||||
export const initialEdges = [
|
||||
{ id: 'e1-2', type: 'step', source: '1', target: '2' },
|
||||
{ id: 'e2-3', type: 'step', source: '2', target: '3' },
|
||||
{ id: 'e2-4', type: 'step', source: '2', target: '4' },
|
||||
{ id: 'e2-5', type: 'step', source: '2', target: '5' },
|
||||
{ id: 'e2-6', type: 'step', source: '2', target: '6' },
|
||||
{ id: 'e2-7', type: 'step', source: '2', target: '7' },
|
||||
{ id: 'e2-8', type: 'step', source: '2', target: '8' },
|
||||
{ id: 'e5-9', source: '5', target: '9' },
|
||||
{ id: 'e5-10', source: '5', target: '10' },
|
||||
{ id: 'e4-11', source: '4', target: '11' },
|
||||
{ id: 'e4-12', source: '4', target: '12' },
|
||||
{ id: 'e3-13', source: '3', target: '13' },
|
||||
{ id: 'e3-14', source: '3', target: '14' },
|
||||
|
||||
]
|
||||
@@ -34,9 +34,11 @@
|
||||
<v-card-title class="text-h6 text-center text-uppercase">
|
||||
Штатная численность
|
||||
</v-card-title>
|
||||
<v-card-subtitle class="text-center">по состоянию на {{ date_now }}</v-card-subtitle>
|
||||
<v-card-subtitle class="text-center">по состоянию на
|
||||
{{ new Date(getstatesize.date_created).toLocaleDateString("ru-RU") }}
|
||||
</v-card-subtitle>
|
||||
<v-card-text class="text-h2 text-center mt-5 mb-5">
|
||||
80
|
||||
{{ getstatesize.statesize }}
|
||||
</v-card-text>
|
||||
<v-divider></v-divider>
|
||||
<v-card-title class="text-h6 text-center text-uppercase">
|
||||
@@ -44,7 +46,7 @@
|
||||
</v-card-title>
|
||||
<v-card-subtitle class="text-center">по состоянию на {{ date_now }}</v-card-subtitle>
|
||||
<v-card-text class="text-h2 text-center mt-5 mb-5">
|
||||
79
|
||||
{{ getfactsize.fact_size }}
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
@@ -59,9 +61,11 @@
|
||||
</v-card-title>
|
||||
<v-divider></v-divider>
|
||||
<v-row no-gutters class="d-flex justify-center">
|
||||
<v-col v-for="direction in direction_works" class=" mt-8 mb-8" lg="10">
|
||||
<v-banner class="text-h6" :icon="direction.icon">
|
||||
{{ direction.title }}
|
||||
<v-col v-for="(direction) in directionworks" :key="direction.id" class=" mt-8 mb-8"
|
||||
lg="10">
|
||||
|
||||
<v-banner class="text-h6" :icon="direction.icon_name">
|
||||
{{ direction.direction_title }}
|
||||
</v-banner>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -72,7 +76,7 @@
|
||||
|
||||
</v-window-item>
|
||||
<v-window-item no-gutters class="gap h-100" value="structureInspection">
|
||||
<h1>Структура инспекции</h1>
|
||||
<structure-inspection />
|
||||
</v-window-item>
|
||||
<v-window-item no-gutters class="gap h-100" value="openVacancies">
|
||||
<h1>Открытые вакансии</h1>
|
||||
@@ -114,17 +118,22 @@ import { spravURL, baseURL } from '@/utils/axios-api'
|
||||
import "leaflet/dist/leaflet.css";
|
||||
import { LMap, LTileLayer, LMarker } from "@vue-leaflet/vue-leaflet";
|
||||
import L from 'leaflet'
|
||||
import StructureInspection from '@/components/StructureInspection.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
LMap,
|
||||
LTileLayer,
|
||||
LMarker,
|
||||
L
|
||||
L,
|
||||
StructureInspection
|
||||
},
|
||||
|
||||
setup() {
|
||||
const userlinks = ref([])
|
||||
const getfactsize = ref('')
|
||||
const getstatesize = ref([])
|
||||
const directionworks = ref([])
|
||||
|
||||
const infouser = () => {
|
||||
axiosApiInstance.get('api/accounts/getuser/?userlogin=9966-00-001').then(res => {
|
||||
@@ -133,10 +142,37 @@ export default {
|
||||
|
||||
}
|
||||
|
||||
const getFactSize = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getfactsize/').then(res => {
|
||||
getfactsize.value = res.data
|
||||
})
|
||||
}
|
||||
|
||||
const getStateSize = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getstatesize/').then(res => {
|
||||
getstatesize.value = res.data
|
||||
})
|
||||
}
|
||||
|
||||
const getInspectionDirections = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getinspectiondirections/').then(res => {
|
||||
directionworks.value = res.data
|
||||
console.log(directionworks.value)
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
getInspectionDirections()
|
||||
getStateSize()
|
||||
getFactSize()
|
||||
infouser()
|
||||
return {
|
||||
directionworks,
|
||||
getstatesize,
|
||||
getfactsize,
|
||||
spravURL,
|
||||
baseURL,
|
||||
checkremote,
|
||||
@@ -153,13 +189,13 @@ export default {
|
||||
{ "title": "Структура инспекции", "value": "structureInspection" },
|
||||
{ "title": "Открытые вакансии", "value": "openVacancies" },
|
||||
{ "title": "Контактная информация", "value": "contactInfo" }],
|
||||
direction_works: [
|
||||
{ "icon": "mdi-laptop", "title": "Сопровождение и развитие внешнихи внутренних интерактивных сервисов ФНС России" },
|
||||
{ "icon": "mdi-lan", "title": "Поддержка пользователей информационной системы «Платформа поставки данных» ФНС России" },
|
||||
{ "icon": "mdi-microscope", "title": "Мониторинг качества данных, содержащихся в автоматизированной информационной системе ФНС России" },
|
||||
{ "icon": "mdi-magnify", "title": " Мониторинг качества и своевременности разработки/доработки паспортов функций технологических процессов ФНС России" },
|
||||
{ "icon": "mdi-account-multiple", "title": "Построение и сопровождение процессов обработки обращений граждан" },
|
||||
],
|
||||
// direction_works: [
|
||||
// { "icon": "mdi-laptop", "title": "Сопровождение и развитие внешнихи внутренних интерактивных сервисов ФНС России" },
|
||||
// { "icon": "mdi-lan", "title": "Поддержка пользователей информационной системы «Платформа поставки данных» ФНС России" },
|
||||
// { "icon": "mdi-microscope", "title": "Мониторинг качества данных, содержащихся в автоматизированной информационной системе ФНС России" },
|
||||
// { "icon": "mdi-magnify", "title": " Мониторинг качества и своевременности разработки/доработки паспортов функций технологических процессов ФНС России" },
|
||||
// { "icon": "mdi-account-multiple", "title": "Построение и сопровождение процессов обработки обращений граждан" },
|
||||
// ],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user