style: 去掉多余的console.log

Closes #778
This commit is contained in:
Captain.B 2020-11-18 10:13:45 +08:00
parent 7f0efeab68
commit f3ee4fce98
11 changed files with 18 additions and 18 deletions

View File

@ -106,7 +106,7 @@ export default {
try { try {
this.content = JSON.parse(this.report.content); this.content = JSON.parse(this.report.content);
} catch (e) { } catch (e) {
console.log(this.report.content) // console.log(this.report.content)
throw e; throw e;
} }
this.getFails(); this.getFails();

View File

@ -387,7 +387,7 @@ export default {
}, },
handleEvent(event) { handleEvent(event) {
if (event.keyCode === 83 && event.ctrlKey) { if (event.keyCode === 83 && event.ctrlKey) {
console.log('拦截到 ctrl + s');//ctrl+s // console.log(' ctrl + s');//ctrl+s
this.saveTest(); this.saveTest();
event.preventDefault(); event.preventDefault();
event.returnValue = false; event.returnValue = false;

View File

@ -20,7 +20,7 @@
}, },
methods: { methods: {
initWebSocket() { initWebSocket() {
window.console.log("init WebSocket"); // window.console.log("init WebSocket");
const uri = "ws://" + window.location.host + "/socket"; const uri = "ws://" + window.location.host + "/socket";
this.websocket = new WebSocket(uri); this.websocket = new WebSocket(uri);
this.websocket.onmessage = this.onMessage; this.websocket.onmessage = this.onMessage;
@ -36,10 +36,10 @@
window.console.error(e) window.console.error(e)
}, },
onMessage(e) { onMessage(e) {
window.console.log(e.data) // window.console.log(e.data)
}, },
onClose(e) { onClose(e) {
window.console.log('断开连接', e); // window.console.log('', e);
}, },
send(Data) { send(Data) {
this.websocket.send(Data); this.websocket.send(Data);

View File

@ -238,10 +238,10 @@ export default {
}); });
}, },
onOpen() { onOpen() {
window.console.log("socket opening."); // window.console.log("socket opening.");
}, },
onError(e) { onError(e) {
window.console.error(e) // window.console.error(e)
}, },
onMessage(e) { onMessage(e) {
this.$set(this.report, "refresh", e.data); // this.$set(this.report, "refresh", e.data); //
@ -253,7 +253,7 @@ export default {
this.$set(this.report, "status", 'Running'); this.$set(this.report, "status", 'Running');
this.status = 'Running'; this.status = 'Running';
this.initReportTimeInfo(); this.initReportTimeInfo();
window.console.log('receive a message:', e.data); // window.console.log('receive a message:', e.data);
}, },
onClose(e) { onClose(e) {
if (e.code === 1005) { if (e.code === 1005) {
@ -263,7 +263,7 @@ export default {
this.$set(this.report, "refresh", Math.random()); // this.$set(this.report, "refresh", Math.random()); //
this.$set(this.report, "status", 'Completed'); this.$set(this.report, "status", 'Completed');
this.initReportTimeInfo(); this.initReportTimeInfo();
window.console.log("socket closed."); // window.console.log("socket closed.");
}, },
handleExport(name) { handleExport(name) {
this.result.loading = true; this.result.loading = true;
@ -358,7 +358,7 @@ export default {
}); });
this.initWebSocket(); this.initWebSocket();
} else { } else {
console.log("close socket."); // console.log("close socket.");
this.websocket.close() //websocket this.websocket.close() //websocket
} }
} }

View File

@ -196,7 +196,7 @@ export default {
}); });
}, },
getJmxContent() { getJmxContent() {
console.log(this.report.testId); // console.log(this.report.testId);
if (!this.report.testId) { if (!this.report.testId) {
return; return;
} }

View File

@ -178,7 +178,7 @@ export default {
handleAddTask(index, data) { handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) { if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type) // console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') { if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) { if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook')); this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -176,7 +176,7 @@ export default {
}, },
handleAddTask(index, data) { handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) { if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type) // console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') { if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) { if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook')); this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -140,7 +140,7 @@ export default {
methods: { methods: {
initForm(){ initForm(){
this.result = this.$get('/notice/search/message/'+this.testId, response => { this.result = this.$get('/notice/search/message/'+this.testId, response => {
console.log(response.data); // console.log(response.data);
this.form.scheduleTask = response.data; this.form.scheduleTask = response.data;
}) })
}, },
@ -170,7 +170,7 @@ export default {
}, },
handleAddTask(index, data) { handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) { if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type) // console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') { if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) { if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook')); this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -184,7 +184,7 @@ export default {
handleAddTask(index, data) { handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) { if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type) // console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') { if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) { if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook')); this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -185,7 +185,7 @@ export default {
handleAddTask(index, data) { handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) { if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type) // console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') { if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) { if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook')); this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -301,7 +301,7 @@ export default {
return path + "/" + this.currentPage + "/" + this.pageSize; return path + "/" + this.currentPage + "/" + this.pageSize;
}, },
handleEdit(testCase, index) { handleEdit(testCase, index) {
console.log(testCase) // console.log(testCase)
this.isReadOnly = false; this.isReadOnly = false;
if (!checkoutTestManagerOrTestUser()) { if (!checkoutTestManagerOrTestUser()) {
this.isReadOnly = true; this.isReadOnly = true;