-
-
-
+
+
-
+
-
{{ this.cropInfo.width }} × {{ this.cropInfo.height }}
+
{{ this.cropInfo.width }} × {{
+ this.cropInfo.height }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -117,8 +62,8 @@
import exifmin from '../exif-js-min'
export default {
- name:'vue-cropper',
- data: function() {
+ name: 'vue-cropper',
+ data: function () {
return {
// 容器高宽
w: 0,
@@ -522,7 +467,7 @@ export default {
if (this.isIE) {
var xhr = new XMLHttpRequest()
- xhr.onload = function() {
+ xhr.onload = function () {
var url = URL.createObjectURL(this.response)
img.src = url
}
@@ -614,11 +559,11 @@ export default {
}
var oldL = Math.sqrt(
Math.pow(oldTouch1.x - oldTouch2.x, 2) +
- Math.pow(oldTouch1.y - oldTouch2.y, 2)
+ Math.pow(oldTouch1.y - oldTouch2.y, 2)
)
var newL = Math.sqrt(
Math.pow(newTouch1.x - newTouch2.x, 2) +
- Math.pow(newTouch1.y - newTouch2.y, 2)
+ Math.pow(newTouch1.y - newTouch2.y, 2)
)
var cha = newL - oldL
// 根据图片本身大小 决定每次改变大小的系数, 图片越大系数越小
@@ -787,8 +732,8 @@ export default {
num < 0
? (scale += Math.abs(num))
: scale > Math.abs(num)
- ? (scale -= Math.abs(num))
- : scale
+ ? (scale -= Math.abs(num))
+ : scale
// 延迟0.1s 每次放大大或者缩小的范围
let status = num < 0 ? 'add' : 'reduce'
if (status !== this.coeStatus) {
@@ -821,8 +766,8 @@ export default {
num > 0
? (scale += Math.abs(num))
: scale > Math.abs(num)
- ? (scale -= Math.abs(num))
- : scale
+ ? (scale -= Math.abs(num))
+ : scale
if (!this.checkoutImgAxis(this.x, this.y, scale)) {
return false
}
@@ -967,12 +912,12 @@ export default {
// 右侧坐标抽 超过左侧
this.cropW =
wrapperW - this.cropChangeX + Math.abs(fw + this.cropOldW) <=
- wrapperW - minX
+ wrapperW - minX
? Math.abs(fw + this.cropOldW)
: this.cropChangeX - minX
this.cropOffsertX =
wrapperW - this.cropChangeX + Math.abs(fw + this.cropOldW) <=
- wrapperW - minX
+ wrapperW - minX
? this.cropChangeX - Math.abs(fw + this.cropOldW)
: minX
}
@@ -1007,12 +952,12 @@ export default {
} else {
this.cropH =
wrapperH - this.cropChangeY + Math.abs(fh + this.cropOldH) <=
- wrapperH - minY
+ wrapperH - minY
? Math.abs(fh + this.cropOldH)
: this.cropChangeY - minY
this.cropOffsertY =
wrapperH - this.cropChangeY + Math.abs(fh + this.cropOldH) <=
- wrapperH - minY
+ wrapperH - minY
? this.cropChangeY - Math.abs(fh + this.cropOldH)
: minY
}
@@ -1066,19 +1011,16 @@ export default {
// 开始截图
startCrop() {
this.crop = true
- // console.log('开始截图')
},
// 停止截图
stopCrop() {
this.crop = false
- // console.log('停止截图')
},
// 清除截图
clearCrop() {
this.cropping = false
this.cropW = 0
this.cropH = 0
- // console.log('清除截图')
},
// 截图移动
cropMove(e) {
@@ -1276,7 +1218,6 @@ export default {
}
if ((this.enlarge !== 1) & !this.full) {
dpr = Math.abs(Number(this.enlarge))
- // console.log(dpr);
}
let width = this.cropW * dpr
let height = this.cropH * dpr
@@ -1290,7 +1231,6 @@ export default {
let dy =
(this.y - cropOffsertY + (this.trueHeight * (1 - this.scale)) / 2) *
dpr
- // console.log(dx, dy)
//保存状态
setCanvasSize(width, height)
ctx.save()
@@ -1495,15 +1435,13 @@ export default {
.rotate * 90}deg)`
}
obj.html = `
-
+
-

+ .rotate * 90}deg)">
`
this.$emit('realTime', obj)
@@ -1685,7 +1623,6 @@ export default {
},
// 重置函数, 恢复组件置初始状态
refresh() {
- // console.log('refresh')
this.imgs = ''
this.scale = 1
this.crop = false
@@ -1753,15 +1690,15 @@ export default {
'onwheel' in document.createElement('div')
? 'wheel'
: document.onmousewheel !== undefined
- ? 'mousewheel'
- : 'DOMMouseScroll'
+ ? 'mousewheel'
+ : 'DOMMouseScroll'
let that = this
var u = navigator.userAgent
this.isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
// 兼容blob
if (!HTMLCanvasElement.prototype.toBlob) {
Object.defineProperty(HTMLCanvasElement.prototype, 'toBlob', {
- value: function(callback, type, quality) {
+ value: function (callback, type, quality) {
var binStr = atob(this.toDataURL(type, quality).split(',')[1]),
len = binStr.length,
arr = new Uint8Array(len)
diff --git a/src/core/config.js b/src/core/config.js
index 1320ebd..4b52363 100644
--- a/src/core/config.js
+++ b/src/core/config.js
@@ -9,7 +9,7 @@ const config = {
}
export const viteLogo = (env) => {
- console.log('哈哈哈')
+ // console.log('哈哈哈')
}
export default config
diff --git a/src/view/content/activity/index.vue b/src/view/content/activity/index.vue
index a8d4c26..fa16256 100755
--- a/src/view/content/activity/index.vue
+++ b/src/view/content/activity/index.vue
@@ -254,7 +254,6 @@ defineOptions({
const imgUploadPath = ref(import.meta.env.VITE_BASE_API)
const beforeUpload = (file) => {
- console.log(file)
const isLt500K = file.size / 1024 / 1024 < 0.5 // 500K, @todo 应支持在项目中设置
const isImage = isImageMime(file.type)
if (!isImage) {
diff --git a/src/view/content/components/articleEdit.vue b/src/view/content/components/articleEdit.vue
index bf1c6c4..ed0b874 100644
--- a/src/view/content/components/articleEdit.vue
+++ b/src/view/content/components/articleEdit.vue
@@ -288,7 +288,6 @@ const emptyForm = () => {
tags: '',
imgs: '',
}
- console.log(editForm.value)
}
const getCurrentDatetime = () => {
diff --git a/src/view/content/live/index.vue b/src/view/content/live/index.vue
index 3568e1f..1dc85bf 100644
--- a/src/view/content/live/index.vue
+++ b/src/view/content/live/index.vue
@@ -268,7 +268,6 @@ const handleCurrentChange = (val) => {
// 提交表单
const handleFormSubmit = async () => {
- console.log('handleFormSubmit before validate')
copyTimelineData()
editFormRef.value.validate(async valid => {
diff --git a/src/view/organize/components/organizeEdit.vue b/src/view/organize/components/organizeEdit.vue
index 90ae62d..6c3ac54 100644
--- a/src/view/organize/components/organizeEdit.vue
+++ b/src/view/organize/components/organizeEdit.vue
@@ -98,7 +98,6 @@ const handleSubmit = async () => {
}
const openEdit = async (row) => {
- console.log(row)
if (row !== null && row.name && row.name !== '') {
isEdit.value = true
dialogTitle.value = '修改-' + row.name
diff --git a/src/view/organize/components/userEdit.vue b/src/view/organize/components/userEdit.vue
index 3d0dbd0..a977bb8 100644
--- a/src/view/organize/components/userEdit.vue
+++ b/src/view/organize/components/userEdit.vue
@@ -128,7 +128,6 @@ const closeAddUserDialog = () => {
const dialogFlag = ref('add')
const openEdit = (row) => {
- console.log(row)
if (row !== null && row.userName && row.userName !== '') {
dialogFlag.value = 'edit'
userInfo.value = JSON.parse(JSON.stringify(row))
diff --git a/src/view/organize/index.vue b/src/view/organize/index.vue
index f02c207..1d89470 100644
--- a/src/view/organize/index.vue
+++ b/src/view/organize/index.vue
@@ -99,7 +99,6 @@ const handleNodeEdit = async (data) => {
elOrganizeEditRef.value.openEdit(data)
}
const handleNodeRemove = (data) => {
- console.log(data)
ElMessageBox.confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
diff --git a/src/view/person/person.vue b/src/view/person/person.vue
index 9ebfd67..7eb2cfc 100644
--- a/src/view/person/person.vue
+++ b/src/view/person/person.vue
@@ -221,7 +221,6 @@ const enterEdit = async () => {
}
const handleClick = (tab, event) => {
- console.log(tab, event)
}
const changePhoneFlag = ref(false)