Commit cc86fffd by 李君

优化

1 parent 0e66488b
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<div class="manage-content"> <div class="manage-content">
<div class="asis-table-content" v-loading="loading"> <div class="asis-table-content" v-loading="loading">
<div class="xy-container"> <div class="xy-container">
<canvas id="editXycanvas" class="xycanvas"></canvas> <canvas id="cameraCanvas" class="xycanvas"></canvas>
</div> </div>
<canvas id='container' class="boxShadow"></canvas> <canvas id='container' class="boxShadow"></canvas>
</div> </div>
...@@ -48,8 +48,6 @@ ...@@ -48,8 +48,6 @@
data() { data() {
return { return {
editChannelImg:'', editChannelImg:'',
startTime:'',
endTime:'',
mallListForTerm: [], mallListForTerm: [],
areaListData: [], areaListData: [],
areaOneObj:{}, areaOneObj:{},
...@@ -63,11 +61,8 @@ ...@@ -63,11 +61,8 @@
}, },
canvas: null, //canvas实例 canvas: null, //canvas实例
ctx: null, //ctx画笔 ctx: null, //ctx画笔
widthX: 0, //缩放比例X
heightX: 0, //缩放比例Y
dataList: [], //点位坐标 dataList: [], //点位坐标
pic: null, pic: null,
channelNum:0,
deviceList:[], deviceList:[],
deviceObj:{}, deviceObj:{},
canvasDevice: null, //canvas实例 canvasDevice: null, //canvas实例
...@@ -81,7 +76,7 @@ ...@@ -81,7 +76,7 @@
this.ctx = this.canvas.getContext("2d"); this.ctx = this.canvas.getContext("2d");
this.canvas.width = document.body.clientWidth - 248; this.canvas.width = document.body.clientWidth - 248;
this.canvas.height = 380; this.canvas.height = 380;
this.canvasDevice = document.getElementById("editXycanvas"); this.canvasDevice = document.getElementById("cameraCanvas");
this.ctxDevice = this.canvasDevice.getContext("2d"); this.ctxDevice = this.canvasDevice.getContext("2d");
this.canvasDevice.width = 640; this.canvasDevice.width = 640;
this.canvasDevice.height = 360; this.canvasDevice.height = 360;
...@@ -119,7 +114,6 @@ ...@@ -119,7 +114,6 @@
mallChange(val) { mallChange(val) {
this.setSessionLocal("mallId", val); this.setSessionLocal("mallId", val);
this.searchForm.cashierAreaId = '' this.searchForm.cashierAreaId = ''
this.channelNum = 0
this.getAreaList(val) this.getAreaList(val)
// this.getOpenTime() // this.getOpenTime()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!