代码提交

This commit is contained in:
何嘉峣 2023-01-13 16:50:57 +08:00
parent 3c0eb747fe
commit e5391b3093
34 changed files with 307 additions and 30 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"remainingRequest":"D:\\Hjm项目\\TransFlow\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\Hjm项目\\TransFlow\\src\\views\\index.vue","dependencies":[{"path":"D:\\Hjm项目\\TransFlow\\src\\views\\index.vue","mtime":1673518304371},{"path":"D:\\Hjm项目\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\Hjm项目\\TransFlow\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=a83bd3b0&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=a83bd3b0&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a83bd3b0\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"D:\\\\Hjm项目\\\\TransFlow\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('a83bd3b0')) {\n api.createRecord('a83bd3b0', component.options)\n } else {\n api.reload('a83bd3b0', component.options)\n }\n module.hot.accept(\"./index.vue?vue&type=template&id=a83bd3b0&scoped=true&\", function () {\n api.rerender('a83bd3b0', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/index.vue\"\nexport default component.exports"]} {"remainingRequest":"D:\\Hjm项目\\TransFlow\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\Hjm项目\\TransFlow\\src\\views\\index.vue","dependencies":[{"path":"D:\\Hjm项目\\TransFlow\\src\\views\\index.vue","mtime":1673575849760},{"path":"D:\\Hjm项目\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\Hjm项目\\TransFlow\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=a83bd3b0&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=a83bd3b0&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a83bd3b0\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"D:\\\\Hjm项目\\\\TransFlow\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('a83bd3b0')) {\n api.createRecord('a83bd3b0', component.options)\n } else {\n api.reload('a83bd3b0', component.options)\n }\n module.hot.accept(\"./index.vue?vue&type=template&id=a83bd3b0&scoped=true&\", function () {\n api.rerender('a83bd3b0', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/index.vue\"\nexport default component.exports"]}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"remainingRequest":"D:\\Hjm项目\\TransFlow\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\Hjm项目\\TransFlow\\src\\views\\bounced\\analysisConfiguration.vue","dependencies":[{"path":"D:\\Hjm项目\\TransFlow\\src\\views\\bounced\\analysisConfiguration.vue","mtime":1673518304375},{"path":"D:\\Hjm项目\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\Hjm项目\\TransFlow\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./analysisConfiguration.vue?vue&type=template&id=fd3d0d46&scoped=true&\"\nimport script from \"./analysisConfiguration.vue?vue&type=script&lang=js&\"\nexport * from \"./analysisConfiguration.vue?vue&type=script&lang=js&\"\nimport style0 from \"./analysisConfiguration.vue?vue&type=style&index=0&id=fd3d0d46&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"fd3d0d46\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"D:\\\\Hjm项目\\\\TransFlow\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('fd3d0d46')) {\n api.createRecord('fd3d0d46', component.options)\n } else {\n api.reload('fd3d0d46', component.options)\n }\n module.hot.accept(\"./analysisConfiguration.vue?vue&type=template&id=fd3d0d46&scoped=true&\", function () {\n api.rerender('fd3d0d46', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/bounced/analysisConfiguration.vue\"\nexport default component.exports"]} {"remainingRequest":"D:\\Hjm项目\\TransFlow\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\Hjm项目\\TransFlow\\src\\views\\bounced\\analysisConfiguration.vue","dependencies":[{"path":"D:\\Hjm项目\\TransFlow\\src\\views\\bounced\\analysisConfiguration.vue","mtime":1673597053892},{"path":"D:\\Hjm项目\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\Hjm项目\\TransFlow\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./analysisConfiguration.vue?vue&type=template&id=fd3d0d46&scoped=true&\"\nimport script from \"./analysisConfiguration.vue?vue&type=script&lang=js&\"\nexport * from \"./analysisConfiguration.vue?vue&type=script&lang=js&\"\nimport style0 from \"./analysisConfiguration.vue?vue&type=style&index=0&id=fd3d0d46&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"fd3d0d46\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"D:\\\\Hjm项目\\\\TransFlow\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('fd3d0d46')) {\n api.createRecord('fd3d0d46', component.options)\n } else {\n api.reload('fd3d0d46', component.options)\n }\n module.hot.accept(\"./analysisConfiguration.vue?vue&type=template&id=fd3d0d46&scoped=true&\", function () {\n api.rerender('fd3d0d46', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/bounced/analysisConfiguration.vue\"\nexport default component.exports"]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1 @@
http://172.16.1.168:5000

View File

@ -0,0 +1,24 @@
{
"code": 200,
"msg": "成功",
"data": {
"analysisSettingId": "e1af117da47e402d9b30e7cc499a158f",
"cameraPositionLongitude": "1",
"cameraPositionLatitude": "3",
"licensePlateRecognitionSwitch": "1",
"parkingDisplacement": 1,
"parkingSpeed": 6,
"coordinateTransformationId": "7ab32c790ec34b95a58e18b8bad8e46c",
"utmArea": 10,
"hemisphere": "南",
"coordinateTransformation": "其他",
"pointData": [{
"pointId": "b0c734bfa81f41d8909b74b983429146",
"pointName": "点2",
"longitude": "1",
"latitude": "1",
"imageXCoordinate": "440.7274 ",
"imageYCoordinate": "219.3819"
}]
}
}

View File

@ -0,0 +1,20 @@
{
"code": 200,
"msg": "成功",
"data": [{
"graphicId": "35fb0709596841e5b005fb1bc33a0fa4",
"graphicName": "测试区域",
"graphicType": "区域",
"coordinate": "218.6106 984.2285,453.5649 994.1006,267.9708 820.3528,218.6106 984.2285"
}, {
"graphicId": "957eb7cba61240f5a099ee6080bd29f0",
"graphicName": "测试路线2",
"graphicType": "轨迹",
"coordinate": "157.404 236.9287,179.1225 260.6216,192.9433 300.1097,202.8154 329.7258,214.6618 357.3675,222.5594 392.9068,236.3803 424.4973,258.0987 446.2157,289.6892 465.9598,317.3309 485.7039,350.8958 503.4735,382.4863 509.3967,420 517.2943,467.3858 521.2432,508.8483 525.192,556.234 525.192,599.671 525.192,631.2614 525.192,662.8519 513.3455,690.4936 499.5247,712.2121 477.8062,724.0585 444.2413,728.0073 412.6508,745.777 386.9836,775.3931 377.1115,806.9836 379.0859"
}, {
"graphicId": "7c24aa16e12840859164780d71827f5f",
"graphicName": "测试线2",
"graphicType": "断面",
"coordinate": "437.7697 642.6563,880.0366 737.4278"
}]
}

View File

@ -0,0 +1 @@
{"Keys":["com.unity.services.core.version"],"Values":[{"m_Value":"1.3.1","m_IsReadOnly":true}]}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

View File

@ -0,0 +1,16 @@
body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,160 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity WebGL Player | Painter</title>
<link rel="shortcut icon" href="TemplateData/favicon.ico">
<link rel="stylesheet" href="TemplateData/style.css">
<style>
body,html{
width: 100%;
height: 100%;
overflow: hidden;
}
</style>
</head>
<body>
<div id="unity-container" style="height: 100%;width: 100%;" class="unity-desktop">
<canvas id="unity-canvas" width=960 height=600></canvas>
<div id="unity-loading-bar">
<div id="unity-logo"></div>
<div id="unity-progress-bar-empty">
<div id="unity-progress-bar-full"></div>
</div>
</div>
<div id="unity-warning"> </div>
<div id="unity-footer" style="display: none;">
<div id="unity-webgl-logo"></div>
<div id="unity-fullscreen-button"></div>
<div id="unity-build-title">Painter</div>
</div>
</div>
<script>
var container = document.querySelector("#unity-container");
var canvas = document.querySelector("#unity-canvas");
var loadingBar = document.querySelector("#unity-loading-bar");
var progressBarFull = document.querySelector("#unity-progress-bar-full");
var fullscreenButton = document.querySelector("#unity-fullscreen-button");
var warningBanner = document.querySelector("#unity-warning");
// Shows a temporary message banner/ribbon for a few seconds, or
// a permanent error message on top of the canvas if type=='error'.
// If type=='warning', a yellow highlight color is used.
// Modify or remove this function to customize the visually presented
// way that non-critical warnings and error messages are presented to the
// user.
function unityShowBanner(msg, type) {
function updateBannerVisibility() {
warningBanner.style.display = warningBanner.children.length ? 'block' : 'none';
}
var div = document.createElement('div');
div.innerHTML = msg;
warningBanner.appendChild(div);
if (type == 'error') div.style = 'background: red; padding: 10px;';
else {
if (type == 'warning') div.style = 'background: yellow; padding: 10px;';
setTimeout(function() {
warningBanner.removeChild(div);
updateBannerVisibility();
}, 5000);
}
updateBannerVisibility();
}
var buildUrl = "Build";
var loaderUrl = buildUrl + "/APP.loader.js";
var config = {
dataUrl: buildUrl + "/APP.data.unityweb",
frameworkUrl: buildUrl + "/APP.framework.js.unityweb",
codeUrl: buildUrl + "/APP.wasm.unityweb",
streamingAssetsUrl: "StreamingAssets",
companyName: "DefaultCompany",
productName: "Painter",
productVersion: "0.1",
showBanner: unityShowBanner,
};
// By default Unity keeps WebGL canvas render target size matched with
// the DOM size of the canvas element (scaled by window.devicePixelRatio)
// Set this to false if you want to decouple this synchronization from
// happening inside the engine, and you would instead like to size up
// the canvas DOM size and WebGL render target sizes yourself.
// config.matchWebGLToCanvasSize = false;
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
// Mobile device style: fill the whole browser client area with the game canvas:
var meta = document.createElement('meta');
meta.name = 'viewport';
meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
document.getElementsByTagName('head')[0].appendChild(meta);
container.className = "unity-mobile";
// To lower canvas resolution on mobile devices to gain some
// performance, uncomment the following line:
// config.devicePixelRatio = 1;
canvas.style.width = window.innerWidth + 'px';
canvas.style.height = window.innerHeight + 'px';
unityShowBanner('WebGL builds are not supported on mobile devices.');
} else {
// Desktop style: Render the game canvas in a window that can be maximized to fullscreen:
canvas.style.width = "100%";
canvas.style.height = "100%";
}
loadingBar.style.display = "block";
var script = document.createElement("script");
var unityInstanceA
script.src = loaderUrl;
script.onload = () => {
createUnityInstance(canvas, config, (progress) => {
progressBarFull.style.width = 100 * progress + "%";
}).then((unityInstance) => {
unityInstanceA = unityInstance
loadingBar.style.display = "none";
fullscreenButton.onclick = () => {
unityInstance.SetFullscreen(1);
};
}).catch((message) => {
alert(message);
});
};
//unity初始化
function OnSceneLoaded(){
window.parent.OnSceneload();
}
function getDianwei(string){
unityInstanceA.SendMessage('GameManager','ReceptionVideoIdSececeTwo',JSON.stringify(string));
}
function setPOS(string){
console.log(string,'123');
unityInstanceA.SendMessage('GameManager','WebToUnityDot',JSON.stringify(string));
}
function saveDian(string){
console.log(string,'string');
unityInstanceA.SendMessage('GameManager','WebToUnitySave',JSON.stringify(string));
}
function ReceivingCoordinate(x,y,name){
var obj = {
imageXCoordinate:x,
imageYCoordinate:y,
pointName:name
}
window.parent.saveCoordinate(obj)
}
function deletePoint(string){
unityInstanceA.SendMessage('GameManager','WebToUnityDeletePont',JSON.stringify(string));
}
function exitPoint(string){
console.log(string,'11111111');
unityInstanceA.SendMessage('GameManager','WebToUnityPointModification',JSON.stringify(string));
}
document.body.appendChild(script);
</script>
</body>
</html>

View File

@ -53,10 +53,10 @@
<el-switch v-model="coordinateForm.coordinateClose"></el-switch> <el-switch v-model="coordinateForm.coordinateClose"></el-switch>
</el-form-item> --> </el-form-item> -->
<el-form-item label="UTM区" class="otherThings"> <el-form-item label="UTM区" class="otherThings">
<el-input-number v-model="coordinateForm.num" controls-position="right" size="small" @change="handleChange" :min="1" :max="60"></el-input-number> <el-input-number v-model="coordinateForm.num" controls-position="right" :precision="0" size="small" :min="1" :max="60"></el-input-number>
<div class="warning" style="margin:0px"> <div class="warning" style="margin:0px">
<i class="el-icon-warning" style="color: #409eff; margin: 0 3px 0 10px"></i <i class="el-icon-warning" style="color: #409eff; margin: 0 3px 0 10px"></i
>地理参照允许测量物理速度和静态图像源的距离 >地理参照允许测量物理速度和静态图像源的距离,值范围1-60
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="半球:" > <el-form-item label="半球:" >
@ -75,16 +75,13 @@
<el-radio label="其他"></el-radio> <el-radio label="其他"></el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<div style="width: 100%; height: 400px; margin-bottom: 10px" > <div style="width: 100%; height: 702px; margin-bottom: 10px" >
<iframe <iframe
id="mapModuleTop" ref="analysisWeb"
@load="load" src="./analysisWeb/index.html"
src="./VideoWeb/index.html"
frameborder="0" frameborder="0"
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
></iframe> ></iframe>
<!-- <iframe src="./VideoWeb/index.html" style="height: 100%; width: 100%;border: none"
ref="iframe"></iframe> -->
</div> </div>
<div class="warning"> <div class="warning">
<el-button <el-button
@ -103,17 +100,17 @@
</template> </template>
<el-table-column prop="pointName" label="点名称" align="center"> <el-table-column prop="pointName" label="点名称" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.pointName" maxlength="30" placeholder="请输入" /> <el-input :disabled="scope.row.btnShow == '1'?true:false" v-model="scope.row.pointName" maxlength="30" placeholder="请输入" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="longitude" label="经度" align="center"> <el-table-column prop="longitude" label="经度" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.longitude" maxlength="20" placeholder="请输入" /> <el-input :disabled="scope.row.btnShow == '1'?true:false" v-model="scope.row.longitude" maxlength="20" placeholder="请输入" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="latitude" label="纬度" align="center"> <el-table-column prop="latitude" label="纬度" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.latitude" maxlength="20" placeholder="请输入" /> <el-input :disabled="scope.row.btnShow == '1'?true:false" v-model="scope.row.latitude" maxlength="20" placeholder="请输入" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@ -122,9 +119,18 @@
size="mini" size="mini"
type="text" type="text"
style="color: #2090c1" style="color: #2090c1"
@click="handleUpdate(scope.row)" v-if="scope.row.btnShow == '1'?true:false"
@click="handleExit(scope.row,scope.$index)"
>编辑 >编辑
</el-button> </el-button>
<el-button
size="mini"
type="text"
style="color: #2090c1"
v-else
@click="handleconfirm(scope.row,scope.$index)"
>确认编辑
</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -460,6 +466,7 @@ import {getFeixpz,setCameraPosition,setLicensePlate,setParkingStatus,setFeixzbzh
export default { export default {
data() { data() {
return { return {
oldName:'',
formRules:{ formRules:{
pointName: [ pointName: [
{ required: true, message: '请输入点名称', trigger: 'blur' }, { required: true, message: '请输入点名称', trigger: 'blur' },
@ -636,18 +643,59 @@ export default {
getFeixpz({VideoId:this.$route.query.id}).then(res=>{ getFeixpz({VideoId:this.$route.query.id}).then(res=>{
this.sizeForm.longitude = res.data.data.cameraPositionLongitude this.sizeForm.longitude = res.data.data.cameraPositionLongitude
this.sizeForm.latitude = res.data.data.cameraPositionLatitude this.sizeForm.latitude = res.data.data.cameraPositionLatitude
this.coordinateForm.num = res.data.data.utmArea this.coordinateForm.num = res.data.data.utmArea=='-1'?'':res.data.data.utmArea
this.coordinateForm.value = res.data.data.hemisphere this.coordinateForm.value = res.data.data.hemisphere
this.coordinateForm.coordinateTransformation = res.data.data.coordinateTransformation this.coordinateForm.coordinateTransformation = res.data.data.coordinateTransformation
this.coordinateTableData = res.data.data.pointData this.coordinateTableData = res.data.data.pointData!=null?res.data.data.pointData:[]
this.licensePlateform.licensePlateClose = res.data.data.licensePlateRecognitionSwitch this.licensePlateform.licensePlateClose = res.data.data.licensePlateRecognitionSwitch
this.stopStateform.displacement = res.data.data.parkingDisplacement this.stopStateform.displacement = res.data.data.parkingDisplacement
this.stopStateform.speed = res.data.data.parkingSpeed this.stopStateform.speed = res.data.data.parkingSpeed
this.AnalysisSettingId = res.data.data.analysisSettingId this.AnalysisSettingId = res.data.data.analysisSettingId
this.coordinateTransformationId = res.data.data.coordinateTransformationId this.coordinateTransformationId = res.data.data.coordinateTransformationId
this.coordinateTableData.forEach(item=>{
item.btnShow='1'
})
}) })
},
mounted(){
window.OnSceneload = this.OnSceneload;
window.saveCoordinate = this.saveCoordinate;
}, },
methods: { methods: {
saveCoordinate(obj){
console.log(obj);
this.coordinateTableData.forEach(item=>{
if(item.pointName == obj.pointName){
item.imageXCoordinate=obj.imageXCoordinate
item.imageYCoordinate=obj.imageYCoordinate
}
})
},
handleExit(row,index){
this.oldName = row.pointName
this.$refs.analysisWeb.contentWindow.exitPoint(row.pointName)
this.coordinateTableData.forEach((item,index)=>{
if(row.pointName == item.pointName){
item.btnShow = '2'
this.$set(this.coordinateTableData,index,item)
}
})
},
handleconfirm(row,index){
var string = this.oldName+','+row.pointName
this.$refs.analysisWeb.contentWindow.saveDian(string)
this.coordinateTableData.forEach((item,indexnew)=>{
if(row.pointName == item.pointName){
item.btnShow = '1'
this.$set(this.coordinateTableData,indexnew,item)
}
})
},
OnSceneload(){
this.$refs.analysisWeb.contentWindow.getDianwei(this.$route.query.id)
},
handleDeleteDian(row){ handleDeleteDian(row){
this.$confirm('此操作将删除该点位, 是否继续?', '提示', { this.$confirm('此操作将删除该点位, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -655,6 +703,7 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.coordinateTableData = this.coordinateTableData.filter(item => item.pointName!=row.pointName ) this.coordinateTableData = this.coordinateTableData.filter(item => item.pointName!=row.pointName )
this.$refs.analysisWeb.contentWindow.deletePoint(row.pointName)
this.$message({ this.$message({
type: 'success', type: 'success',
message: '删除成功!' message: '删除成功!'
@ -670,9 +719,12 @@ export default {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
console.log(this.addDianForm,'addDianForm,,,'); console.log(this.addDianForm,'addDianForm,,,');
this.addDianForm.btnShow = '2'
this.oldName = this.addDianForm.pointName
this.coordinateTableData.unshift(this.addDianForm) this.coordinateTableData.unshift(this.addDianForm)
this.addDianForm={}
this.dialogVisible = false this.dialogVisible = false
this.$refs.analysisWeb.contentWindow.setPOS(this.addDianForm.pointName)
this.addDianForm={}
} else { } else {
return false; return false;
} }
@ -689,11 +741,12 @@ export default {
handlePos(){ handlePos(){
let params = { let params = {
CoordinateTransformationId:this.coordinateTransformationId, CoordinateTransformationId:this.coordinateTransformationId,
UTMArea:this.coordinateForm.num, UTMArea:this.coordinateForm.num==''?'-1':this.coordinateForm.num,
Hemisphere:this.coordinateForm.value, Hemisphere:this.coordinateForm.value,
CoordinateTransformation:this.coordinateForm.coordinateTransformation, CoordinateTransformation:this.coordinateForm.coordinateTransformation,
PointData:this.coordinateTableData PointData:this.coordinateTableData
} }
setFeixzbzh(params).then(res=>{ setFeixzbzh(params).then(res=>{
this.$message({ this.$message({
type: 'success', type: 'success',

View File

@ -374,7 +374,7 @@ export default {
// window.getModifyTheName = this.getModifyTheNameN; // window.getModifyTheName = this.getModifyTheNameN;
window.getSingleComponentId = this.getSingleComponentIdN; window.getSingleComponentId = this.getSingleComponentIdN;
window.getSimulationAreaEdit = this.getSimulationAreaEdit; window.getSimulationAreaEdit = this.getSimulationAreaEdit;
window.OnScene = this.OnSceneN; window.OnScene = this.OnSceneN;
this.getAllSectionalData(this.$route.query.id) this.getAllSectionalData(this.$route.query.id)
this.VideoId = this.$route.query.id this.VideoId = this.$route.query.id
this.number = this.$route.query.num this.number = this.$route.query.num