文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 77e3388d by 李梓桢

删除了没用的输出信息

parent 809420be
...@@ -335,10 +335,10 @@ export default { ...@@ -335,10 +335,10 @@ export default {
watch: { watch: {
radio1: function f () { radio1: function f () {
if (this.radio1 == '矩形标注') { if (this.radio1 == '矩形标注') {
console.log('RR') // console.log('RR')
this.canvas.style.cursor = 'crosshair' this.canvas.style.cursor = 'crosshair'
} else if (this.radio1 == '多边形标注') { } else if (this.radio1 == '多边形标注') {
console.log('pp') // console.log('pp')
this.canvas.style.cursor = 'crosshair' this.canvas.style.cursor = 'crosshair'
} else { } else {
this.canvas.style.cursor = 'auto' this.canvas.style.cursor = 'auto'
...@@ -583,8 +583,8 @@ export default { ...@@ -583,8 +583,8 @@ export default {
// _this.ctx.stroke() // _this.ctx.stroke()
}, },
handleNodeClick (data, node) { handleNodeClick (data, node) {
console.log(node) // console.log(node)
console.log(data) // console.log(data)
// console.log('data.id = ' + node.id) // console.log('data.id = ' + node.id)
const parent = node.parent const parent = node.parent
...@@ -594,7 +594,7 @@ export default { ...@@ -594,7 +594,7 @@ export default {
} }
) )
console.log('index = ' + index) // console.log('index = ' + index)
children.splice(index, 1) children.splice(index, 1)
}, },
...@@ -613,7 +613,7 @@ export default { ...@@ -613,7 +613,7 @@ export default {
// alert(len); // alert(len);
// alert(count); // alert(count);
if (count < len - 1) { if (count < len - 1) {
console.log('right') // console.log('right')
this.pictureId++ this.pictureId++
this.scaleSize = 1 this.scaleSize = 1
...@@ -688,7 +688,7 @@ export default { ...@@ -688,7 +688,7 @@ export default {
// alert(count); // alert(count);
if (count > 0) { if (count > 0) {
console.log('left') // console.log('left')
this.pictureId-- this.pictureId--
this.scaleSize = 1 this.scaleSize = 1
...@@ -831,8 +831,8 @@ export default { ...@@ -831,8 +831,8 @@ export default {
// 添加标签前弹窗输入标签名字 // 添加标签前弹窗输入标签名字
addLabel () { addLabel () {
let idTmp = this.pictureId let idTmp = this.pictureId
console.log('???') // console.log('???')
console.log(this.data[idTmp]) // console.log(this.data[idTmp])
var labelName var labelName
this.$prompt('请输入标注名称', '提示', { this.$prompt('请输入标注名称', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -874,7 +874,7 @@ export default { ...@@ -874,7 +874,7 @@ export default {
this.data[currentImageId].children.push(newLabel) this.data[currentImageId].children.push(newLabel)
// 保存标志置为0 // 保存标志置为0
this.hasSaved = false this.hasSaved = false
console.log(this.data[currentImageId]) // console.log(this.data[currentImageId])
}, },
// deleteLabel () { // deleteLabel () {
// let currentLabelId = 0 // let currentLabelId = 0
...@@ -907,7 +907,7 @@ export default { ...@@ -907,7 +907,7 @@ export default {
}, },
mouseUpHandleelse (event) { mouseUpHandleelse (event) {
window.onmousemove = null window.onmousemove = null
console.log('鼠标松开了') // console.log('鼠标松开了')
}, },
// 监听鼠标事件 // 监听鼠标事件
...@@ -916,7 +916,7 @@ export default { ...@@ -916,7 +916,7 @@ export default {
let _this = this let _this = this
_this.createPTmp = [] _this.createPTmp = []
this.canvas.onmousedown = function (e) { this.canvas.onmousedown = function (e) {
console.log('onmousedown') // console.log('onmousedown')
if (_this.radio1 == '矩形标注') { if (_this.radio1 == '矩形标注') {
_this.canvas.style.cursor = 'crosshair' _this.canvas.style.cursor = 'crosshair'
r1 = _this.mathDiv(e.layerX, _this.scaleSize) r1 = _this.mathDiv(e.layerX, _this.scaleSize)
...@@ -934,7 +934,7 @@ export default { ...@@ -934,7 +934,7 @@ export default {
} }
} }
this.canvas.onmouseup = function (e) { this.canvas.onmouseup = function (e) {
console.log('onmouseup') // console.log('onmouseup')
if (_this.radio1 == '矩形标注') { if (_this.radio1 == '矩形标注') {
_this.canvas.style.cursor = 'crosshair' _this.canvas.style.cursor = 'crosshair'
_this.createR(e, 'end', r1, r2) _this.createR(e, 'end', r1, r2)
...@@ -949,7 +949,7 @@ export default { ...@@ -949,7 +949,7 @@ export default {
} }
} }
this.canvas.ondblclick = function (e) { this.canvas.ondblclick = function (e) {
console.log('dblclick') // console.log('dblclick')
if (_this.radio1 == '矩形标注') { if (_this.radio1 == '矩形标注') {
_this.canvas.style.cursor = 'crosshair' _this.canvas.style.cursor = 'crosshair'
} else if (_this.radio1 == '多边形标注') { } else if (_this.radio1 == '多边形标注') {
...@@ -971,7 +971,7 @@ export default { ...@@ -971,7 +971,7 @@ export default {
let _this = this let _this = this
let r let r
if (status == 'begin') { if (status == 'begin') {
console.log('onmousemove') // console.log('onmousemove')
_this.canvas.onmousemove = function (e) { _this.canvas.onmousemove = function (e) {
_this.ctx.clearRect(0, 0, _this.canvas.width, _this.canvas.height) _this.ctx.clearRect(0, 0, _this.canvas.width, _this.canvas.height)
...@@ -1001,8 +1001,8 @@ export default { ...@@ -1001,8 +1001,8 @@ export default {
} }
_this.ctx.clearRect(0, 0, _this.canvas.width, _this.canvas.height) _this.ctx.clearRect(0, 0, _this.canvas.width, _this.canvas.height)
console.log('X:' + e.layerX + 'Y:' + e.layerY) // console.log('X:' + e.layerX + 'Y:' + e.layerY)
console.log('r1:' + r1 + 'r2:' + r2) // console.log('r1:' + r1 + 'r2:' + r2)
let layerX = _this.mathDiv(e.layerX, _this.scaleSize) let layerX = _this.mathDiv(e.layerX, _this.scaleSize)
let layerY = _this.mathDiv(e.layerY, _this.scaleSize) let layerY = _this.mathDiv(e.layerY, _this.scaleSize)
let rx = layerX - r1 let rx = layerX - r1
...@@ -1013,7 +1013,7 @@ export default { ...@@ -1013,7 +1013,7 @@ export default {
_this.ctx.beginPath() _this.ctx.beginPath()
_this.ctx.fillStyle = 'rgba(51,135,255,0.54)' _this.ctx.fillStyle = 'rgba(51,135,255,0.54)'
_this.ctx.fillRect(r1, r2, rx, ry) _this.ctx.fillRect(r1, r2, rx, ry)
console.log(r1 + ' ' + r2 + ' ' + rx + ' ' + ry) // console.log(r1 + ' ' + r2 + ' ' + rx + ' ' + ry)
// _this.ctx.stroke() // _this.ctx.stroke()
// 把每个标注画出来 // 把每个标注画出来
...@@ -1021,8 +1021,8 @@ export default { ...@@ -1021,8 +1021,8 @@ export default {
let id = _this.pictureId let id = _this.pictureId
// 存到记录里 // 存到记录里
var num = [r1, r2, _this.mathAdd(r1, rx), r2, _this.mathAdd(r1, rx), _this.mathAdd(r2, ry), r1, _this.mathAdd(r2, ry)] var num = [r1, r2, _this.mathAdd(r1, rx), r2, _this.mathAdd(r1, rx), _this.mathAdd(r2, ry), r1, _this.mathAdd(r2, ry)]
console.log('num') // console.log('num')
console.log(num) // console.log(num)
_this.canvasAll[id].push(num) _this.canvasAll[id].push(num)
_this.canvasAllCheck.push(1) _this.canvasAllCheck.push(1)
...@@ -1117,7 +1117,7 @@ export default { ...@@ -1117,7 +1117,7 @@ export default {
save () { save () {
// 先把格式转换回去 // 先把格式转换回去
var outputData = [] var outputData = []
console.log(this.data) // console.log(this.data)
this.data.forEach(element => { this.data.forEach(element => {
let newData = { let newData = {
relationId: element.relationId, relationId: element.relationId,
...@@ -1127,8 +1127,8 @@ export default { ...@@ -1127,8 +1127,8 @@ export default {
outputData.push(newData) outputData.push(newData)
}) })
console.log('outputdata') // console.log('outputdata')
console.log(outputData) // console.log(outputData)
this.imageNum = this.data.len this.imageNum = this.data.len
this.axios({ this.axios({
method: 'post', method: 'post',
...@@ -1137,7 +1137,7 @@ export default { ...@@ -1137,7 +1137,7 @@ export default {
imageList: outputData imageList: outputData
} }
}).then(res => { }).then(res => {
console.log(res) // console.log(res)
if (res.code === 1) { if (res.code === 1) {
// 保存标志置为1 // 保存标志置为1
this.hasSaved = true this.hasSaved = true
......
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
let baseURL = this.baseURL let baseURL = this.baseURL
// 获取图片列表并转换格式 // 获取图片列表并转换格式
let imageList = await this.getLabelList() let imageList = await this.getLabelList()
console.log(imageList) // console.log(imageList)
this.imageList = imageList.imageList this.imageList = imageList.imageList
// 加载第一张图片 // 加载第一张图片
...@@ -344,13 +344,13 @@ export default { ...@@ -344,13 +344,13 @@ export default {
if (e == true) { if (e == true) {
_this.data[0].children[index].correct = 2; _this.data[0].children[index].correct = 2;
tmp[index] = 2; tmp[index] = 2;
console.log(_this.data) // console.log(_this.data)
} }
} else if (tmp[index] == 2) { } else if (tmp[index] == 2) {
if (e == false) { if (e == false) {
_this.data[0].children[index].correct = 0; _this.data[0].children[index].correct = 0;
tmp[index] = 0; tmp[index] = 0;
console.log(_this.data) // console.log(_this.data)
} }
} }
}) })
...@@ -1181,7 +1181,7 @@ export default { ...@@ -1181,7 +1181,7 @@ export default {
}) })
// console.log('outputdata') // console.log('outputdata')
console.log(outputData) // console.log(outputData)
this.submit() this.submit()
......
...@@ -259,8 +259,8 @@ export default { ...@@ -259,8 +259,8 @@ export default {
// 避免第一次标注时数据库中没有内容的情况 // 避免第一次标注时数据库中没有内容的情况
if (res.layerInfo != null) { if (res.layerInfo != null) {
this.layerData = res.layerInfo.labelList; this.layerData = res.layerInfo.labelList;
console.log('this.layerData') // console.log('this.layerData')
console.log(this.layerData) // console.log(this.layerData)
for (let i = 0;i < this.layerData.length;i++) { for (let i = 0;i < this.layerData.length;i++) {
let tmpCorrect = this.layerData[i].correct let tmpCorrect = this.layerData[i].correct
this.checkLayer.push(tmpCorrect) this.checkLayer.push(tmpCorrect)
...@@ -275,8 +275,8 @@ export default { ...@@ -275,8 +275,8 @@ export default {
if (res.landmarkList != null) { if (res.landmarkList != null) {
this.landmarkData = res.landmarkList.landmarkEntityList; this.landmarkData = res.landmarkList.landmarkEntityList;
console.log('this.landmarkData') // console.log('this.landmarkData')
console.log(this.landmarkData) // console.log(this.landmarkData)
for (let i = 0;i < this.landmarkData.length;i++) { for (let i = 0;i < this.landmarkData.length;i++) {
let tmpCorrect = this.landmarkData[i].correct let tmpCorrect = this.landmarkData[i].correct
// alert(tmpCorrect) // alert(tmpCorrect)
...@@ -331,23 +331,23 @@ export default { ...@@ -331,23 +331,23 @@ export default {
this.value.forEach((e, index) => { this.value.forEach((e, index) => {
console.log('tmp') // console.log('tmp')
console.log(tmp[index]) // console.log(tmp[index])
console.log(e) // console.log(e)
if (tmp[index] == 0) { if (tmp[index] == 0) {
if (e == true) { if (e == true) {
tmp[index] = 2; tmp[index] = 2;
this.landmarkData[index].correct = 2; this.landmarkData[index].correct = 2;
console.log('this.landmarkData[index]') // console.log('this.landmarkData[index]')
console.log(this.landmarkData[index]) // console.log(this.landmarkData[index])
} }
} else if (tmp[index] == 2) { } else if (tmp[index] == 2) {
if (e == false) { if (e == false) {
tmp[index] = 0; tmp[index] = 0;
this.landmarkData[index].correct = 0; this.landmarkData[index].correct = 0;
console.log('this.landmarkData[index]') // console.log('this.landmarkData[index]')
console.log(this.landmarkData[index]) // console.log(this.landmarkData[index])
} }
} }
}) })
...@@ -361,16 +361,16 @@ export default { ...@@ -361,16 +361,16 @@ export default {
if (e == true) { if (e == true) {
tmp[index] = 2; tmp[index] = 2;
this.layerData[index].correct = 2; this.layerData[index].correct = 2;
console.log('this.layerData[index]') // console.log('this.layerData[index]')
console.log(this.layerData[index]) // console.log(this.layerData[index])
} }
} else if (tmp[index] == 2) { } else if (tmp[index] == 2) {
if (e == false) { if (e == false) {
tmp[index] = 0; tmp[index] = 0;
this.layerData[index].correct = 0; this.layerData[index].correct = 0;
console.log('this.layerData[index]') // console.log('this.layerData[index]')
console.log(this.layerData[index]) // console.log(this.layerData[index])
} }
} }
}) })
...@@ -667,7 +667,7 @@ export default { ...@@ -667,7 +667,7 @@ export default {
if (res.code === 1) { if (res.code === 1) {
let layerInfo = res.data.layerInfo let layerInfo = res.data.layerInfo
let landmarkList = res.data.landmarkList let landmarkList = res.data.landmarkList
console.log(res.data) // console.log(res.data)
// 0是标注者标注错误的,1是标注者标注正确的,2是审核者自己添加的 // 0是标注者标注错误的,1是标注者标注正确的,2是审核者自己添加的
return { return {
layerInfo: layerInfo, layerInfo: layerInfo,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment