diff --git a/src/components/ruler.vue b/src/components/ruler.vue index e5a9404..6a6b273 100644 --- a/src/components/ruler.vue +++ b/src/components/ruler.vue @@ -28,7 +28,7 @@ -
+
+
+ + {{ index + 1 }} + +
@@ -107,11 +125,29 @@ const props = defineProps({ dotIndex: {type: Number, required: true}, dots1: {type: Array, required: true}, dotIndex1: {type: Number, required: true}, + dots2: {type: Array, required: true}, + dotIndex2: {type: Number, required: true}, dot1Show: {type: Boolean, required: true}, scan: {type: Boolean, required: true}, }) const boxContentX = ref(0) const boxContentY = ref(0) +const bgStyle = computed(() => { + console.log(differenceValue.value) + const scale = props.height / (differenceValue.value || props.height) + let centerPercent = 0 + if (scale === 1) { + centerPercent = 50 + } else { + centerPercent = (props.boxPos.y / props.height) * 100 + } + + + return { + backgroundSize: `100% ${589 * scale}px`, + backgroundPosition: `center ${centerPercent}%` + } +}) watch(() => JSON.stringify(props.boxPos), (newVal, oldVal) => { getBoxPos() getDistanceAndZoom() @@ -120,8 +156,11 @@ watch(() => JSON.stringify(props.boxPos), (newVal, oldVal) => { zoomScale(props.boxPos.y, 1) getBoxPos() } else { + differenceValue.value = 0 zoomScale(props.boxPos.y, 0) } + } else { + differenceValue.value = 0 } if (props.dotIndex >= 0) { getLineData('head', `dot${props.dotIndex + 1}`) @@ -129,6 +168,9 @@ watch(() => JSON.stringify(props.boxPos), (newVal, oldVal) => { if (props.dotIndex1 >= 0) { getLineData('head', `dota${props.dotIndex1 + 1}`) } + if (props.dotIndex2 >= 0) { + getLineData('head', `dotb${props.dotIndex2 + 1}`) + } }) onMounted(() => { getBoxPos() @@ -139,9 +181,12 @@ onMounted(() => { if (props.dotIndex1 >= 0) { getLineData('head', `dota${props.dotIndex1 + 1}`) } + if (props.dotIndex2 >= 0) { + getLineData('head', `dotb${props.dotIndex2 + 1}`) + } }) }) -watch(() => JSON.stringify([props.dotIndex, props.dotIndex1]), (newVal, oldVal) => { +watch(() => JSON.stringify([props.dotIndex, props.dotIndex1, props.dotIndex2]), (newVal, oldVal) => { getBoxPos() getDistanceAndZoom() if (distance1.value) { @@ -149,13 +194,19 @@ watch(() => JSON.stringify([props.dotIndex, props.dotIndex1]), (newVal, oldVal) zoomScale(props.boxPos.y, 1) getBoxPos() } else { + differenceValue.value = 0 zoomScale(props.boxPos.y, 0) } + } else { + differenceValue.value = 0 + } if (props.dotIndex >= 0) { getLineData('head', `dot${props.dotIndex + 1}`) } else if (props.dotIndex1 >= 0) { getLineData('head', `dota${props.dotIndex1 + 1}`) + } else if (props.dotIndex2 >= 0) { + getLineData('head', `dotb${props.dotIndex2 + 1}`) }else{ zoomScale(props.boxPos.y, 0) } @@ -177,6 +228,14 @@ const getDistanceAndZoom = () => { let a = dotx - carx let b = doty - cary distance1.value = Math.sqrt(a * a + b * b); + } else if (props.dotIndex2 >= 0) { + let dotx = props.dots2[props.dotIndex2].x + let doty = props.dots2[props.dotIndex2].y + let carx = props.boxPos.x + let cary = props.boxPos.y + let a = dotx - carx + let b = doty - cary + distance1.value = Math.sqrt(a * a + b * b); } else { distance1.value = 0 } @@ -239,6 +298,9 @@ function zoomScale(value, type) { if (props.dotIndex1 >= 0) { getLineData('head', `dota${props.dotIndex1 + 1}`) } + if (props.dotIndex2 >= 0) { + getLineData('head', `dotb${props.dotIndex2 + 1}`) + } }, 10) } @@ -249,6 +311,7 @@ function getAxisRange() { return {min: Math.min(...values), max: Math.max(...values)} } +const differenceValue = ref(0) const leftTicks = computed(() => { const arr = [] @@ -276,7 +339,7 @@ const leftTicks = computed(() => { let startValue = centerValue.value - half * step let endValue = centerValue.value + half * step - console.log(endValue - startValue) + differenceValue.value = endValue - startValue if (startValue < 0) { endValue += -startValue @@ -336,6 +399,7 @@ const ticks = computed(() => { height: 100%; background-color: #000; + .left { position: absolute; width: 40px; @@ -440,6 +504,9 @@ const ticks = computed(() => { background-color: #666; top: 0; left: 40px; + //background-image: url("@/assets/car.png"); + background-repeat: no-repeat; + background-size: 100% 100%; .dot { width: 20px; diff --git a/src/utils/api.json b/src/utils/api.json new file mode 100644 index 0000000..7954e64 --- /dev/null +++ b/src/utils/api.json @@ -0,0 +1,2062 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Sln.Fod", + "version": "1.0" + }, + "paths": { + "/api/Fod/PosSetting": { + "post": { + "tags": [ + "Fod" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FobSettting" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FobSettting" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FobSettting" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/GetSetting": { + "post": { + "tags": [ + "Fod" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FobSettting" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FobSettting" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FobSettting" + } + } + } + } + } + }, + "get": { + "tags": [ + "Fod" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FobSettting" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FobSettting" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FobSettting" + } + } + } + } + } + } + }, + "/api/Fod/InserDealObstacleModel": { + "post": { + "tags": [ + "Fod" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DealObstacleView" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/DealObstacleView" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/DealObstacleView" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/PostDealObstacleModel": { + "post": { + "tags": [ + "Fod" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ShildListView" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/ShildListView" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/ShildListView" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/DealObstacleViewFodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/DealObstacleViewFodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/DealObstacleViewFodResult" + } + } + } + } + } + } + }, + "/api/Fod/UpdateImage": { + "post": { + "tags": [ + "Fod" + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "files": { + "type": "array", + "items": { + "type": "string", + "format": "binary" + } + } + } + }, + "encoding": { + "files": { + "style": "form" + } + } + } + } + }, + "responses": { + "200": { + "description": "Success" + } + } + } + }, + "/api/Fod/ShildList": { + "post": { + "tags": [ + "Fod" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ShildListView" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/ShildListView" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/ShildListView" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodShieldModelFodPageResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModelFodPageResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModelFodPageResult" + } + } + } + } + } + } + }, + "/api/Fod/ShildListNoPage": { + "post": { + "tags": [ + "Fod" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ShildListView" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/ShildListView" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/ShildListView" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodShieldModel" + } + } + }, + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodShieldModel" + } + } + }, + "text/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodShieldModel" + } + } + } + } + } + } + } + }, + "/api/Fod/AddShild": { + "post": { + "tags": [ + "Fod" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModel" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModel" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModel" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/UpdateShild": { + "post": { + "tags": [ + "Fod" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModel" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModel" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModel" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/DeleteShild": { + "post": { + "tags": [ + "Fod" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModel" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModel" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodShieldModel" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/DelShildListById": { + "get": { + "tags": [ + "Fod" + ], + "parameters": [ + { + "name": "id", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/SelStatus": { + "get": { + "tags": [ + "Fod" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/StartWork": { + "get": { + "tags": [ + "Fod" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/StopWork": { + "get": { + "tags": [ + "Fod" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/RestartWork": { + "get": { + "tags": [ + "Fod" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/Fod/ShutDownWork": { + "get": { + "tags": [ + "Fod" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/InsertAir": { + "post": { + "tags": [ + "FodAirPort" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodAirPortModel" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodAirPortModel" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodAirPortModel" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/UpdateAir": { + "post": { + "tags": [ + "FodAirPort" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodAirPortModel" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodAirPortModel" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodAirPortModel" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/DeleteAir": { + "get": { + "tags": [ + "FodAirPort" + ], + "parameters": [ + { + "name": "id", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/GetAll": { + "get": { + "tags": [ + "FodAirPort" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodAirPortModelFodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodAirPortModelFodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodAirPortModelFodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/InsertArea": { + "post": { + "tags": [ + "FodAirPort" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodAreaModel" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodAreaModel" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodAreaModel" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/UpdateArea": { + "post": { + "tags": [ + "FodAirPort" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodAreaModel" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodAreaModel" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodAreaModel" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/DeleteArea": { + "get": { + "tags": [ + "FodAirPort" + ], + "parameters": [ + { + "name": "id", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/GetAllArea": { + "get": { + "tags": [ + "FodAirPort" + ], + "parameters": [ + { + "name": "airId", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodAreaModelFodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodAreaModelFodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodAreaModelFodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/InsertCListData": { + "post": { + "tags": [ + "FodAirPort" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodCData" + } + } + }, + "text/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodCData" + } + } + }, + "application/*+json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodCData" + } + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/UpdateCData": { + "post": { + "tags": [ + "FodAirPort" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodCData" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodCData" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodCData" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/UpdateFodScopeData": { + "post": { + "tags": [ + "FodAirPort" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodScopeData" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodScopeData" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodScopeData" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/DeleteCData": { + "get": { + "tags": [ + "FodAirPort" + ], + "parameters": [ + { + "name": "id", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/FodAirPort/GetAllCData": { + "get": { + "tags": [ + "FodAirPort" + ], + "parameters": [ + { + "name": "areaId", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodCDataFodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodCDataFodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodCDataFodResult" + } + } + } + } + } + } + }, + "/api/FodConfig/GetAll": { + "get": { + "tags": [ + "FodConfig" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodConfigModel" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodConfigModel" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodConfigModel" + } + } + } + } + } + } + }, + "/api/FodConfig/Add": { + "post": { + "tags": [ + "FodConfig" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodConfigModel" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodConfigModel" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FodConfigModel" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/ParasPos/GetParasPos": { + "get": { + "tags": [ + "ParasPos" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/ParasPostInI" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/ParasPostInI" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/ParasPostInI" + } + } + } + } + } + } + }, + "/api/ParasPos/GetParasSignalpro": { + "get": { + "tags": [ + "ParasPos" + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/ParasSignalproInI" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/ParasSignalproInI" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/ParasSignalproInI" + } + } + } + } + } + } + }, + "/api/ParasPos/SetParasPos": { + "post": { + "tags": [ + "ParasPos" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ParasPostInI" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/ParasPostInI" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/ParasPostInI" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/ParasPos/SetParasSignalpro": { + "post": { + "tags": [ + "ParasPos" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ParasSignalproInI" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/ParasSignalproInI" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/ParasSignalproInI" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FodResult" + } + } + } + } + } + } + }, + "/api/WeatherForecast/Get": { + "get": { + "tags": [ + "WeatherForecast" + ], + "operationId": "GetWeatherForecast", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WeatherForecast" + } + } + }, + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WeatherForecast" + } + } + }, + "text/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WeatherForecast" + } + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "DealObstacleView": { + "type": "object", + "properties": { + "longitude": { + "type": "number", + "format": "float" + }, + "latitude": { + "type": "number", + "format": "float" + }, + "strength": { + "type": "number", + "format": "float" + }, + "findTime": { + "type": "string", + "nullable": true + }, + "files": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "DealObstacleViewFodResult": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "nowTime": { + "type": "string", + "nullable": true + }, + "msg": { + "type": "string", + "nullable": true + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DealObstacleView" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "DectectionView": { + "type": "object", + "properties": { + "alpha": { + "type": "number", + "format": "float" + }, + "decstartr": { + "type": "integer", + "format": "int32" + }, + "decwidth": { + "type": "integer", + "format": "int32" + }, + "sk_r": { + "type": "integer", + "format": "int32" + }, + "sk_a": { + "type": "integer", + "format": "int32" + }, + "lk_r": { + "type": "integer", + "format": "int32" + }, + "lk_a": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FobSettting": { + "type": "object", + "properties": { + "isNew": { + "type": "boolean", + "readOnly": true + }, + "deviation": { + "type": "number", + "format": "float" + }, + "shielding": { + "type": "number", + "format": "float" + } + }, + "additionalProperties": false + }, + "FodAirPortModel": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + }, + "isDel": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FodAirPortModelFodResult": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "nowTime": { + "type": "string", + "nullable": true + }, + "msg": { + "type": "string", + "nullable": true + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodAirPortModel" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "FodAreaModel": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + }, + "isDel": { + "type": "integer", + "format": "int32" + }, + "fodAirId": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FodAreaModelFodResult": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "nowTime": { + "type": "string", + "nullable": true + }, + "msg": { + "type": "string", + "nullable": true + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodAreaModel" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "FodCData": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + }, + "lon": { + "type": "number", + "format": "float" + }, + "lat": { + "type": "number", + "format": "float" + }, + "isDel": { + "type": "integer", + "format": "int32" + }, + "fodAreaId": { + "type": "integer", + "format": "int32" + }, + "fodAirId": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FodCDataFodResult": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "nowTime": { + "type": "string", + "nullable": true + }, + "msg": { + "type": "string", + "nullable": true + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodCData" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "FodConfigModel": { + "type": "object", + "properties": { + "strength": { + "type": "number", + "format": "float" + }, + "scope": { + "type": "number", + "format": "float" + } + }, + "additionalProperties": false + }, + "FodResult": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "nowTime": { + "type": "string", + "nullable": true + }, + "msg": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FodScopeData": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "aLon": { + "type": "number", + "format": "float" + }, + "aLat": { + "type": "number", + "format": "float" + }, + "bLon": { + "type": "number", + "format": "float" + }, + "bLat": { + "type": "number", + "format": "float" + }, + "cLon": { + "type": "number", + "format": "float" + }, + "cLat": { + "type": "number", + "format": "float" + }, + "dLon": { + "type": "number", + "format": "float" + }, + "dLat": { + "type": "number", + "format": "float" + } + }, + "additionalProperties": false + }, + "FodShieldModel": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + }, + "lon": { + "type": "number", + "format": "float" + }, + "lat": { + "type": "number", + "format": "float" + }, + "deviation": { + "type": "number", + "format": "float" + }, + "shielding": { + "type": "number", + "format": "float" + }, + "strength": { + "type": "number", + "format": "float" + } + }, + "additionalProperties": false + }, + "FodShieldModelFodPageResult": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "nowTime": { + "type": "string", + "nullable": true + }, + "msg": { + "type": "string", + "nullable": true + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FodShieldModel" + }, + "nullable": true + }, + "pageIndex": { + "type": "integer", + "format": "int32" + }, + "pageSize": { + "type": "integer", + "format": "int32" + }, + "totalCount": { + "type": "integer", + "format": "int32" + }, + "totalPage": { + "type": "integer", + "format": "int32", + "readOnly": true + } + }, + "additionalProperties": false + }, + "ImagingView": { + "type": "object", + "properties": { + "imaging_rangemin": { + "type": "integer", + "format": "int32" + }, + "imaging_rangemax": { + "type": "integer", + "format": "int32" + }, + "imaging_rangeres": { + "type": "number", + "format": "float" + }, + "imaging_azimuthlength": { + "type": "integer", + "format": "int32" + }, + "imaging_azimuthres": { + "type": "number", + "format": "float" + } + }, + "additionalProperties": false + }, + "ParasPostInI": { + "type": "object", + "properties": { + "runwaynum": { + "$ref": "#/components/schemas/RunwaynumView" + }, + "runwayedges": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RunwayedgeView" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "ParasSignalproInI": { + "type": "object", + "properties": { + "imaging": { + "$ref": "#/components/schemas/ImagingView" + }, + "dectection": { + "$ref": "#/components/schemas/DectectionView" + } + }, + "additionalProperties": false + }, + "RunwayedgeView": { + "type": "object", + "properties": { + "startpos_lon_a": { + "type": "number", + "format": "float" + }, + "startpos_lat_a": { + "type": "number", + "format": "float" + }, + "startpos_alt_a": { + "type": "number", + "format": "float" + }, + "startpos_lon_b": { + "type": "number", + "format": "float" + }, + "startpos_lat_b": { + "type": "number", + "format": "float" + }, + "startpos_alt_b": { + "type": "number", + "format": "float" + }, + "startpos_ori": { + "type": "number", + "format": "float" + } + }, + "additionalProperties": false + }, + "RunwaynumView": { + "type": "object", + "properties": { + "startpos_num": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "ShildListView": { + "type": "object", + "properties": { + "pageIndex": { + "type": "integer", + "format": "int32" + }, + "pageSize": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "WeatherForecast": { + "type": "object", + "properties": { + "date": { + "type": "string", + "format": "date-time" + }, + "temperatureC": { + "type": "integer", + "format": "int32" + }, + "temperatureF": { + "type": "integer", + "format": "int32", + "readOnly": true + }, + "summary": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + } + } + } +} \ No newline at end of file diff --git a/src/utils/tool.js b/src/utils/tool.js index 11c5781..0abc190 100644 --- a/src/utils/tool.js +++ b/src/utils/tool.js @@ -86,7 +86,7 @@ const correctDeviation = (e) => { } const parseTime = (time, pattern) => { - if (arguments.length === 0 || !time) { + if (!time) { return null; } const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}'; diff --git a/src/views/index.vue b/src/views/index.vue index c540bf2..e4f2346 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -73,6 +73,8 @@ :dotIndex="dotIndex" :dots1="dots1" :dotIndex1="dotIndex1" + :dots2="dots2" + :dotIndex2="dotIndex2" :dot1Show="dot1Show" :scan="scan" /> @@ -126,20 +128,20 @@ 启动雷达 关闭雷达 - 重启雷达 - 关闭雷达 + 重启雷达 + 关闭雷达 @@ -239,8 +241,14 @@ {{ (currentPage1 - 1) * pageSize1 + scope.$index + 1 }} - - + + + + - - + + + +