Commit 90e84082 by 周志凯

deleted log

1 parent 003e8dd9
......@@ -17,7 +17,6 @@
<!-- import JavaScript -->
<script src="./js/index.js"></script>
<script src="js/common.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/socket.js"></script>
</head>
<body>
......@@ -1139,7 +1138,6 @@
watch: {
accountVal: {
handler: function (val) {
console.log('accountVal-------->', val)
if(val && val.length) {
this.query.accountVal = val
}
......@@ -1161,7 +1159,6 @@
'rematchPerson': this.rematchPersonType
}
this.footerText = val === 'compare' ? '数据对比' : this.dateLevelList.find(item => item.label === val).name
console.log(this.socket)
this.socket && this.socket.close()
this.results.length && (this.results = [])
this.query.type = typeof typeHandler[val] === 'undefined'
......@@ -1179,7 +1176,6 @@
}
},
created: function() {
console.log('apiUrl-----', apiUrl)
this.locationHref =
location.href.indexOf("?super") != -1 ? true : false;
this.getAccount();
......@@ -1878,7 +1874,6 @@
const {
dateVal, mallVal, type
} = query
console.log('onSearchClick dateFormat', dateFormat)
var urlPath = TAB_API[dateFormat](type)
var scheduleType = dateFormat + type
var parameter = {
......@@ -1907,7 +1902,6 @@
var self = this,
wsUrl = webSockUrl || window.location.host,
socketUrl = "ws://" + wsUrl + "/recal/schedule/" + scheduleType
console.log('[socketUrl]:', socketUrl)
if ("WebSocket" in window) {
self.socket = new WebSocket(socketUrl);
} else if ("MozWebSocket" in window) {
......@@ -1940,29 +1934,6 @@
} catch (error) {
console.log('onSocketConnect:', error)
}
// self.socket = new ws(socketUrl)
// self.socket.onconnecting = function (ev) {
// console.log('socket:onconnecting', ev)
// }
// self.socket.onopen = function(ev) {
// console.log('socket:onopen', ev)
// self.startTiming = +new Date()
// self.fetchApi(callbackUrlPath, callbackParam)
// }
// self.socket.onclose = function(ev) {
// console.log('socket:onclose', ev)
// // log('WebSocket Closed!!')
// }
// self.socket.onmessage = function(ev) {
// console.log('socket:onmessage', ev)
// var msg = JSON.parse(ev.data)
// console.log('[onmessage]:', msg)
// self.dealMessage(msg)
// if (msg.stepCount === 1) {
// self.endTiming = +new Date()
// self.socket.close()
// }
// }
},
fetchApi(urlPath, parameter) {
const {
......@@ -2028,7 +1999,6 @@
self.results.push(resObj)
resObj = {}
}
console.log(self.results)
// 滚动至底部
// this.$nextTick(() => {
// this.$refs.scrollbarRef.wrap.scrollTop = this.$refs.scrollbarRef.wrap.scrollHeight
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!