|
@@ -2173,9 +2173,9 @@ export default {
|
|
|
},
|
|
|
table1: {
|
|
|
reportUnit: null,
|
|
|
- reportTimeY: null,
|
|
|
- reportTimeM: null,
|
|
|
- reportTimeD: null,
|
|
|
+ reportTimeY: new Date().getFullYear(),
|
|
|
+ reportTimeM: new Date().getMonth() + 1,
|
|
|
+ reportTimeD: new Date().getDate(),
|
|
|
forestFireLossTotal: null,
|
|
|
fireLossTotal: null,
|
|
|
forestArea: null,
|
|
@@ -2216,11 +2216,11 @@ export default {
|
|
|
fireSource: null,
|
|
|
fireType: null,
|
|
|
fireLevel: null,
|
|
|
- areaTotal: null,
|
|
|
+ areaTotal: 0,
|
|
|
forestLossAreaTotal: null,
|
|
|
originalForestArea: null,
|
|
|
artificialForestArea: null,
|
|
|
- peopleTotal: null,
|
|
|
+ peopleTotal: 0,
|
|
|
blazesTeamNumber: null,
|
|
|
policeNumber: null,
|
|
|
armyNumber: null,
|
|
@@ -2229,9 +2229,9 @@ export default {
|
|
|
secondTool: null,
|
|
|
waterGun: null,
|
|
|
elseThings: null,
|
|
|
- forestComposition: null,
|
|
|
- forestToken: null,
|
|
|
- porosities: null,
|
|
|
+ forestComposition: "无",
|
|
|
+ forestToken: "无",
|
|
|
+ porosities: "无",
|
|
|
weather: null,
|
|
|
temperature: null,
|
|
|
fireInsuranceLevel: null,
|
|
@@ -2851,15 +2851,15 @@ export default {
|
|
|
markersMap.icon = "sj-icon-map-centerdata-slmonitor";
|
|
|
} else if (res.data[i].cameraUse == 2) {
|
|
|
markersMap.icon = "camera";
|
|
|
- } else if (res.data[i].cameraUse == 3) {
|
|
|
- markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
|
|
|
- }
|
|
|
- else if (res.data[i].cameraUse == 4) {
|
|
|
- markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
|
|
|
- }
|
|
|
- else if (res.data[i].cameraUse == 5) {
|
|
|
- markersMap.icon = 'sj-icon-map-centerdata-t-hydraulic-reservoir'
|
|
|
- }
|
|
|
+ } else if (res.data[i].cameraUse == 3) {
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
|
|
|
+ }
|
|
|
+ else if (res.data[i].cameraUse == 4) {
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
|
|
|
+ }
|
|
|
+ else if (res.data[i].cameraUse == 5) {
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-t-hydraulic-reservoir-camera'
|
|
|
+ }
|
|
|
if (res.data[i].cameraCode != null) {
|
|
|
markersMap.click = "preview";
|
|
|
// markersMap.parameter = res.data[i].cameraCode
|
|
@@ -3740,15 +3740,16 @@ export default {
|
|
|
toImage() {
|
|
|
this.$message.success(`正在上传!请稍后...`);
|
|
|
// 手动创建一个 canvas 标签
|
|
|
+ debugger
|
|
|
const canvas = document.createElement("canvas");
|
|
|
// 获取父标签,意思是这个标签内的 DOM 元素生成图片
|
|
|
// imageTofile是给截图范围内的父级元素自定义的ref名称
|
|
|
// let canvasBox = this.$refs.imageTofile
|
|
|
let canvasBox = document.getElementById("forestWarmSuperMap");
|
|
|
- let toolbar = document.getElementById("toolbar");
|
|
|
- if (toolbar != null) {
|
|
|
- canvasBox.removeChild(toolbar);
|
|
|
- }
|
|
|
+ // let toolbar = document.getElementById("toolbar");
|
|
|
+ // if (toolbar != null) {
|
|
|
+ // canvasBox.removeChild(toolbar);
|
|
|
+ // }
|
|
|
// 获取父级的宽高
|
|
|
const width = parseInt(window.getComputedStyle(canvasBox).width);
|
|
|
const height = parseInt(window.getComputedStyle(canvasBox).height);
|
|
@@ -3770,7 +3771,7 @@ export default {
|
|
|
let dataBase64 = canvas.toDataURL("image/png");
|
|
|
this.uploadBase64(dataBase64);
|
|
|
});
|
|
|
- canvasBox.appendChild(toolbar);
|
|
|
+ // canvasBox.appendChild(toolbar);
|
|
|
},
|
|
|
uploadBase64(dataBase64) {
|
|
|
//事件详情截图直接上传日志
|